diff options
| author | Luke Parker <[email protected]> | 2026-03-11 13:33:06 +1000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-11 13:33:06 +1000 |
| commit | 4ab35d2c5c92ccbd88dea65e8c2e0f6af748b884 (patch) | |
| tree | d510e4efb6bfd11b501520b2cb3aa7a6f69cf2bb /packages/desktop-electron/src | |
| parent | b4ae030fc2395887bac8df072627366c6f2c269c (diff) | |
| download | opencode-4ab35d2c5c92ccbd88dea65e8c2e0f6af748b884.tar.gz opencode-4ab35d2c5c92ccbd88dea65e8c2e0f6af748b884.zip | |
fix(electron): hide Windows background consoles (#16842)
Co-authored-by: Brendan Allan <[email protected]>
Diffstat (limited to 'packages/desktop-electron/src')
| -rw-r--r-- | packages/desktop-electron/src/main/cli.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/desktop-electron/src/main/cli.ts b/packages/desktop-electron/src/main/cli.ts index e338d3913..fba301f36 100644 --- a/packages/desktop-electron/src/main/cli.ts +++ b/packages/desktop-electron/src/main/cli.ts @@ -107,7 +107,7 @@ export function syncCli() { let version = "" try { - version = execFileSync(installPath, ["--version"]).toString().trim() + version = execFileSync(installPath, ["--version"], { windowsHide: true }).toString().trim() } catch { return } @@ -147,7 +147,7 @@ export function spawnCommand(args: string, extraEnv: Record<string, string>) { console.log(`[cli] Executing: ${cmd} ${cmdArgs.join(" ")}`) const child = spawn(cmd, cmdArgs, { env: envs, - detached: true, + detached: process.platform !== "win32", windowsHide: true, stdio: ["ignore", "pipe", "pipe"], }) |
