From 32c66aff49fcdb295484dd94f56c9c8a8f0d9482 Mon Sep 17 00:00:00 2001 From: Guy Date: Mon, 16 Feb 2026 22:34:43 +0000 Subject: [PATCH] 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 --- src/process/exec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/process/exec.ts b/src/process/exec.ts index 6c4609e178..29df9f258f 100644 --- a/src/process/exec.ts +++ b/src/process/exec.ts @@ -139,6 +139,7 @@ export async function runCommandWithTimeout( cwd, env: resolvedEnv, windowsVerbatimArguments, + windowsHide: true, ...(shouldSpawnWithShell({ resolvedCommand, platform: process.platform }) ? { shell: true } : {}),