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: console window flashes on every subprocess spawn (v2 next build) #42440
On Windows, every time the agent runs a shell command (git, node, PowerShell, etc.), a console window briefly flashes open and then disappears. This happens for every command execution during a session.
Environment
opencode version: 0.0.0-next-17428
OS: Windows 11 Home 25H2, build 10.0.26200.8875 (win32 x64)
Install/channel: next (@opencode-ai/cli@0.0.0-next-17428)
Active plugins: herdr-agent-state.js, rtk.ts
Reproduction
Run opencode2 on Windows.
Ask the agent to perform any task that runs a shell command (e.g. git status, ls, or any command).
Observe a console window flash on screen each time a command runs.
Expected Behavior
Subprocesses spawned for shell command execution run silently with no visible console window.
Actual Behavior
A black console window briefly appears and closes for every subprocess spawn. This is caused by subprocess spawning on Windows not setting the CREATE_NO_WINDOW creation flag (windowsHide: true in Node.js, HideWindow: true in Go's syscall.SysProcAttr).
Additional Context
Service is healthy: opencode2 service status returns http://127.0.0.1:49374, /api/health returns {"healthy":true,"version":"0.0.0-next-17428"}.
If these prior reports cover your case, consider adding any new v2-specific details there or confirming the issue is still unresolved in the v2 next build (which your report does — thank you for the explicit version callout).
For Windows users, workaround for the tab focus-stealing: Windows Terminal → Settings → Startup → Default terminal application → Windows Console Host. The spawn then flashes as a detached window instead of hijacking your active terminal
@neriousy I am chasing you across issues. I have been able to record these blinks. Sometimes they blink; sometimes they spawn and stay for 5-10 seconds. It's random, but I am pretty sure that there is some kind of logic behind it.
@neriousy
My ".config\opencode\plugins" is empty except that I had bun-preload.ts, which was a workaround when OpenCode moved from Tauri to Electron, and I couldn't use the desktop because of the "bun is not defined" issue (I also reported that at that time). Here is a brief description of bun-preload.ts file:
* Bun API polyfill for OpenCode Desktop (Electron/Node.js).
*
* OpenCode Desktop runs its server inside Electron's bundled Node.js,
* NOT Bun. Plugins that reference Bun.* globals (Bun.env, Bun.write,
* Bun.file, $, etc.) crash with "Bun is not defined".
*
* This preload plugin defines those globals with Node.js equivalents
* before any other plugin code runs. Place it FIRST in the plugin array.
I removed it, restarted OpenCode, and got bombarded by those blinks, like 20-30 in 2-3 seconds, lol.
Plugins list:
Activity
github-actions commentedon Aug 13, 2026
This issue might be a duplicate of existing issues. Please check:
If these prior reports cover your case, consider adding any new v2-specific details there or confirming the issue is still unresolved in the v2
nextbuild (which your report does — thank you for the explicit version callout).gabparrot commentedon Aug 24, 2026
For Windows users, workaround for the tab focus-stealing: Windows Terminal → Settings → Startup → Default terminal application → Windows Console Host. The spawn then flashes as a detached window instead of hijacking your active terminal
gabparrot commentedon Aug 25, 2026
@Egzza Is your main terminal Powershell 7? (pwsh.exe)
gabparrot commentedon Aug 26, 2026
#45259
neriousy commentedon Aug 26, 2026
I can't reproduce that, can u do a video showcasing this?
neriousy commentedon Aug 26, 2026
Or which models are you using etc
gabparrot commentedon Aug 26, 2026
No plugins. I replicated in other variables, but here my current setup for replication:
gabparrot commentedon Aug 26, 2026
I will screen record it later today if you still cant replicate it. Seen this issue in multiple discussions. No time right now
PVLPM commentedon Oct 1, 2026
@neriousy I am chasing you across issues. I have been able to record these blinks. Sometimes they blink; sometimes they spawn and stay for 5-10 seconds. It's random, but I am pretty sure that there is some kind of logic behind it.
https://github.com/user-attachments/assets/1ba88a02-58fb-4bb0-9f51-d05b50b924c0
https://github.com/user-attachments/assets/a988d5ea-da93-4ba9-ad12-e7a601b012ce
https://github.com/user-attachments/assets/5921d069-7fac-431f-aec9-b4b6c13cae1e
neriousy commentedon Oct 1, 2026
Heey - do you have any old plugins? Like did you use omo? @PVLPM
neriousy commentedon Oct 1, 2026
Try to clean up your .opencode/plugins folder
PVLPM commentedon Oct 1, 2026
@neriousy
My ".config\opencode\plugins" is empty except that I had
bun-preload.ts, which was a workaround when OpenCode moved from Tauri to Electron, and I couldn't use the desktop because of the "bun is not defined" issue (I also reported that at that time). Here is a brief description ofbun-preload.tsfile:I removed it, restarted OpenCode, and got bombarded by those blinks, like 20-30 in 2-3 seconds, lol.
Plugins list:
All plugins updated to comply with v2.
I am still using the v1 config. Is that a thing?
UPD: And yes, the videos were recorded on 2.0.21.