Bug Description
The exec tool returns empty output on Windows. Commands appear to succeed (no errors in logs) but return nothing.
Steps to Reproduce
- Run any exec command (e.g.,
echo hello) - Get empty result
Expected vs Actual
- Expected: Command output (e.g., "hello")
- Actual: Empty output, tool ends instantly (0ms in logs)
Environment
- OpenClaw: 2026.2.15
- Node.js: v25.5.0
- OS: Windows_NT 10.0.19045
- Config: tools.exec.host = "gateway", security = "full"
Logs
16:59:53 tool start: exec
16:59:53 tool end: exec ← instant, no duration
Notes
- Works fine in regular terminal (node -e "spawn works")
- No errors in gateway logs
- sandbox.mode = "off"
- exec.host = "gateway"