You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Step 'pair-operator' fails due to a connection error #662
P1Urgent regression or broken agent/channel workflow affecting real users now.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 3, 2026, 8:27 AM ET / 12:27 UTC.
Summary
This should stay open: the attached report is concrete, current main still uses the localhost setup path that can fail before operator pairing, and the overlapping repair in #547 is still open and proof-blocked rather than a merged fix.
Reproducibility: no. high-confidence current-main runtime reproduction was performed in this Linux review environment. The attached log and current source make the failure source-reproducible enough to keep open, but the final repro should run on Windows with WSL networking.
Ways to help us reproduce this
Add expected vs actual behavior.
Next step
Maintainers should decide whether to land the relevant proven subset of #547 or request a narrower replacement PR before ClawSweeper opens duplicate repair work.
Review details
Best possible solution:
Land a narrow, tested setup fix that uses a Windows-reachable loopback URL and waits for Windows-side gateway reachability before pair-operator, either by proving the relevant subset of #547 or replacing it with a smaller PR.
Do we have a high-confidence way to reproduce the issue?
No high-confidence current-main runtime reproduction was performed in this Linux review environment. The attached log and current source make the failure source-reproducible enough to keep open, but the final repro should run on Windows with WSL networking.
Is this the best way to solve the issue?
Unclear. The likely technical direction is 127.0.0.1 plus a Windows-side port-reachability wait before pair-operator, but maintainers should decide whether to land that from the broad open PR or ask for a focused replacement.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
The exact reporter machine networking mode is unknown; a fix should be proven on a Windows WSL setup where Windows-side localhost forwarding is slow or refused.
Codex review notes: model gpt-5.5, reasoning high; reviewed against 53ff55aff974.
Label changes
Label changes:
add P1: The report blocks first-run local gateway setup at the operator pairing step for a real user.
add impact:auth-provider: The failure is in the operator pairing and credential handoff path before the Windows device can be paired.
add issue-rating: 🐚 platinum hermit: Current issue advisory state selects this label.
add clawsweeper:needs-live-repro: Current issue advisory state selects this label.
add clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.
add clawsweeper:needs-maintainer-review: Current issue advisory state selects this label.
Label justifications:
P1: The report blocks first-run local gateway setup at the operator pairing step for a real user.
impact:auth-provider: The failure is in the operator pairing and credential handoff path before the Windows device can be paired.
Evidence reviewed
Acceptance criteria:
./build.ps1
dotnet test ./tests/OpenClaw.SetupEngine.Tests/OpenClaw.SetupEngine.Tests.csproj --no-restore
dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore
dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore
What I checked:
Repository policy read: AGENTS.md was read fully; its connection, pairing, setup-engine, and validation guidance is relevant to this issue review. (AGENTS.md:1, 53ff55aff974)
Attached log shows real failure: The downloaded log shows mint-token succeeded, pair-operator created a gateway record, then three attempts to connect to ws://localhost:18789 failed with SocketException 10061 before the step completed as failed.
Screenshot matches failure: The issue screenshot shows the setup UI reporting: Step 'pair-operator' failed: Operator connection failed: Error.
Gateway health only checks inside WSL: StartGatewayStep declares the gateway running after a curl from inside WSL to 127.0.0.1 succeeds; it does not prove the Windows host can reach the forwarded port before pair-operator starts. (src/OpenClaw.SetupEngine/SetupSteps.cs:1384, 53ff55aff974)
Pair-operator fails on first Error outcome: PairOperatorStep connects to ctx.GatewayUrl, waits 15 seconds, and returns Operator connection failed when WaitForConnectionOrPairing observes ConnectionStatus.Error. (src/OpenClaw.SetupEngine/SetupSteps.cs:1613, 53ff55aff974)
Likely related people:
ranjeshj: Authored the out-of-process SetupEngine work, several recent WSL setup hardening commits touching SetupSteps/SetupContext, and the open overlapping repair PR for localhost/port-forwarding pairing failures. (role: feature owner and recent repair author; confidence: high; commits: cefce3952ab1, 98d0760cb5b6, ff3a7cc53736; files: src/OpenClaw.SetupEngine/SetupSteps.cs, src/OpenClaw.SetupEngine/SetupContext.cs, src/OpenClaw.SetupEngine/default-config.json)
kmahone: GitHub file history shows a recent local setup touch to SetupSteps.cs after the SetupEngine redesign, making this a useful secondary routing candidate. (role: recent area contributor; confidence: medium; commits: 9106725567af; files: src/OpenClaw.SetupEngine/SetupSteps.cs)
How this review workflow works
ClawSweeper keeps one durable marker-backed review comment per issue or PR.
Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
Maintainers can also comment @clawsweeper review to request a fresh review only.
Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
There is a change in the error message in the latest releast v0.6.3
The result is the change but the error message refers to a failure due to timeout of HTTP in 5 seconds.
I investigated this and identified the root cause. I've submitted a fix PR (pending push — it'll appear shortly).
Root Cause: PairOperatorStep.ExecuteAsync() was missing the Windows-side HTTP gateway health check that PairNodeStep already has. The sequence is:
StartGatewayStep confirms the gateway is up by running curlinside WSL to 127.0.0.1:{port} — this only proves the gateway is listening in Linux namespace.
PairOperatorStep then immediately tries a Windows-side WebSocket connect to `(localhost/redacted)
WSL port forwarding can take a few seconds to propagate to the Windows loopback interface after StartGatewayStep returns.
Result: SocketException 10061 (connection refused) in v0.6.0, or 5-second HTTP timeout in v0.6.3 depending on timing.
PairNodeStep already had the correct fix (an HTTP probe to (localhost/redacted) from Windows before the WebSocket connect). PairOperatorStep` was the only step missing it.
The fix: Added the same Windows-side health check to PairOperatorStep, between device identity init and WebSocket connect. Since the step already has RetryPolicy(MaxAttempts: 3, InitialDelay: 3s), the retry loop gives WSL port forwarding time to propagate. Tests: 248 passed (1 new regression test added).
P1Urgent regression or broken agent/channel workflow affecting real users now.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
Activity
clawsweeper commentedon Jun 3, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 3, 2026, 8:27 AM ET / 12:27 UTC.
Summary
This should stay open: the attached report is concrete, current main still uses the localhost setup path that can fail before operator pairing, and the overlapping repair in #547 is still open and proof-blocked rather than a merged fix.
Reproducibility: no. high-confidence current-main runtime reproduction was performed in this Linux review environment. The attached log and current source make the failure source-reproducible enough to keep open, but the final repro should run on Windows with WSL networking.
Ways to help us reproduce this
Next step
Maintainers should decide whether to land the relevant proven subset of #547 or request a narrower replacement PR before ClawSweeper opens duplicate repair work.
Review details
Best possible solution:
Land a narrow, tested setup fix that uses a Windows-reachable loopback URL and waits for Windows-side gateway reachability before pair-operator, either by proving the relevant subset of #547 or replacing it with a smaller PR.
Do we have a high-confidence way to reproduce the issue?
No high-confidence current-main runtime reproduction was performed in this Linux review environment. The attached log and current source make the failure source-reproducible enough to keep open, but the final repro should run on Windows with WSL networking.
Is this the best way to solve the issue?
Unclear. The likely technical direction is 127.0.0.1 plus a Windows-side port-reachability wait before pair-operator, but maintainers should decide whether to land that from the broad open PR or ask for a focused replacement.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 53ff55aff974.
Label changes
Label changes:
P1: The report blocks first-run local gateway setup at the operator pairing step for a real user.impact:auth-provider: The failure is in the operator pairing and credential handoff path before the Windows device can be paired.issue-rating: 🐚 platinum hermit: Current issue advisory state selects this label.clawsweeper:needs-live-repro: Current issue advisory state selects this label.clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.clawsweeper:needs-maintainer-review: Current issue advisory state selects this label.Label justifications:
P1: The report blocks first-run local gateway setup at the operator pairing step for a real user.impact:auth-provider: The failure is in the operator pairing and credential handoff path before the Windows device can be paired.Evidence reviewed
Acceptance criteria:
What I checked:
AGENTS.md:1, 53ff55aff974)src/OpenClaw.SetupEngine/SetupContext.cs:35, 53ff55aff974)src/OpenClaw.SetupEngine/SetupSteps.cs:1384, 53ff55aff974)src/OpenClaw.SetupEngine/SetupSteps.cs:1613, 53ff55aff974)Likely related people:
src/OpenClaw.SetupEngine/SetupSteps.cs,src/OpenClaw.SetupEngine/SetupContext.cs,src/OpenClaw.SetupEngine/default-config.json)src/OpenClaw.SetupEngine/SetupSteps.cs)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.cugwmui commentedon Jun 5, 2026
There is a change in the error message in the latest releast v0.6.3
The result is the change but the error message refers to a failure due to timeout of HTTP in 5 seconds.
setup-engine-20260605-150452.journal.json
setup-engine-20260605-150452.json
Attached are the setup logs (renamed to json from jsonl due to restrictions of github).
fix(setup): add Windows-side gateway health check to pair-operator step
github-actions commentedon Jun 11, 2026
🤖 This is an automated response from Repo Assist.
I investigated this and identified the root cause. I've submitted a fix PR (pending push — it'll appear shortly).
Root Cause:
PairOperatorStep.ExecuteAsync()was missing the Windows-side HTTP gateway health check thatPairNodeStepalready has. The sequence is:StartGatewayStepconfirms the gateway is up by runningcurlinside WSL to127.0.0.1:{port}— this only proves the gateway is listening in Linux namespace.PairOperatorStepthen immediately tries a Windows-side WebSocket connect to `(localhost/redacted)StartGatewayStepreturns.SocketException 10061 (connection refused)in v0.6.0, or 5-second HTTP timeout in v0.6.3 depending on timing.PairNodeStepalready had the correct fix (an HTTP probe to(localhost/redacted) from Windows before the WebSocket connect).PairOperatorStep` was the only step missing it.The fix: Added the same Windows-side health check to
PairOperatorStep, between device identity init and WebSocket connect. Since the step already hasRetryPolicy(MaxAttempts: 3, InitialDelay: 3s), the retry loop gives WSL port forwarding time to propagate. Tests: 248 passed (1 new regression test added).Add this agentic workflows to your repo
To install this agentic workflow, run
fix(setup): add Windows-side gateway health check to pair-operator step
fix(setup): wait for operator gateway reachability