fix(security): harden Windows child process spawning

This commit is contained in:
Peter Steinberger
2026-02-15 03:24:21 +01:00
parent 7b697d6128
commit a7eb0dd9a5
7 changed files with 29 additions and 9 deletions

View File

@@ -107,6 +107,8 @@ export function createLocalShellRunner(deps: LocalShellDeps) {
await new Promise<void>((resolve) => {
const child = spawnCommand(cmd, {
// Intentionally a shell: this is an operator-only local TUI feature (prefixed with `!`)
// and is gated behind an explicit in-session approval prompt.
shell: true,
cwd: getCwd(),
env,