openclaw/src/process
artale a1a1f56841 fix(process): disable detached spawn on Windows to fix empty exec output (#18035)
The supervisor's child adapter always spawned with `detached: true`,
which creates a new process group. On Windows Scheduled Tasks (headless,
no console), this prevents stdout/stderr pipes from properly connecting,
causing all exec tool output to silently disappear.

The old exec path (pre-supervisor refactor) never used `detached: true`.
The regression was introduced in cd44a0d01 (refactor process spawning).

Changes:
- child.ts: set `detached: false` on Windows, keep `detached: true` on
  POSIX (where it's needed to survive parent exit). Skip the no-detach
  fallback on Windows since it's already the default.
- child.test.ts: platform-aware assertions for detached behavior.

Fixes #18035
Fixes #17806
2026-02-16 23:59:53 +01:00
..
supervisor fix(process): disable detached spawn on Windows to fix empty exec output (#18035) 2026-02-16 23:59:53 +01:00
child-process-bridge.test.ts perf(test): speed up suites and reduce fs churn 2026-02-15 19:29:27 +00:00
child-process-bridge.ts fix: bridge respawned child signals (#933) (thanks @roshanasingh4) 2026-01-15 06:37:27 +00:00
command-queue.test.ts perf(test): trim duplicate gateway and auto-reply test overhead 2026-02-13 23:40:38 +00:00
command-queue.ts fix: reset stale execution state after SIGUSR1 in-process restart (#15195) 2026-02-13 15:30:09 -05:00
exec.test.ts test: tighten process timeout thresholds with stabilized emit guard 2026-02-16 05:09:47 +00:00
exec.ts fix: add windowsHide: true to spawn in runCommandWithTimeout 2026-02-16 23:49:47 +01:00
kill-tree.ts fix(process): graceful process tree termination with SIGTERM before SIGKILL 2026-02-16 23:49:44 +01:00
lanes.ts refactor: use command lane enum 2026-01-20 10:51:25 +00:00
restart-recovery.ts fix: reset stale execution state after SIGUSR1 in-process restart (#15195) 2026-02-13 15:30:09 -05:00
spawn-utils.test.ts perf(test): fold restart recovery helper into spawn utils suite 2026-02-16 00:18:27 +00:00
spawn-utils.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00