Skip to content

improve(ui): clarify connection and sign-in recovery - #192246

Merged
vyctorbrzezowski merged 5 commits into
mainfrom
openclaw/copy-l2-b
Nov 4, 2026
Merged

vyctorbrzezowski merged 5 commits into
mainfrom
openclaw/copy-l2-b

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Connection recovery mixes “Offline,” technical authentication labels, and inconsistent Gateway/sign-in wording. Switching Gateways also warns about “that host” without naming the destination.

User Impact

Recovery uses “Disconnected,” clearer next steps, and consistent sign-in language. The switch warning names the destination. Forgetting a browser still clears its saved sign-in for one Gateway, signs this tab out, and preserves other Gateways, preferences, and device identity. No permissions, authentication policy, storage behavior, or retry timing changes.

Why This Change Was Made

Applies Vyctor Brzezowski’s approved Control UI glossary to the L2 connection area. English stays in its existing startup/lazy catalogs; technical token/password labels and diagnostic details remain available. The only presentation wiring change passes the destination host into the translated switch warning.

Before After
Offline Disconnected
Showing stale data. Showing last known data.
Connection to the Gateway was interrupted. Reconnecting automatically. (WebSocket {code}) Disconnected. Reconnecting automatically. (WebSocket {code})
Connection to the Gateway was interrupted. Check your connection and try again. (WebSocket {code}) Disconnected. Check your connection and reconnect. (WebSocket {code})
Could not verify access. Couldn’t verify access.
This link asks the browser to connect somewhere else. This link connects to a different Gateway.
Anything you enter after switching goes to that host. Anything you enter after switching goes to {host}.
The link also carries a token for it. This link includes a token for that Gateway.
Your saved credential for {host} stays here and is not sent. Your saved sign-in for {host} stays here and isn’t sent.
Saved sign-in for this gateway Saved sign-in for this Gateway
Activity refresh failed. Retrying… Couldn’t refresh activity. Retrying…
Connect to see Gateway activity. Reconnect to see activity.
no auth / token auth / password auth / proxy auth No sign-in / Token / Password / Proxy sign-in
This Gateway expects its token/password. Enter the Gateway token/password.
Reconnect this browser to the current Gateway to troubleshoot a stuck connection. Reconnect to the current Gateway to try again.
Pairing QR expired Pairing code expired
Run /pair qr again to generate a fresh setup code. Run /pair qr again to get a new setup code.
Gateway endpoint, credentials, and handshake status. Gateway connection and browser sign-in.
Ask your server administrator to review your access. Ask an admin to review your access.

Also shortens the forget-browser explanation, uses contractions for unapplied changes, and gives session-list recovery errors “Couldn’t…” summaries while retaining raw details.

Evidence

  • Mocked Control UI, synthetic data, light theme; inspected and cropped before/after captures below. No live Gateway data or secrets.
  • Gateway status and Connection settings E2E: 3 files / 7 tests passed, including desktop/mobile retry, automatic recovery, and applying a replacement Gateway.
  • Browser-auth recovery/loading, connection bootstrap, Gateway observers, refresh status, Logs, Profile, and Usage unit coverage passed; changed English assertions updated.
  • Connection page: 26 tests passed with one fork worker; Gateway status pure contract and URL confirmation isolated test passed. The dialog regression checks destination interpolation and the current Gateway’s sign-in warning.
  • English baseline regenerated (no baseline-file delta); i18n verify passed. Touched-file oxfmt, oxlint, and diff checks run. Oxlint reports one existing style-prop warning on the unchanged wrapper.
  • Independent review caught that forgetting a browser removes browser-wide saved device authorization, not only tab-local sign-in. The final confirmation explicitly distinguishes “this browser’s saved sign-in” from signing “this tab out.”
  • Docs audited; Connection settings instructions updated. The /pair qr command is retained.

Before

Before: connection settings and saved browser sign-in

After

After: clearer connection settings and saved browser sign-in

Gaps and unchanged scope

The dashboards stale-banner E2E file was updated for the shared copy but its standalone harness could not start: Vite reported TypeError: code.charCodeAt is not a function on both default and fork-worker attempts. No product assertion ran in those attempts. An intermediate connection-page run also hit worker startup/late-modal timing failures; the final fork-worker run passed all 26 cases.

The shared F1 “Show details” contract is absent on this base. Per the task’s fallback, raw details remain: WebSocket codes in connection.interrupted/interruptedRetrying, redacted GatewayStatus lastError tooltips and existing Connection details, and {error} in connection.sessionMoveRefreshFailed, sessionMoveUncertain, and sessionOperationCompletedPreviousConnectionWithRefreshError. The last three now have clearer summaries. No competing details component or new status state was introduced. Existing CLI setup-code help remains unchanged.

No native app/plugin copy, foreign locales, translation memory, CI watching, or landing is included.

Worked on by

Landing repair updates only the failed copy assertions still present in the integrated tree. All 66 affected unit cases, three sidebar recovery cases, and the diagnostics browser case passed. The already-correct session-controls test is unchanged, and the unrelated toast geometry failure remains with its owner. Formatting and whitespace checks passed; the original connection and sign-in proof is reused. The merge with current main is clean. A six-line allocation covers the actual integrated test growth.

roboclaw-bot and others added 2 commits November 3, 2026 19:19
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 317b716d-2274-4b2a-983a-91892ef128aa
@clawsweeper

clawsweeper Bot commented Nov 3, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: S labels Nov 3, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR clarifies English connection and sign-in recovery copy and names the destination in the Gateway-switch warning.

Example: A link switches from current.example to replacement.example.

  • Before: Anything you enter after switching goes to that host.
  • After: Anything you enter after switching goes to replacement.example.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The narrow presentation implementation is useful, but visual evidence is unavailable and the patch leaves several demonstrated CI failures.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Connection recovery uses inconsistent technical wording, and the Gateway-switch warning does not name its destination in the explanatory sentence.
Reason: The collaborator-authored PR supplies owner direction for a narrow glossary update, with no new configuration, permissions, or runtime policy.

Merge readiness

⛔ Needs changes before merge - 3 items remain

Keep this PR open: the approved copy improvements are useful, but unchanged test expectations cause CI failures and the renamed documentation section breaks an existing link.

Priority: P3
Reviewed head: 50f8b3ecef744f98ca9065501d18aaf83b2a26f3

Before merge

  • Update the remaining consumers of the changed English copy (P2) - The shared strings change beyond the tests updated in this PR. Exact-head CI fails on old expectations in session-category mutations, pairing attachment and QR lifecycle tests, chat connection controls, model-catalog state, debug views, root-copy loading, sidebar stale-data cases, and diagnostics E2E. For example, a disconnected diagnostics view now renders “Disconnected” while its E2E still requires “Offline.” Update these existing expectations while retaining their behavioral assertions so the intended copy change passes the affected suites.
  • Preserve the published Gateway host status anchor (P3) - Renaming this heading removes the generated gateway-host-status anchor. The Control UI index at docs/web/control-ui.md:807 still points to that fragment, so readers following its Gateway host status link no longer reach the section. Preserve the old ID with an explicit anchor beside the renamed heading, as required by docs/AGENTS.md.
  • Explain or restore the original intent of Control UI settings documentation - 98adc95: Split the Control UI reference into task pages; the retained index links directly to the Gateway host status section.

Findings

  • [P2] Update the remaining consumers of the changed English copy — ui/src/i18n/locales/en.ts:388
  • [P3] Preserve the published Gateway host status anchor — docs/web/control-ui/settings.md:130

Provenance

  • Control UI settings documentation changes intended behavior without addressing why it exists (98adc95: Split the Control UI reference into task pages; the retained index links directly to the Gateway host status section.)

Tests

  • Missing end-to-end proof: Publish viewable before/after captures of the changed recovery copy and Gateway-switch destination; the supplied local links cannot be inspected, and base-red/head-green regression evidence is not shown.
Agent review details

How this fits together

The Control UI renders Gateway connection state and recovery actions through shared English catalogs; the existing switch dialog receives the current and proposed Gateway URLs.

flowchart LR
  A[Gateway connection state] --> B[Control UI owners]
  C[English catalogs] --> D[Connection and recovery views]
  B --> D
  E[Proposed Gateway URL] --> F[Existing switch dialog]
  C --> F
Loading

Technical review

Best possible solution:

Keep the existing catalog and dialog owners, update all affected test expectations, and preserve the published documentation anchor.

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

The old wording is visible in pinned main source, and exact-head CI annotations directly demonstrate the stale test expectations; no target code was executed during this review.

Is this the best way to solve the issue?

The presentation change uses the smallest existing implementation: edit the owning English catalogs and pass the destination through the existing host formatter, without new state or competing recovery logic.

Full review comments:

  • [P2] Update the remaining consumers of the changed English copy — ui/src/i18n/locales/en.ts:388
    The shared strings change beyond the tests updated in this PR. Exact-head CI fails on old expectations in session-category mutations, pairing attachment and QR lifecycle tests, chat connection controls, model-catalog state, debug views, root-copy loading, sidebar stale-data cases, and diagnostics E2E. For example, a disconnected diagnostics view now renders “Disconnected” while its E2E still requires “Offline.” Update these existing expectations while retaining their behavioral assertions so the intended copy change passes the affected suites.
    Confidence: 1
  • [P3] Preserve the published Gateway host status anchor — docs/web/control-ui/settings.md:130
    Renaming this heading removes the generated gateway-host-status anchor. The Control UI index at docs/web/control-ui.md:807 still points to that fragment, so readers following its Gateway host status link no longer reach the section. Preserve the old ID with an explicit anchor beside the renamed heading, as required by docs/AGENTS.md.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 91d08c31d14c.

Provenance checked

  • Gateway-switch disclosure keeps the original intent (219584c: Explain which Gateway receives subsequent input and preserve the origin-scoped saved-credential disclosure.)
  • Browser-reset confirmation keeps the original intent (b44741c: Allow a scoped credential reset while disclosing same-tab sign-out and preserving other Gateways, preferences, and device identity.)
  • Disconnect recovery messages keeps the original intent (745f5fc: Replace unknown WebSocket-close messages with guidance matching the actual automatic-retry decision while retaining the diagnostic code.)
  • Lazy English catalog placement keeps the original intent (fadfdcf: Defer optional connection-dialog copy to reduce startup downloads while preserving existing consumers.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test ui/src/lib/sessions/session-category-mutations.test.ts ui/src/pages/chat/components/chat-message.attachments.test.tsx ui/src/pages/chat/components/chat-message-qr-lifecycle.test.tsx ui/src/pages/chat/components/chat-model-catalog-state.test.tsx ui/src/pages/chat/chat-pane-session-controls.test.tsx ui/src/pages/debug/view.test.ts ui/src/i18n/root-copy-loading.test.ts --maxWorkers=1
  • Run the owning sidebar suite for ui/src/test-helpers/app-sidebar-cases/catalog-live-errors.ts.
  • Run ui/src/e2e/debug-diagnostics.e2e.test.ts through the repository Control UI E2E runner.
  • pnpm ui:i18n:verify
  • pnpm docs:check-links:anchors

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 4044914 adds ui/src/pages/connection/view.tsx:180 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 404491496160; files: ui/src/pages/connection/view.tsx)
  • Nehanth Narendrula: Raw commit b44741c adds ui/src/i18n/locales/en-settings.ts:11 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b44741cfeaeb; files: ui/src/i18n/locales/en-settings.ts)

PR surface

Source -1, Tests +8, Docs +1. Total +8 across 15 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 6 33 34 -1
Tests 8 21 13 +8
Docs 1 3 2 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 15 57 49 +8

Labels

Label changes:

  • add P3: This is approved wording and discoverability polish with unchanged connection, authentication, storage, and retry behavior.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is approved wording and discoverability polish with unchanged connection, authentication, storage, and retry behavior.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 3, 2026, 3:48 PM ET / 20:48 UTC.

roboclaw-bot and others added 3 commits November 4, 2026 12:32
Preserve the approved copy pattern and behavior while correcting the referenced action or computer.

Co-authored-by: vyctorbrzezowski <[email protected]>
@vyctorbrzezowski
vyctorbrzezowski merged commit dde5ab3 into main Nov 4, 2026
30 of 32 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/copy-l2-b branch November 4, 2026 14:15
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
improve(ui): clarify connection and sign-in recovery

Co-authored-by: vyctorbrzezowski <[email protected]>
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 docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants