Skip to content

Local MCP servers flash terminal window on Windows #29532

Closed as not planned
Closed as not planned

Description

@zc1789284658

Describe the bug
When launching local MCP servers on Windows, a console window briefly flashes on screen every time the MCP server process is spawned or reconnected. This is very distracting during normal usage.

To Reproduce

  1. Configure any local MCP server in opencode.json
  2. Start opencode on Windows
  3. Observe terminal windows flashing when MCP server connects

Expected behavior
No visible terminal window should appear for background MCP server processes.

Root cause
When spawning child processes on Windows, opencode does not set the CREATE_NO_WINDOW (0x08000000) creation flag or HideWindow: true in syscall.SysProcAttr.

Suggested fix
In the Go code that spawns local MCP server processes, add HideWindow: true to syscall.SysProcAttr on Windows:

cmd := exec.Command(...)
cmd.SysProcAttr = &syscall.SysProcAttr{
    HideWindow: true, // Windows only
}

Environment

  • OS: Windows 11
  • opencode version: latest

Activity

  1. github-actions commented on May 27, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Please review the linked issue and consider whether your report adds new information. If it does, feel free to clarify the distinction.

  2. github-actions commented on Jul 27, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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