Repository navigation
fix(ui): reconcile remote access setup's relay step and offer profile linking - #198474
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +172, Tests +240. Total +412 across 6 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 13, 2026, 5:50 PM ET / 22:50 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
… 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
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.
After, just finished: access step done, relay step still connecting, profile note with Link your profile.
After, relay online: the relay step turns green on its own.
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 passlink_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