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
Windows: every spawned console process flashes a black window (git.exe ~1/sec on v2.0.20) — re-report of #22414, #31629 #52266
On Windows, every console-subsystem process opencode spawns allocates a visible console window, because the spawn does not pass CREATE_NO_WINDOW. The windows open and close instantly — roughly 1 per second.
git.exe is the most visible case. From ~/.local/share/opencode/log/opencode.log:
Rate: 417 git.exe spawns in the last 20 000 log lines, 60-68 per minute, in bursts of ~6 within 350 ms. They come from the project repo and from the snapshot repo (~/.local/share/opencode/snapshot/<id>/.git).
Same for any local MCP whose command is a console binary (node.exe, python.exe): one window per MCP start.
Mechanism: a console-subsystem child of a GUI-subsystem parent calls AllocConsole(). Only the spawner can suppress it, via CREATE_NO_WINDOW or DETACHED_PROCESS.
Previously reported and closed administratively rather than fixed: #22414 and #31629 (60-day inactivity), #38715 (auto-closed), #42440 (COMPLETED, but last comment is "I will screen record it later today if you still cant replicate it"). Still reproduces on v2.0.20.
1. Windows 11, open the desktop app with a few projects open.
2. Work normally (or open a session in an active project).
3. Watch for black console windows opening and closing ~1 per second.
Confirmed by log count rather than by eye: count spawning process lines mentioning git.EXE in opencode.log.
Screenshot and/or share link
No screenshot: the windows close in under a second, so a capture is not practical. Log excerpt above is the reproducible evidence.
Operating System
Microsoft Windows 11 Pro Insider Preview build 28120.10.0.28120
Terminal
Windows Terminal 1.24.11911.0 (also affects the desktop app, which spawns without a terminal host)
Notes
Workarounds tried, all of which failed:
Delegated console host via HKCU\Console\%%Startup — made it worse, any console app started an endless window loop.
Windows Terminal windowingBehavior: "useExisting" — no effect.
A GUI-subsystem launcher wrapping each MCP with CreateNoWindow + stdio relay — works with file-redirected stdio, but under opencode live pipes every MCP fails with mcp connect failed ... "Request timed out".
Removing cmd.exe/npx shims from MCP definitions — fewer processes, but node.exe is still a console app, so the window remains.
"snapshots": false reduces the churn (it removes the snapshot-repo git calls) but costs file undo/revert, and does not affect project-repo git calls.
WMI __InstanceCreationEvent watcher on git.exe (two 10-minute windows) missed every cold start by minutes, so no parent PID was captured - the timestamp correlation above is the evidence.
No config switch exists for worktree discovery, so opencode.jsonc cannot work around it.
Activity
github-actions commentedon Sep 30, 2026
Thanks for updating the issue with the Bug Report template and the reproduction and system details. It now meets our issue guidelines.
lovesans commentedon Sep 30, 2026
1.18.33 same problem
CN6 commentedon Oct 8, 2026
Environment
@opencode-aidesktop, bundledresources/opencode-cli.exe)superpowers@git+https://github.com/obra/superpowers.git,opencode-skills-collection@latestReproduction
Evidence
The flash coincides with the startup worktree probe in
~/.local/share/opencode/log/opencode.log:span=1222ms- the probe consistently runs ~1.2 s at startup.message="spawning process"line exists for this probe - this git call bypasses the logged/instrumented spawn path (which only records shell-tool powershell calls). Consistent with Windows: every childcmd.exe(git probes, MCP spawns) flashes a visible console window and steals focus despitewindowsHidebeing set #52281's conclusion that some spawn path drops the hide flag.git ls-remote, server: unpinned plugin update check flashes visible git console window on Windows #50868) - zero update-check lines in the log today; superpowers cache directory untouched across restarts (no re-clone).__InstanceCreationEventwatcher ongit.exe(two 10-minute windows) missed every cold start by minutes, so no parent PID was captured - the timestamp correlation above is the evidence.No config switch exists for worktree discovery, so
opencode.jsonccannot work around it.Cross-ref: #52281, #53730, #50868 (open) / #31629, #42440, #22414 (closed).