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
[Bug]: Windows: console window from the update signature check and the OpenCode model preflight #52051
Two background launches on Windows can open a console window. Found by reading the code; I have not captured a screenshot of either flash.
Update signature check.electron-updater 6.8.12, out/windowsExecutableCodeSignatureVerifier.js, runs Get-AuthenticodeSignature through execFile with shell: true and no windowsHide. The parent is a GUI process, so cmd/powershell get a visible console while an update is verified.
OpenCode launch model preflight.src/main/opencode/model-launch/opencode-launch-model-context.ts starts opencode serve with detached: true on Windows. A detached process has no console, so each console program that opencode itself starts opens a new one.
Expected: neither shows a window, and both otherwise behave as before (signature verification stays on).
We are taking this. The fix is two narrow, independent changes: (1) add windowsHide: true to preparePowerShellExec's execFile/execFileSync options in [email protected] via config/patches/ so the update Authenticode check no longer flashes a console, and (2) launch the OpenCode model preflight without detached on Windows (detached: process.platform !== 'win32'), matching every other one-shot spawn in the codebase.
Activity
2SinceJuly commentedon Nov 28, 2026
Standing down - @theobinomy already opened #52063 for this, so I will leave it to them rather than duplicate the work.
joei4cm commentedon Nov 28, 2026
We are taking this. The fix is two narrow, independent changes: (1) add windowsHide: true to preparePowerShellExec's execFile/execFileSync options in [email protected] via config/patches/ so the update Authenticode check no longer flashes a console, and (2) launch the OpenCode model preflight without detached on Windows (detached: process.platform !== 'win32'), matching every other one-shot spawn in the codebase.
fix(windows): hide console windows from the update signature check an…
fix(windows): hide console windows from the update signature check an…
joei4cm commentedon Nov 29, 2026
Stepping back — @theobinomy's #52063 (opened moments before my claim landed) already covers this fix. Thanks!