Skip to content

[Bug]: Windows: console window from the update signature check and the OpenCode model preflight #52051

Done

Description

@theobinomy

Where were you using Orca?

Desktop only

Operating system

Windows

Details

Two background launches on Windows can open a console window. Found by reading the code; I have not captured a screenshot of either flash.

  1. 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.
  2. 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).

Activity

  1. 2SinceJuly commented on Nov 28, 2026

    @2SinceJuly
    Contributor

    Standing down - @theobinomy already opened #52063 for this, so I will leave it to them rather than duplicate the work.

  2. joei4cm commented on Nov 28, 2026

    @joei4cm
    Contributor

    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.

  3. added a commit that references this issue on Nov 28, 2026
    6e5b969
  4. added a commit that references this issue on Nov 28, 2026
    69cfd36
  5. joei4cm commented on Nov 29, 2026

    @joei4cm
    Contributor

    Stepping back — @theobinomy's #52063 (opened moments before my claim landed) already covers this fix. Thanks!

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

Metadata

Metadata

Assignees

No one assigned

    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