mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 19:08:27 +00:00
fix(security): harden Windows child process spawning
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user