fix(cli): hide windows console windows for runner/claude subprocesses (#242)

This commit is contained in:
Jlovec
2026-03-04 20:47:16 +08:00
committed by GitHub
parent 5ceab49630
commit 55f08bd562
3 changed files with 101 additions and 2 deletions
+3 -1
View File
@@ -349,7 +349,9 @@ export function query(config: {
env: spawnEnv,
// Use shell: false with absolute path from getDefaultClaudeCodePath()
// This avoids cmd.exe resolution issues on Windows
shell: false
shell: false,
// Hide transient console windows on Windows when spawning Claude Code
windowsHide: process.platform === 'win32'
}) as ChildProcessWithoutNullStreams
// Handle stdin