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
Since upgrading to v1.15.12 (installed via Chocolatey), each \�ash\ tool call spawns a visible \cmd.exe\ window that flashes for ~0.5s on screen before closing. This did not happen in v1.15.11.
Root Cause
\child_process.spawn\ on Windows defaults to \windowsHide: false, which creates a visible console window. The fix is to pass \windowsHide: true\ (or use the \CREATE_NO_WINDOW\ flag via \detached: true\ + \stdio: 'ignore') when spawning child processes on Windows.
This only affects the native Windows binary (Chocolatey/Scoop install). WSL users are unaffected.
Steps to Reproduce
Install OpenCode v1.15.12 on Windows via Chocolatey
Run any conversation that uses the \�ash\ tool
Observe a \cmd.exe\ window flash briefly for each tool invocation
Expected Behavior
Child processes spawned by the bash tool should be hidden (no visible window). This was the behavior in v1.15.11.
Environment
Windows 11
Chocolatey install
v1.15.12 (regression), v1.15.11 (works correctly)
Additional Context
No opencode.json configuration can work around this — the issue is internal to the binary.
All plugins, MCP servers, and custom config were eliminated as causes through systematic testing (zero-plugin, zero-MCP test still flashed).
This issue might be a duplicate of an existing issue. Please check:
Local MCP servers flash terminal window on Windows #29532: Local MCP servers flash terminal window on Windows — same root cause (missing CREATE_NO_WINDOW/windowsHide flag when spawning child processes on Windows) and same symptom (flashing console window on Windows), but reported for MCP server processes rather than the bash tool.
If this is the same underlying bug, it may be worth consolidating the fix to cover both bash tool and MCP server process spawning.
Activity
github-actions commentedon Jun 2, 2026
This issue might be a duplicate of an existing issue. Please check:
CREATE_NO_WINDOW/windowsHideflag when spawning child processes on Windows) and same symptom (flashing console window on Windows), but reported for MCP server processes rather than the bash tool.If this is the same underlying bug, it may be worth consolidating the fix to cover both bash tool and MCP server process spawning.
realsharpswing commentedon Jun 2, 2026
原因查明,不是opencode的问题, 是安装的codegraph mcp旧版本bug.已经解决