Skip to content

fix(tray): browser control stuck without shared gateway token - #1066

Merged
bkudiess merged 4 commits into
openclaw:mainfrom
trippyogi:fix/115989-browser-proxy-shared-token
Aug 1, 2026
Merged

bkudiess merged 4 commits into
openclaw:mainfrom
trippyogi:fix/115989-browser-proxy-shared-token

Conversation

@trippyogi

@trippyogi trippyogi commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

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.proxy to 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

  • Focused tray tests for activation, warning policy, gating, diagnostics caveat, localization keys, and source contracts: 51 passed
  • Shared tests: 3249 passed (31 skipped)
  • ./build.ps1: all projects succeeded
  • Bugbot on branch changes: no bugs
  • Full tray suite: 1948 passed; 3 pre-existing source-contract CRLF failures also fail on clean upstream/main in this checkout
  • Live Windows tray + local gateway screenshots in Real Behavior Proof below

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Validation

  • ./build.ps1 - pass
  • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj - Passed: 3249, Skipped: 31
  • Focused tray filter for BrowserProxyActivation / CommandCenterStateBuilder / NodeCapabilityGating / ConnectionDiagnosticsProjection / ConnectionPageNodeApproval / LocalizationValidation - Passed: 51

Real Behavior Proof

  • Environment tested: Windows 11 x64, OpenClaw Windows Companion on branch fix/115989-browser-proxy-shared-token, local OpenClaw gateway ws://127.0.0.1:18795 (token auth), setup-code pairing with no shared gateway token initially
  • PR head or commit tested: 7f529262 (Shot A/B captured on 8d24ed78; Shot C no-client refresh on 7f529262)
  • Exact steps:
    1. Pair Hub to local gateway with setup code only (device token; shared token absent)
    2. Enable Node mode + Browser control
    3. Observe Browser control blocked with tooltip Needs gateway shared token
    4. Save the gateway shared token on the gateway record and reconnect
    5. Observe Browser control active (green); Connection glance shows Shared token
  • Evidence after fix:

Shot A ΓÇö blocked without shared token

Browser control tooltip: Needs gateway shared token

Connection page: Browser control red while other capabilities are active

Redacted tray log:

[2026-07-29 12:33:25.699] [WARN] [NodeService] browser capability not declared: active gateway has no shared gateway token (setup-code/QR pairing alone is not enough for browser.proxy; enter the gateway shared token in Settings)

Shot B ΓÇö recovery after shared token

Connection page: Browser control active with Shared token present

  • Observed result: missing shared token is shown as an actionable blocked state; after saving the shared token, browser is declared and the capability pill is active

Shot C — no-client / disconnected does not ask for shared token (head 7f529262)

  • Setup: rebuilt tray at 7f529262; stopped proof gateway on 18795; cleared sharedGatewayToken on the saved gateway; Node mode + Browser control remain ON.
  • Permissions shows Browser control ON and Node mode enabled, not connected — no Needs gateway shared token copy.
  • Connection shows Can't reach gateway / transport error — reconnect guidance only; no shared-token warning.

Permissions: browser on, not connected

Connection: disconnected, no shared-token guidance

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).

  • Screenshot or artifact links verified? (Yes)
  • Not verified or blocked: remote (non-loopback) gateway; live browser.proxy invoke against a browser-control host

Security Impact

  • New permissions or capabilities? (No)
  • Secrets or tokens handling changed? (No) ΓÇö still requires shared gateway token before declaring browser.proxy; does not weaken that gate
  • New or changed network calls? (No)
  • Command or tool execution surface changed? (No)
  • Data access scope changed? (No)

Compatibility and Migration

  • Backward compatible? (Yes)
  • Config or environment changes? (No)
  • Migration needed? (No) ΓÇö operators who already saved a shared gateway token are unchanged; setup-code-only pairings must enter the shared token to activate browser control

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

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
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal priority bug or improvement with limited blast radius. labels Jul 29, 2026
@clawsweeper

clawsweeper Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 6:39 PM ET / 22:39 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 11f239fce8938f36a8e909f6934d549749a75a35

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation has focused source coverage and addresses prior consistency findings, but missing current-head runtime proof and the unresolved ownership-record finding keep it below merge-ready quality.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: Prepared screenshots show the pre-current-head missing-token recovery and disconnected behavior, but none proves the current head's connected-state and remote or SSH topology guidance; add redacted current-head screenshots, diagnostics output, or a short recording. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Prepared screenshots show the pre-current-head missing-token recovery and disconnected behavior, but none proves the current head's connected-state and remote or SSH topology guidance; add redacted current-head screenshots, diagnostics output, or a short recording. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 6 items Shared activation policy: The branch introduces one policy that keeps registration attach-based while showing missing-token remediation only for a connected node session, avoiding a token-paste instruction during a disconnected state.
Diagnostics shares the live-state gate: The connection diagnostics projection derives the caveat from the manager NodeState and calls the shared policy before emitting token remediation.
Focused source coverage: The new tests cover token registration gating, connected versus disconnected warning behavior, remote endpoint guidance, and SSH tunnels without a browser-proxy forward.
Findings 1 actionable finding [P2] Record the Browser proxy policy ownership transfer
Security None None.

How this fits together

Browser 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]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Prepared screenshots show the pre-current-head missing-token recovery and disconnected behavior, but none proves the current head's connected-state and remote or SSH topology guidance; add redacted current-head screenshots, diagnostics output, or a short recording. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Record the Browser proxy policy ownership transfer (P2) - BrowserProxyActivation is the new shared owner for registration, tray pills, Command Center, and diagnostics, but docs/ARCHITECTURE.md is unchanged. Repository policy requires the ledger update in the same PR when extracting responsibility from active god-file targets; add the authoritative owner and preserve the no-parallel-policy invariant with an appropriate guard.
  • Resolve merge risk (P1) - The current head has no directly matching live runtime evidence for the connected remote or SSH-without-forward guidance, so source tests alone do not establish that every visible surface reflects the updated policy.
  • Resolve merge risk (P1) - Without recording the ownership transfer in the architecture ledger, future edits can recreate parallel Browser proxy policy in ConnectionPage.xaml.cs, Command Center, or diagnostics.
  • Complete next step (P2) - The contributor must provide current-head Windows runtime proof, and the remaining source change is governed by the repository's architecture-transfer policy rather than a repair worker proving the contributor's environment.

Findings

  • [P2] Record the Browser proxy policy ownership transfer — src/OpenClaw.Tray.WinUI/Services/BrowserProxyActivation.cs:7-9
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Cross-surface change 22 files changed, 976 added, 101 removed The patch changes shared policy plus several operator-facing surfaces, so the policy and runtime proof need to stay aligned.
Focused policy coverage 3 focused test files changed, 1 added The new policy has direct unit coverage for registration, diagnostics, and Command Center behavior.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep one BrowserProxyActivation policy owner, record that transfer and its invariant in docs/ARCHITECTURE.md, then add redacted current-head Windows proof for the live missing-token and remote or SSH endpoint paths before merge.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep one BrowserProxyActivation policy owner, record that transfer and its invariant in docs/ARCHITECTURE.md, then add redacted current-head Windows proof for the live missing-token and remote or SSH endpoint paths before merge.

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:

  • [P2] Record the Browser proxy policy ownership transfer — src/OpenClaw.Tray.WinUI/Services/BrowserProxyActivation.cs:7-9
    BrowserProxyActivation is the new shared owner for registration, tray pills, Command Center, and diagnostics, but docs/ARCHITECTURE.md is unchanged. Repository policy requires the ledger update in the same PR when extracting responsibility from active god-file targets; add the authoritative owner and preserve the no-parallel-policy invariant with an appropriate guard.
    Confidence: 0.93

Overall correctness: patch is incorrect
Overall confidence: 0.88

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against d7d153ca5d40.

Labels

Label justifications:

  • P2: This fixes a bounded but user-facing Windows Browser control workflow where operators otherwise receive misleading recovery guidance.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Prepared screenshots show the pre-current-head missing-token recovery and disconnected behavior, but none proves the current head's connected-state and remote or SSH topology guidance; add redacted current-head screenshots, diagnostics output, or a short recording. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Prepared screenshots show the pre-current-head missing-token recovery and disconnected behavior, but none proves the current head's connected-state and remote or SSH topology guidance; add redacted current-head screenshots, diagnostics output, or a short recording.

Evidence

What I checked:

  • Shared activation policy: The branch introduces one policy that keeps registration attach-based while showing missing-token remediation only for a connected node session, avoiding a token-paste instruction during a disconnected state. (src/OpenClaw.Tray.WinUI/Services/BrowserProxyActivation.cs:61, 11f239fce893)
  • Diagnostics shares the live-state gate: The connection diagnostics projection derives the caveat from the manager NodeState and calls the shared policy before emitting token remediation. (src/OpenClaw.Tray.WinUI/Services/ConnectionDiagnosticsProjection.cs:30, 11f239fce893)
  • Focused source coverage: The new tests cover token registration gating, connected versus disconnected warning behavior, remote endpoint guidance, and SSH tunnels without a browser-proxy forward. (tests/OpenClaw.Tray.Tests/BrowserProxyActivationTests.cs:46, 11f239fce893)
  • Current-head proof gap: The prepared artifacts visibly demonstrate the earlier missing-token, recovery, and disconnected states, but the PR body identifies Shots A/B as commit 8d24ed7 and Shot C as 7f52926. No artifact demonstrates the latest 11f239f live-state or remote/SSH guidance. (/home/runner/_work/clawsweeper/clawsweeper/artifacts/event/codex/proof-scratch/1066/media-proof-manifest.json)
  • Architecture-transfer policy: Repository policy requires an architecture-ledger update in the same PR when responsibility is extracted from the tray god files. The branch adds BrowserProxyActivation and expands ConnectionPage usage, but does not modify docs/ARCHITECTURE.md. (docs/ARCHITECTURE.md:78, 11f239fce893)
  • Adjacent current-main ownership: Current main has a subsequent SSH-tunnel recovery change, making recent tunnel ownership relevant to review of this PR's remote and SSH guidance. (d7d153ca5d40)

Likely related people:

  • bkudiess: Provided the detailed review that established the required live-state, diagnostics, and remote-topology invariants now implemented by this branch. (role: reviewer; confidence: high; files: src/OpenClaw.Tray.WinUI/Services/BrowserProxyActivation.cs, src/OpenClaw.Tray.WinUI/Services/ConnectionDiagnosticsProjection.cs)
  • Vincent Koc: Authored current-main commit d7d153c, which repairs saved SSH tunnel recovery and is adjacent to this PR's SSH browser-proxy guidance. (role: recent adjacent contributor; confidence: medium; commits: d7d153ca5d40)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Update docs/ARCHITECTURE.md to name BrowserProxyActivation as the policy owner and protect the no-parallel-policy invariant.
  • Capture redacted current-head proof of connected missing-token guidance and one remote or SSH-without-forward recovery path, then update the PR body.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • 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.

History

Review history (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-07-29T19:55:17.545Z sha 8d24ed7 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-29T19:58:57.812Z sha 8d24ed7 :: needs changes before merge. :: [P2] Preserve the no-client recovery state
  • reviewed 2026-07-29T20:49:25.457Z sha 7f52926 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-30T01:36:32.804Z sha 7f52926 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-30T12:28:49.363Z sha 7f52926 :: needs changes before merge. :: [P1] Use live connection state for token remediation | [P2] Route diagnostics through the activation policy | [P2] Qualify remote browser-control recovery guidance
  • reviewed 2026-07-30T17:18:50.059Z sha 7f52926 :: needs changes before merge. :: [P1] Use live connection state for token remediation | [P2] Route diagnostics through the activation policy | [P2] Qualify remote browser-control recovery guidance
  • reviewed 2026-07-30T20:13:20.466Z sha 11f239f :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-30T23:37:37.482Z sha 11f239f :: needs real behavior proof before merge. :: [P2] Record the Browser proxy policy ownership transfer

@trippyogi

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 29, 2026
Only show Needs shared token / Command Center guidance when a node client is attached; disconnected gateways should not tell operators to paste a token.
@trippyogi
trippyogi marked this pull request as ready for review July 29, 2026 20:45
@trippyogi

Copy link
Copy Markdown
Contributor Author

Addressed the ClawSweeper finding: browser proxy "Needs shared token" / Command Center warning now require an attached node client (HasAttachedGatewayClient / same RegistrationBlock.MissingSharedGatewayToken path). Disconnected / no-client states no longer tell operators to paste a token.

Proof: focused tray tests (BrowserProxyActivation, CommandCenter warning policy, NodeCapabilityGating, ConnectionPage source) passed locally. Bugbot on the follow-up diff: no bugs.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient Contributor real behavior proof is sufficient. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jul 29, 2026
@trippyogi

Copy link
Copy Markdown
Contributor Author

Added Shot C current-head proof on 7f529262: Browser control ON + disconnected/no-client shows reconnect guidance only (Permissions: "Node mode enabled, not connected"; Connection: "Can't reach gateway"). No "Needs gateway shared token" copy. Session tray log after 13:00 had 0 missing-token guidance lines.

Assets: https://github.com/trippyogi/openclaw-windows-node/releases/tag/pr-1066-proof

@clawsweeper re-review

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 30, 2026
@bkudiess

Copy link
Copy Markdown
Collaborator

@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

  1. Connection diagnostics still show token remediation while disconnected.
    ConnectionDiagnosticsProjection.BuildBrowserProxy() hard-codes the Gateway as active and cannot see node-client state. As a result, app.connection.status and app.connection.gateways can still say “enter the shared token” when no node client is attached. Please route this through the same BrowserProxyActivation policy and add disconnected/no-client diagnostics coverage.

  2. Attached is not the same as connected.
    HasAttachedGatewayClient only checks whether _nodeClient is non-null. A client can remain attached after a failed or dropped connection, causing Connection and Command Center to show token remediation when reconnect is the actual problem. Please derive the UX state from the manager’s live node state, not attachment alone, and cover the attached-but-disconnected case.

  3. Remote guidance overpromises what the shared token fixes.
    Both linked reports use remote Gateways. A shared token is necessary, but direct remote Browser control also requires an explicit browser-control port or an SSH browser-proxy forward. The current copy says to enter the token and reconnect, which can leave the capability declared but still unusable. Please include the endpoint/forward requirement or make the guidance topology-aware.

Scope

I’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

  • Merge current main and rerun the focused Tray tests.
  • Add production-path tests for no client, attached-but-disconnected, and remote-without-forward states.
  • Prove app.connection.status and app.connection.gateways match Connection and Command Center.
  • Refresh the remote guidance and current-head screenshots.
  • Re-run ClawSweeper on the updated head.

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.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 30, 2026
…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.
@trippyogi

Copy link
Copy Markdown
Contributor Author

Addressed @bkudiess consistency blockers on top of merged main (11f239fc):

  1. Diagnostics / Connection / Command Center now share BrowserProxyActivation for missing-token remediation, gated on live manager NodeState == Connected (not attach-only). Attached-but-disconnected asks for reconnect, not a token paste. Registration stays attach-based (_nodeClient != null).
  2. Remote / SSH-without-browser-forward guidance is shared: Connection pill keeps the short Needs gateway shared token label; tooltip + Command Center + app.connection.* caveats use the same topology helpers (including SSH local 127.0.0.1 when IncludeBrowserProxyForward is false). Connection URL falls back to settings the same way CC does.
  3. Focused tray tests: 19/19 (BrowserProxyActivation, CommandCenterStateBuilder wiring, ConnectionDiagnosticsProjection). Codex re-review on this tip: landable, no blocking findings.

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

@clawsweeper

clawsweeper Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed proof: sufficient Contributor real behavior proof is sufficient. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Jul 30, 2026
@bkudiess
bkudiess merged commit 8ac00c5 into openclaw:main Aug 1, 2026
20 checks passed
@trippyogi
trippyogi deleted the fix/115989-browser-proxy-shared-token branch August 3, 2026 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants