Repository navigation
Description
Bug type
Crash (process/app exits or hangs)
Beta release blocker
No
Summary
Environment:
- OS: Windows 11 (NT 10.0.26200)
- Node: v24.14.1
- OpenClaw: latest (2026.5.19+)
- Start method: manual
openclaw gatewayfrom PowerShell
Symptom:
All exec tool calls start a child process (PID assigned) but produce zero output.
Process never exits naturally; only terminates when killed by timeout (SIGKILL).
Steps to reproduce
What we ruled out:
- Node.js child_process.spawn itself works fine on this machine
(manual spawn test in PowerShell succeeds) - The issue is in OpenClaw's exec wrapper layer (runCommandWithTimeout)
- Changing resolveCommandStdio from "inherit" to "pipe" does NOT fix it
- Not caused by Windows security software (already whitelisted)
Expected behavior
Reproduction:
Any exec call, even echo hello or node -v, exhibits this behavior.
The gateway is started from PowerShell (not as a Windows service).
Actual behavior
Additional notes:
echo helloreturned output exactly ONCE after modifying source and restarting,
then all subsequent calls (including the same command) failed again.- The gateway process runs under the same user account.
OpenClaw version
openclaw 2026.5.19+ (latest)
Operating system
Windows 11 Pro (NT 10.0.26200, x64)
Install method
Node.js v24.14.1 / OpenClaw Gateway (manual start from PowerShell)
Model
bailian/qwen3.6-plus
Provider / routing chain
OpenClaw Gateway (localhost:18789) → bailian provider → https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1 (Alibaba Cloud Bailian MaaS, Beijing region, OpenAI-compatible API) → qwen3.6-plus. No intermediate proxies configured.
Additional provider/model setup details
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon May 22, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 21, 2026, 2:28 AM ET / 06:28 UTC.
Summary
Keep open: current main has relevant Windows exec hardening and mocked Windows coverage, but it does not prove that this newer native Windows 11 and Node 24 all-command no-output hang is fixed. The older closed empty-output reports overlap but are not safe duplicates because this report describes children hanging until timeout rather than closing quickly with empty output.
Reproducibility: no. The issue gives a plausible Windows 11, Node 24, PowerShell-started gateway path, but this read-only review did not run native Windows and current tests mock child processes rather than reproducing the hang on current main.
Ways to help us reproduce this
Next step
Native Windows reproduction is the blocker; queueing an automated fix PR now would be speculative because the failing process path is not proven.
Review details
Best possible solution:
Reproduce on native Windows with a PowerShell-started gateway, trace whether the failing call uses the supervisor or direct helper path, then patch that exact process path with focused regression coverage and real
echo helloplusnode -vproof.Do we have a high-confidence way to reproduce the issue?
No. The issue gives a plausible Windows 11, Node 24, PowerShell-started gateway path, but this read-only review did not run native Windows and current tests mock child processes rather than reproducing the hang on current main.
Is this the best way to solve the issue?
Unclear. Current Windows exec hardening is relevant, but the best fix should be chosen only after a native Windows trace identifies whether the hang is in the supervisor path, direct helper path, shell selection, or local environment.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 604aa301899f.
Label changes
Label changes:
clawsweeper:fix-shape-clear: Current issue advisory state no longer selects this label.clawsweeper:needs-info: Current issue advisory state no longer selects this label.Label justifications:
P1: If confirmed, all exec tool commands hanging on Windows breaks a core agent workflow for affected users.impact:crash-loop: The issue describes child processes that never exit naturally and only terminate by timeout, which is a process-level availability failure.Evidence reviewed
Acceptance criteria:
openclaw gatewayfrom PowerShell and run exec tool calls forecho helloandnode -v, capturing stdout, stderr, PID, exit status, timeout behavior, and process tree.src/process/supervisor/adapters/child.test.tsand the affected exec runtime tests.src/process/exec.windows.test.tsand any changed exec helper tests.What I checked:
echo helloandnode -vproducing no output until timeout.execas the shell command tool and document Windows PowerShell selection, so returning output for simple commands is existing expected behavior rather than a new feature. Public docs:docs/tools/exec.md. (docs/tools/exec.md:9, 604aa301899f)stdinMode: "pipe-closed", which is the likely gateway path for the reported behavior. (src/agents/bash-tools.exec-runtime.ts:775, 604aa301899f)pipe-closed, disables detached mode on Windows, and includes Windows exit/stdio-drain fallback settlement, but this is source hardening rather than native proof of this report. (src/process/supervisor/adapters/child.ts:77, 604aa301899f)runCommandWithTimeoutstill resolves stdio, spawns with piped stdout/stderr, captures output events, and resolves on close or timeout, matching the helper named in the report. (src/process/exec.ts:336, 604aa301899f)windowsHide, timeout kill, output decoding, and supervisor close fallback with mocked child processes; they do not prove native Windowsecho helloornode -vthrough a PowerShell-started gateway. (src/process/exec.windows.test.ts:468, 604aa301899f)Likely related people:
src/process/supervisor/adapters/child.ts,src/process/supervisor/adapters/child.test.ts)src/process/supervisor/adapters/child.ts,src/process/supervisor/adapters/child.test.ts)runCommandWithTimeoutpath named by the reporter. (role: Windows exec invocation refactor contributor; confidence: medium; commits: f03d7c5a4c40; files:src/process/exec.ts,src/process/exec.windows.test.ts)src/agents/shell-utils.ts,src/agents/bash-tools.ts)test/e2e/qa-lab/plugins/plugin-lifecycle-probe-runtime.ts,test/e2e/qa-lab/plugins/plugin-lifecycle-probe.e2e.test.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.openclaw-barnacle commentedon Jul 6, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
openclaw-barnacle commentedon Jul 14, 2026
Closing due to inactivity.
If this is still an issue, please retry on the latest OpenClaw release and share updated details.
If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.