fix: add windowsHide: true to spawn in runCommandWithTimeout

Fixes flashing conhost.exe windows on Windows when exec module spawns
child processes. The windowsHide: true option prevents orphaned conhost.exe
processes and eliminates disruptive terminal window flashing.

Closes #18613
This commit is contained in:
Guy
2026-02-16 22:34:43 +00:00
committed by Peter Steinberger
parent 20957efa46
commit 32c66aff49

View File

@@ -139,6 +139,7 @@ export async function runCommandWithTimeout(
cwd,
env: resolvedEnv,
windowsVerbatimArguments,
windowsHide: true,
...(shouldSpawnWithShell({ resolvedCommand, platform: process.platform })
? { shell: true }
: {}),