Repository navigation
Description
Summary
Windows Hub intermittently loses its Gateway connections, including while the agent is idle. One node-exec request failed during system.run.prepare despite the Hub logging local completion and an ok=True result send attempt. Root cause is unresolved; the report distinguishes observed failures from source-level hypotheses.
Environment
- Windows 11 Pro, build 26300.
- Hub 2026.9.8-1, installed product revision
2ba89f377ce8ce3f5ddfc452e4d509329f109114. - Installed self-contained runtime configuration: .NET / WindowsDesktop 10.0.12.
- Gateway 2026.9.9 (
bcfc888), Node 24.19.0, Ubuntu-26.04 in WSL2 with mirrored networking. - Ordinary Gateway listener is loopback-only. No externally managed reverse proxy targets it.
gateway.rolesis absent andgateway.trustedProxiesis empty. - Three Windows nodes exist. The original command explicitly targeted the Hub; later generic node-mode close records cannot all be assigned to it.
Observed reproduction
This is an intermittent live-installation observation, not a deterministic minimal reproduction:
- Connect the Windows Hub operator and node roles to the WSL Gateway.
- From a Main agent session, request a harmless echo through node exec, explicitly targeting the Hub with a Windows working directory and a 20-second tool timeout.
- Observe the request fail after approximately 5.8 seconds with
DISCONNECTED: node disconnected (system.run.prepare), without stdout or exit status. - Leave the agent idle. Automatic reconnects and premature closures also occur without another command.
Expected: prepare returns to the Gateway and an ordinary harmless command completes, or transport failure is reported accurately. Actual: result delivery is unconfirmed and sockets reconnect repeatedly.
Sanitized timeline, 2026-10-09 (BST, UTC+1)
Original request:
| Time | Hub observation |
|---|---|
| 15:53:10.328 | Prepare handled locally |
| 15:53:10.332 | Invoke-result send logged with ok=True |
| 15:53:10.336 | Local prepare invocation completed |
| 15:53:12.458 | Connection closed prematurely |
| 15:53:12.459 | Node disconnected |
| 15:53:15.998 | Node registered again |
A later three-minute stock verbose-WebSocket observation, with no command canary, recorded:
| Time | Connection prefix | Client mode | Close code | Cause | Ping write | Last pong age (ms) | Buffered bytes |
|---|---|---|---|---|---|---|---|
| 16:33:51.942 | d0aee6ef | cli | 1006 | heartbeat-timeout | completed | 44710.8 | 0 |
| 16:34:23.160 | 8f0379a3 | node | 1006 | heartbeat-timeout | completed | 39671.8 | 0 |
Hub independently logged premature closure at exactly 16:33:51.942. That is strong correlation, not definitive process attribution: the Hub operator declares cli/cli, while its node declares node-host/node. The second record has not been assigned to a particular Windows node. The original prepare failure has no retained matching Gateway close-cause record.
Completed ping writes and zero buffered output do not prove peer receipt. A transient Gateway event-loop delay was observed near the original failure, but later idle disconnects mean it is not established as the sole cause. HTTP health checks returned 200 after restoration; the restored Gateway process stayed active with no automatic restarts, and the Hub process remained alive. Diagnostic logging was restored to normal afterward. These checks do not establish continuous uptime or a functioning node-exec route.
Exact-revision source findings, not a root-cause claim
- WebSocketClientBase.cs:472 onward awaits message processing between receives. A blocking handler/subscriber could delay control-frame processing, but no such runtime stall has been demonstrated.
- Accepted node capabilities already run off the receive loop through
Task.Run: WindowsNodeClient.cs:630. The slow-capability test at WindowsNodeClientTests.cs:3655 exercises message dispatch, not wire-level heartbeat behavior; it was inspected, not run here. - The
ok=Trueresult log precedes the socket write: WindowsNodeClient.cs:644. The untracked SendRawAsync helper, WebSocketClientBase.cs:744 can return without sending on a closed socket. Thus local completion does not establish Gateway receipt. - The premature-close warning at WebSocketClientBase.cs:555 has no role or connection-generation label, limiting attribution.
- Microsoft guidance and the .NET 10.0.12 implementation confirm automatic protocol PONG handling during receive. Adding an application-level JSON ping handler is not an established fix.
Related reports and request
This differs from #1190, where MXC executes successfully but exceeds an approximately 30-second RPC limit. This failure happened during prepare, with disconnection after approximately 5.8 seconds and no process-execution receipt. It also differs from #1574, which concerns reconnects during Windows session teardown; no shutdown was in progress here.
Is there a released, supported repair matching this behavior? Otherwise, what bounded role/generation-specific diagnostic would distinguish missed protocol PONG processing from transport loss and attribute operator versus node closures? No permission expansion, timeout workaround, network-mode change, or unmerged patch has been applied. No raw traffic, session content, credentials, or personal paths are included.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsBacklog
Activity
clawsweeper commentedon Oct 9, 2026
Codex review: this still needs some work.
Summary
Keep this issue open: it documents an interrupted command on an official release, and the merged transport repairs do not establish that its premature closures or missing prepare result are resolved.
Reproducibility: No high-confidence current-main reproduction is established: the reporter supplies intermittent release observations, while source confirms delivery and attribution limitations without proving the disconnect trigger; this read-only review ran no builds or tests.
Next step
Capture a supported-build failure correlating client role, connection generation, receive progress, result-write outcome, and Gateway close cause before selecting a repair.
Review details
Best possible solution:
Restore reliable invocation with evidence that separates local capability completion, socket-write outcome, and Gateway receipt for the same connection.
Do we have a high-confidence way to reproduce the issue?
No high-confidence current-main reproduction is established: the reporter supplies intermittent release observations, while source confirms delivery and attribution limitations without proving the disconnect trigger; this read-only review ran no builds or tests.
Is this the best way to solve the issue?
Correlated transport diagnostics are the justified next step; longer timeouts, application-level ping handling, or automatic result replay would assume an unproven cause or delivery guarantee.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against b762c8dc12a8.
Label changes
Label changes:
No label changes.
Label justifications:
P1: Repeated established-connection loss interrupted an actual agent-to-Windows command on an official release.impact:other: The demonstrated impact is failed Windows node execution through transport loss, without established process crashes, channel-message loss, or state corruption.Evidence reviewed
Acceptance criteria:
What I checked:
src/OpenClaw.Shared/WebSocketClientBase.cs:543, b762c8dc12a8)src/OpenClaw.Shared/WindowsNodeClient.cs:793, b762c8dc12a8)tests/OpenClaw.Shared.Tests/WebSocketClientBaseTests.cs:1068, b762c8dc12a8)src/OpenClaw.Shared/WebSocketClientBase.cs:122, 0cfeaeb72e02)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 explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed November 30, 2026, 12:25 AM ET / 05:25 UTC.
github-actions commentedon Oct 24, 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 Nov 9, 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 Nov 30, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updated OpenClaw Windows details or it will be closed.