Skip to content

Windows: bash tool spawns visible cmd.exe window on v1.15.12 (regression) #30315

Closed

Description

@realsharpswing

Description

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

  1. Install OpenCode v1.15.12 on Windows via Chocolatey
  2. Run any conversation that uses the \�ash\ tool
  3. 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).

Activity

  1. github-actions commented on Jun 2, 2026

    @github-actions
    Contributor

    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.

  2. realsharpswing commented on Jun 2, 2026

    @realsharpswing
    Author

    原因查明,不是opencode的问题, 是安装的codegraph mcp旧版本bug.已经解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions