Files
Cursor Agent 7885e2ba38 Fix: resolve shell option on Windows to support .cmd/.bat shims
On Windows, Node.js spawn with shell:false cannot execute .cmd/.bat
shims — only native .exe binaries. The previous commit forced
shell:false for gh CLI invocations to prevent command injection, but
this regressed Windows setups where gh is installed as a .cmd shim
(e.g., via Scoop or corporate package managers).

Add resolveShellOption() in processRunner.ts that, on Windows, probes
PATH for the first matching file: if it's a .cmd/.bat shim, shell:true
is used (required for cmd.exe to interpret the shim); if it's an .exe,
shell:false is preserved (preventing injection). On non-Windows
platforms, the caller's explicit value is used (defaulting to false).
2026-04-10 08:11:19 +00:00
..