GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Local stdio MCP servers leak processes on disconnect / replace / rollback · Issue #26714 · anomalyco/opencode Closed as not planned Closed as not planned Copy link DescriptionDescriptionWhen a local stdio MCP server is disconnected, replaced (via a second The existing cleanup code (added in #15516) only covers the instance disposal path, and even there it only kills descendant PIDs — not the transport's own root PID. Over multiple sessions these orphaned processes accumulate, consuming memory and potentially holding ports. OpenCode version1.3.13 (dev branch, commit d112da0) Steps to reproduce
Operating SystemmacOS (Apple Silicon) TerminalGhostty Additional contextThis is related to #15808 and #8257 but covers a distinct gap: vs #15808 ("opencode run: MCP child processes not terminated on exit"): That issue is about the vs #8257 ("Memory leak: MCP clients not closed before reassignment"): That issue is about connections/sockets leaking when a client reference is overwritten without calling No existing PR addresses this specific set of gaps. PR #15516 (merged) added descendant cleanup in the dispose path only. PR #21626 (open) is about SDK process groups, not MCP teardown. No one has submitted a fix covering the root PID kill or the disconnect/rollback paths. Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |