Repository navigation
Description
Environment
- OpenClaw Gateway: 2026.7.1-2, WSL2 (Linux), bind loopback :18789
- OpenClaw Companion (Windows node): core v2026.7.1, Windows 10.0.26200 (x64), i7-14700KF
- Node capabilities: system, canvas, device, browser
- Node exec approvals:
security=allowlist, ask=on-miss, askFallback=deny, autoAllowSkills=off, allowlist empty - MXC:
wxc-exec.exev0.7.0-alpha; sandboxenabled=True, blockHostFallbackWhenMxcUnavailable=False
Steps to reproduce
- Pair a Windows node (OpenClaw Companion) with a gateway.
- From an agent session run any simple command via
execwithhost=node(e.g.echo test). - Approve the Windows exec-approval dialog immediately.
- Observe: the exec tool fails with
TIMEOUT: node invoke timed out.
Expected behavior
Command output is returned to the agent once approved and executed.
Actual behavior
The gateway aborts node.invoke after ~30 s (errorCode=UNAVAILABLE), while the node executes the command successfully and sends the result — 2–4 s after the gateway already timed out.
Confirmed diagnosis (measured, latest run)
12:50:52.542 node.invoke.request received by node
12:50:54.536 EXEC-APPROVALS decision=allow (user clicked within ~2 s)
12:50:54.539 MXC sandbox start (new AppContainer, containerId changes every run)
12:51:25.655 MXC result: exitCode=0, durationMs=31114 (command SUCCEEDED)
12:51:25.655 Sending invoke result: ok=True
12:51:22.563 gateway timeout: node.invoke 30014ms UNAVAILABLE ← fired 3.1 s BEFORE the result
Request→response total: 33.1 s vs gateway limit 30.0 s. Approval latency is not the issue (≈2 s). Observed MXC durations across runs: 27 s, 53 s, 27 s, 31 s — unstable, and each run creates a fresh AppContainer (containerId differs every time).
The 30 s limit is hard-coded on the gateway: passing exec timeouts of 60 s / 120 s / 150 s still results in exactly node.invoke 30014ms (the node even receives timeoutMs:150000 in params, but the gateway RPC aborts at 30 s regardless).
Suggested fixes (any of)
- Make the gateway
node.invokeRPC timeout configurable (config/env) or honor the request'stimeoutMswith a sane cap. - Reuse/warm MXC containers across invocations to eliminate the ~27–53 s cold start.
- When MXC cold start exceeds the RPC timeout, fall back to host execution if
blockHostFallbackWhenMxcUnavailable=false(currently fallback only triggers when MXC is unavailable, not when it is merely slow).
Related but different: #1189 (SetInformationJobObject 0x80070057 — exec never starts; here exec succeeds but the result is discarded by the gateway timeout).
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Aug 21, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed September 14, 2026, 1:32 PM ET / 17:32 UTC.
Summary
Keep open for verification against the supported Gateway and Windows release combination. Upstream main now explicitly supplies the invocation deadline that prevents the reported 30-second cutoff, but its shipped availability and resolution on the affected Windows setup are not established.
Reproducibility: no. high-confidence current-version reproduction is established. The report contains concrete historical timings, but current upstream supplies the missing invocation budget; this read-only review ran no application, build, or tests.
Ways to help us reproduce this
Next step
Verify release inclusion of upstream deadline propagation and retest agent exec on the affected Windows setup before opening another fix PR; no bounded remaining local defect is established.
Security
Needs attention: The suggested timeout-triggered host fallback must not become an implicit containment bypass.
Review details
Best possible solution:
Use the existing upstream deadline propagation while preserving local sandbox limits and containment, with clear in-product diagnostics when execution cannot finish within the available budget.
Do we have a high-confidence way to reproduce the issue?
No high-confidence current-version reproduction is established. The report contains concrete historical timings, but current upstream supplies the missing invocation budget; this read-only review ran no application, build, or tests.
Is this the best way to solve the issue?
Yes, propagating the existing invocation deadline is the narrowest solution and is already present upstream. Container reuse or timeout-triggered host fallback is unnecessary unless a separate current defect is demonstrated.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against bd9ce43b4d9c.
Label changes
Label justifications:
P0: The report describes unusable core Windows command execution on the affected setup, and recent human triage explicitly restored emergency priority.impact:other: Successful remote command results arrive after the Gateway stops waiting, preventing usable agent execution.impact:security: The proposed slow-sandbox host fallback would change the containment boundary and requires explicit scrutiny.Evidence reviewed
Security concerns:
src/OpenClaw.Shared/Mxc/MxcCommandRunner.cs:178Treating a slow sandbox as unavailable could execute the command outside its intended boundary and repeat side effects from an invocation that already started. This is a concern with the suggested remedy, not a demonstrated vulnerability in current code.
Confidence: 0.95
What I checked:
docs/OPENCLAW_GATEWAY_NODE_EXEC_FAQ.md:307, bd9ce43b4d9c)src/agents/bash-tools.exec-host-node-phases.ts:379, 89029af97dc1)src/gateway/node-registry-private.ts:245, 89029af97dc1)tests/OpenClaw.E2ETests/Setup/MxcSetupAndConnectTests.cs:146, bd9ce43b4d9c)src/OpenClaw.Shared/Mxc/MxcCommandRunner.cs:145, bd9ce43b4d9c)Likely related people:
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.MilkyWay008 commentedon Aug 22, 2026
The
node.invoke 30014ms UNAVAILABLEgap is the whole story, the gateway's RPC deadline is hard-coded around 30s and the MXC fresh-AppContainer cold start (27-53s) always outruns it, so the node lands 2-4s after the gateway gives up. Bumping exec timeouts won't help, that's a different knob; the fix is raising the gateway-side invoke deadline or keeping the MXC container warm between runs. I've got a portable Hermes OTG on a USB stick I use as a rescue agent for exactly this kind of Windows+WSL agent pairing mess, https://github.com/MilkyWay008/Hermes-OTG if you want to poke at it.6 remaining items
github-actions commentedon Oct 8, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updated OpenClaw Windows details or it will be closed.
github-actions commentedon Oct 16, 2026
Closing due to inactivity.
If this still affects OpenClaw Windows, open a new issue with the current version, logs, and fresh reproduction details.