Skip to content

fix(ui): reconcile remote access setup's relay step and offer profile linking - #198474

Merged
jalehman merged 6 commits into
mainfrom
fix/remote-access-setup-warnings
Nov 13, 2026
Merged

jalehman merged 6 commits into
mainfrom
fix/remote-access-setup-warnings

Conversation

@jalehman

@jalehman jalehman commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Closes #198464

What Problem This Solves

Fixes: the Turn on remote access dialog shows two yellow warnings after a setup that actually worked. Connecting shows one when the relay connects a few seconds after setup. Setting up your access shows one when the Gateway restarted between OpenClaw ID sign-in and setup.

User Impact

User impact: the completed setup card now shows the real state. Connecting spins and then turns green once the relay is online. A profile that couldn't be linked gets a note under the steps, with a Link your profile button when signing in again will fix it.

Why This Change Was Made

The dialog read relay status once, right after commit, and kept that answer. It now keeps checking while it is open: it spins for up to 30 seconds before warning, and still turns green if the relay connects later. The profile link is a separate step from setting up the claw's access, so its outcome moves out of that row. When the Gateway no longer holds the browser's sign-in (sign_in_not_held, for example after a restart), the note offers the same device sign-in that Settings → Profile uses.

Evidence

Real Chromium render of the completed card. The synthetic Gateway answers commit with profileLink: "sign_in_not_held" and reports the relay offline at first, then online.

Before (main): both warnings, which stay after the relay connects.

Before: Setting up your access and Connecting studio both show warnings

After, just finished: access step done, relay step still connecting, profile note with Link your profile.

After: relay step spinning and a profile-link note with a Link your profile button

After, relay online: the relay step turns green on its own.

After: all four steps done, profile-link note remains

Tests:

  • pnpm exec vitest run --config ui/vitest.config.ts ui/src/lib/openclaw-id ui/src/components/openclaw-id ui/src/pages/profile: 33 files, 261 tests pass
  • New cases cover the relay coming up late, the grace-period warning, stopping when the dialog closes, each profile-link outcome, retrying the link, and ignoring a sign-in that finishes after setup closes
  • The incident in [Bug]: Remote-access setup retains Connecting warning after relay becomes online #198464 had relay online 8 s after commit and link_profile failure code=sign_in_not_held; the reporter confirmed the Gateway restarted between sign-in and setup, and that linking from Settings → Profile then worked

🦞 Made with OpenClaw

@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 13, 2026
@jalehman
jalehman enabled auto-merge (squash) November 13, 2026 22:14
@jalehman
jalehman disabled auto-merge November 13, 2026 22:20
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR refreshes the setup dialog’s relay status and offers profile linking separately when a fresh sign-in can recover it.

Example: The relay connects eight seconds after setup, while profile linking returns sign_in_not_held.

  • Before: Connecting studio stays yellow, and Setting up your access also shows a warning.
  • After: Connecting studio can turn green automatically, while a separate notice offers Link your profile.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The source repair is coherent, but supplied behavior evidence is incomplete and the failed UI checks lack established attribution.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Successful remote-access setup continues to look unsuccessful, while an independent profile-link failure is attached to the access-setup row.
Reason: The reported incident and current source establish a useful, focused repair; the supplied maintainer-authorship fact establishes direction.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR addresses a confirmed setup-status defect that remains on main; source review found no blocking code defect.

Priority: P2
Reviewed head: 834ec703896417a6d4e34f1b9d978e1943bf06d5

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Provide redacted current-head browser and Gateway evidence of delayed relay success and successful profile linking through the new button; base-red/head-green regression results are not shown.
Agent review details

How this fits together

The Control UI setup dialog consumes Gateway commit and relay-status responses, renders completion progress, and invokes the existing device sign-in flow for profile linking.

flowchart TD
  A[Remote access setup dialog] --> B[Gateway setup commit]
  B --> C[Publication and profile outcome]
  C --> A
  A --> D[Relay status polling]
  D --> E[Gateway tunnel status]
  A --> F[Device sign in dialog]
  F --> G[Existing profile linking operation]
Loading

Technical review

Best possible solution:

Keep relay reconciliation scoped to the open dialog and use the existing device sign-in operation for recoverable profile-link failures.

Do we have a high-confidence way to reproduce the issue?

Current-main source establishes the stale-warning path, and the linked report supplies matching production logs; no target code was executed during this review.

Is this the best way to solve the issue?

The patch repairs presentation at its existing owner without changing relay retries, successful setup persistence, or profile-link authorization.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 285f053854c8.

Provenance checked

  • Relay completion status changes intended behavior with a stated reason (e29577b: The original linking UI reported each setup operation independently and treated an initially offline relay as a nonfatal warning.)
  • Profile-link warning placement changes intended behavior with a stated reason (e339437: Personal-admin setup intentionally retained successful remote access when profile linking failed and pointed the user to Settings → Profile.)
  • Completion-card presentation keeps the original intent (7d01432: The presentation refactor grouped setup steps into one card with details on demand; the patch retains that card and its independent step states.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Josh Lehman: Raw commit e29577b adds ui/src/lib/openclaw-id/link-steps.ts:9 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e29577b7d7df; files: ui/src/lib/openclaw-id/link-steps.ts)
  • Vyctor H. Brzezowski: Raw commit 653fb52 adds ui/src/components/openclaw-id/make-reachable-dialog.tsx:291 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 653fb527d43f; files: ui/src/components/openclaw-id/make-reachable-dialog.tsx)

PR surface

Source +172, Tests +240. Total +412 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 198 26 +172
Tests 2 310 70 +240
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 508 96 +412

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: A misleading completion state creates diagnostic effort after remote access succeeds, with limited impact and an available dismissal path.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: A misleading completion state creates diagnostic effort after remote access succeeds, with limited impact and an available dismissal path.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 13, 2026, 5:50 PM ET / 22:50 UTC.

@jalehman
jalehman merged commit d4e80ac into main Nov 13, 2026
91 of 95 checks passed
@jalehman
jalehman deleted the fix/remote-access-setup-warnings branch November 13, 2026 22:53
@jalehman

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 14, 2026
… linking (openclaw#198474)

* fix(ui): reconcile remote access setup's relay step and offer profile linking

* fix(ui): open no profile sign-in after remote access setup closes

* fix(ui): keep remote access setup's profile link inside CI guards

* fix(ui): use the dialog alert style for remote access setup's profile note

* fix(ui): satisfy no-promise-executor-return in remote access setup's relay sleep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Remote-access setup retains Connecting warning after relay becomes online

1 participant