You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Desktop app spawns every local stdio MCP server twice at session start #41331
The opencode desktop app (@opencode-aidesktop, Electron) spawns two copies of every local stdio MCP server at session start. Both copies appear within ~5 seconds of each other, as children of the same OpenCode utility (node) process. Reproduced across two consecutive app restarts.
Same pattern was present in the previous session (1.18.10-era processes), i.e. it persists across versions.
Expected behavior
Each configured MCP server should spawn exactly once per session.
Actual behavior
2 copies per server → double memory (~200–300 MB wasted), and for stateful stdio servers (memory stores writing JSONL/SQLite, browsers holding ports) two live writers create race/corruption risk.
If the underlying cause is the same, it may be worth consolidating. If the desktop Electron path has a distinct code path causing the duplication, that detail would help maintainers triage.
Activity
github-actions commentedon Aug 8, 2026
This issue might be a duplicate of existing issues. Please check:
If the underlying cause is the same, it may be worth consolidating. If the desktop Electron path has a distinct code path causing the duplication, that detail would help maintainers triage.