openclaw - 💡(How to fix) Fix [Bug]: [Windows] exec spawn: all commands hang with no output (stdio pipe deadlock) [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Environment:

  • OS: Windows 11 (NT 10.0.26200)
  • Node: v24.14.1
  • OpenClaw: latest (2026.5.19+)
  • Start method: manual openclaw gateway from 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).

Root Cause

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)

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

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 gateway from 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 hello returned 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

<img width="1235" height="507" alt="Image" src="https://github.com/user-attachments/assets/06e95053-e81e-4ba7-882f-3601bc50baef" />

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

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).

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: [Windows] exec spawn: all commands hang with no output (stdio pipe deadlock) [1 pull requests]