Repository navigation
fix(tray): browser control stuck without shared gateway token - #1066
Conversation
Setup-code pairing can connect without a SharedGatewayToken, which silently skipped browser capability declaration and left the UI stuck on Enabled, not active yet. Surface Needs gateway shared token, warn in Command Center, and log the concrete skip reason. Refs: openclaw/openclaw#115989
|
Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 6:39 PM ET / 22:39 UTC. ClawSweeper reviewWhat this changesThe PR centralizes Browser control activation decisions so the Windows tray, Command Center, connection diagnostics, logs, and documentation distinguish a missing gateway shared token from disconnected and remote browser-endpoint states. Merge readiness⛔ Blocked until stronger real behavior proof is added - 5 items remain This PR remains necessary and its shared-policy direction is sound, but it is not ready to merge: the latest head adds live-session and remote/SSH guidance without matching current-head runtime proof, and the required Browser proxy ownership transfer is not recorded in the architecture ledger. Priority: P2 Review scores
Verification
How this fits togetherBrowser control is a Windows-node capability registered with an OpenClaw Gateway. The tray combines the Browser control setting, active gateway credentials, live node state, and gateway topology to decide whether to declare the capability and what recovery guidance operators see. flowchart LR
A[Browser control setting] --> D[Browser activation policy]
B[Gateway record and shared token] --> D
C[Live node connection state] --> D
D --> E[Capability registration]
D --> F[Connection, Command Center, diagnostics]
F --> G[Operator recovery guidance]
Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one Do we have a high-confidence way to reproduce the issue? Yes, at source level: setup-code or QR pairing can leave the shared token absent while Browser control is enabled, and the focused tests exercise the resulting policy states. Current-head live reproduction evidence is incomplete because the supplied screenshots predate the latest policy changes. Is this the best way to solve the issue? No, not yet. Centralizing the policy is the right implementation boundary, but the PR must record that transfer in the architecture ledger and prove the latest live-state and remote/SSH guidance from the current head. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d7d153ca5d40. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (9 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Only show Needs shared token / Command Center guidance when a node client is attached; disconnected gateways should not tell operators to paste a token.
|
Addressed the ClawSweeper finding: browser proxy "Needs shared token" / Command Center warning now require an attached node client ( Proof: focused tray tests (BrowserProxyActivation, CommandCenter warning policy, NodeCapabilityGating, ConnectionPage source) passed locally. Bugbot on the follow-up diff: no bugs. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Added Shot C current-head proof on @clawsweeper re-review |
|
@trippyogi, thank you for the careful work and current-head screenshots. I agree with the core direction: keep the shared-token authentication boundary, stop presenting Browser control as indefinitely pending, and give operators an actionable explanation. I ran the current head through independent Opus and Codex reviews and verified the findings against source. I’m holding this below our 90% merge-confidence bar because three consistency gaps remain. Blocking before merge
ScopeI’m comfortable with QR/setup-code pairing not enabling Browser control by itself. This PR should be described as fixing the misleading blocked-state UX while preserving the shared-token requirement. It does not make QR-only or arbitrary remote Browser control functional, so #1056 should only close with that scope stated explicitly. Done criteria
The authentication boundary, secret handling, existing shared-token path, CI, and screenshot proof all look good. The remaining request is to make every surface report the same operational truth, not to redesign Browser control. |
…urfaces Use manager NodeState for remediation, and share topology-aware remote/SSH endpoint guidance across Connection pill tooltips, Command Center, and app.connection diagnostics so token-only copy does not overpromise.
|
Addressed @bkudiess consistency blockers on top of merged
CI will re-run on the new head. Fresh remote-topology screenshots for the updated tooltip can follow if still needed after ClawSweeper. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Related: openclaw/openclaw#115989, #1056
What Problem This Solves
Fixes an issue where users who enable Browser control on Windows Hub after setup-code or QR pairing would see the capability stuck on "Enabled, not active yet" with no error, while the node never declared
browser/browser.proxyto the gateway.Why This Change Was Made
Browser proxy auth uses the saved gateway shared token, not the WebSocket device token. Pairing can succeed without that shared token, and Hub previously skipped declaration silently. This keeps the token gate (correct for auth) but surfaces a concrete blocked state, Command Center warning, diagnostics caveat, and tray log reason.
User Impact
Operators who paired with a setup code now see Needs gateway shared token, get a Command Center warning, and can fix it by entering the gateway shared token and reconnecting, instead of debugging an apparently transient inactive state.
Evidence
./build.ps1: all projects succeededupstream/mainin this checkoutChange Type
Scope
winnodeValidation
./build.ps1- passdotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj- Passed: 3249, Skipped: 31Real Behavior Proof
fix/115989-browser-proxy-shared-token, local OpenClaw gatewayws://127.0.0.1:18795(token auth), setup-code pairing with no shared gateway token initially7f529262(Shot A/B captured on8d24ed78; Shot C no-client refresh on7f529262)Shot A ΓÇö blocked without shared token
Redacted tray log:
Shot B ΓÇö recovery after shared token
browseris declared and the capability pill is activeShot C — no-client / disconnected does not ask for shared token (head
7f529262)7f529262; stopped proof gateway on18795; clearedsharedGatewayTokenon the saved gateway; Node mode + Browser control remain ON.Redacted session note: after 13:00 on this head, tray log had 0 lines of missing-token / browser-not-declared guidance while disconnected (earlier Shot A lines remain from the attached-client missing-token session).
browser.proxyinvoke against a browser-control hostSecurity Impact
Compatibility and Migration
Review Conversations