Skip to content

improve(ui): standardize disconnected state copy - #192204

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/copy-l3-b
Nov 4, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/copy-l3-b

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Disconnected pages use a mixture of “Offline,” “Not connected,” and instructions to connect to the Gateway. Some prompts name infrastructure instead of the action that is blocked.

User Impact

People see Disconnected for connection status and Reconnect to… for the action they can resume. No behavior, permissions, routes, or configuration changes.

Why This Change Was Made

Apply the approved Control UI glossary to the remaining disconnected-state strings across the scoped Activity, agent creation, approvals, chat, search, attachment, MCP, memory import, plugin, process, Skill, and transcript surfaces. Keep shared Skill controls action-neutral, keep the existing terminal reconnect prompt, and distinguish reconnecting to view changes from reconnecting to view files.

Representative copy changes:

Surface Before After
Activity Connect to the Gateway to load active sessions. Reconnect to load active sessions.
Create agent Connect to the Gateway to perform this action Reconnect to create an agent.
Composer / approvals / presence Offline / Offline. Disconnected
Questions / shared Stop error Not connected. Try again after reconnecting. Reconnect to try again.
Session discussion Gateway is disconnected. Reconnect to view the discussion.
Changes / files Gateway is disconnected. Reconnect to view changes. / Reconnect to view files.
Automations Offline · last-known automations Disconnected · last-known automations
Attachment You're offline. Reconnect, then open this attachment link again. Reconnect, then open this attachment link again.
MCP app Connect to the Gateway to use plugin apps. Reconnect to use this app.
Plugins Connect to the gateway to change plugins. Reconnect to change plugins.
Skills Not connected to gateway. Disconnected
Meeting transcripts Connect to the Gateway to read meeting transcripts. Reconnect to read meeting transcripts.

Already-landed search, context, error, and file-browser terminology is retained. No foreign locales or translation memory changed. No docs quote the retired scoped instructions. No raw-error interpolations were changed; the shared error-details contract is not needed for this patch.

Evidence

  • Nine touched UI suites passed (172 tests); after the shared-key review fix, the two affected suites passed again on the supported Node runner (47 tests).
  • Three Activity E2E files passed in both development and bundled projects (13 tests per project).
  • pnpm ui:i18n:baseline regenerated no tracked changes; pnpm ui:i18n:verify passed.
  • oxfmt, oxlint (31 files, zero warnings/errors), and git diff --check passed.
  • Fresh read-only copy review found a shared question/Stop error key; kept its reconnect prompt action-neutral and updated the regression assertion.
  • Before/after: mocked Control UI, synthetic empty Activity fixture, light theme, cropped to the Active sessions panel. Baseline copy replayed from origin/main 72e8e42 in the same harness. Both uploaded images were retrieved with identical SHA-256 hashes before publication.

Before

Before: Active sessions prompts connection to the Gateway

After

After: Active sessions prompts reconnecting to load sessions

Gaps: copy-only mocked proof, not a live Gateway/network outage exercise. An initial browser run was interrupted by the tool restart; a broader local Bun rerun exited 143 before assertions. The additional six-suite plugin/Skill/question batch was blocked before tests ran: the Vitest threads worker timed out during startup. These are setup gaps, not assertion failures. Final focused Node and browser reruns provide the results above. Native apps, plugin-owned copy, unrelated errors, and permission wording remain outside this PR. CI and landing are intentionally left to the parent maintainer workflow.

Worked on by

Landing integration retains the newer catalog wording and F1 error behavior while preserving neutral reconnect guidance shared by questions and Stop, and the changes-view instruction. The remaining Meetings assertion failed on the retired text and passed after updating only that expectation; its late-response privacy assertion is preserved. Both affected Meetings and Stop cases passed. Catalog lint, formatting, i18n baseline/verification, and whitespace checks passed; the existing 172-case and browser proof is reused. A two-line allocation covers the wrapped existing assertion, with 115 inherited lines of debt recorded separately. The final merge with current main is clean.

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

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 0f8cb7e3-478d-4324-afbd-588f3ddb4cc1
@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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 clawsweeper:intake:feature 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 standardizes English disconnected-state labels and reconnect instructions across the Control UI.

Example: Activity opens while disconnected with no retained active sessions.

  • Before: Connect to the Gateway to load active sessions.
  • After: Reconnect to load active sessions.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, visually demonstrated copy polish with a confirmed test failure and an unexplained reversal of approved terminology.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): The inspected before/after browser screenshots show the changed Active sessions instruction in the Control UI with synthetic data; this directly demonstrates the copy-only behavior without claiming live outage recovery.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Disconnected surfaces use inconsistent status labels and infrastructure-focused instructions.
Reason: The maintainer-authored direction supports this focused consistency pass; the implementation uses existing catalog owners.

Merge readiness

⛔ Needs changes before merge - 3 items remain

Keep this maintainer-authored copy improvement open; two missed test expectations and an unrelated terminology reversal need correction.

Priority: P3
Reviewed head: f9001ee963f31d0fcd0a1b9dccc4e69ee9bba68d

Before merge

  • Update the remaining tests that expect retired connection copy (P2) - Changing contextOffline leaves chat-context-breakdown.test.tsx:412 expecting 'Connect to the Gateway', which already fails in exact-head checks-ui (3/3). The transcripts.disconnected change also leaves meetings-page.test.ts:593 waiting for that retired phrase, although meetings/view.tsx:641 renders the new string. Update both existing consumer assertions while preserving their empty-state and disconnect-safety checks.
  • Preserve the approved chat wording in the composer (P3) - When tools are unavailable during a disconnect, this change displays 'this session' instead of the existing 'this chat'. The merged, approved composer pass explicitly chose chat terminology: improve(ui): use plain chat wording in the composer + menu #191033. The original text already follows this PR's reconnect rule, so retain it and its existing optional-English test expectation.
  • Explain or restore the original intent of Composer offline instruction - improve(ui): use plain chat wording in the composer + menu #191033: The approved composer copy pass deliberately replaced internal session terminology with chat terminology.

Findings

  • [P2] Update the remaining tests that expect retired connection copy — ui/src/i18n/locales/en-chat-details.ts:19
  • [P3] Preserve the approved chat wording in the composer — ui/src/i18n/locales/en-chat-composer.ts:65

Provenance

Agent review details

How this fits together

Control UI components translate Gateway connection state into labels and blocked-action instructions through existing English catalogs.

flowchart LR
  A[Gateway connection state] --> B[Existing UI owners]
  B --> C[Translation keys]
  D[English catalogs] --> C
  C --> E[Status labels and action hints]
Loading

Technical review

Best possible solution:

Keep the catalog-only change, preserve the approved composer terminology, and update both remaining consumer assertions.

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

The copy differences are directly visible in the supplied screenshots, and exact-head CI independently demonstrates the missed context assertion; no target code was executed during review.

Is this the best way to solve the issue?

Editing the existing catalogs is the smallest complete approach, with no new state, wrappers, or translation owner needed.

Full review comments:

  • [P2] Update the remaining tests that expect retired connection copy — ui/src/i18n/locales/en-chat-details.ts:19
    Changing contextOffline leaves chat-context-breakdown.test.tsx:412 expecting 'Connect to the Gateway', which already fails in exact-head checks-ui (3/3). The transcripts.disconnected change also leaves meetings-page.test.ts:593 waiting for that retired phrase, although meetings/view.tsx:641 renders the new string. Update both existing consumer assertions while preserving their empty-state and disconnect-safety checks.
    Confidence: 1
  • [P3] Preserve the approved chat wording in the composer — ui/src/i18n/locales/en-chat-composer.ts:65
    When tools are unavailable during a disconnect, this change displays 'this session' instead of the existing 'this chat'. The merged, approved composer pass explicitly chose chat terminology: improve(ui): use plain chat wording in the composer + menu #191033. The original text already follows this PR's reconnect rule, so retain it and its existing optional-English test expectation.
    Confidence: 0.99

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

Provenance checked

  • Disconnected labels and action instructions keeps the original intent (99415ce: Active sessions were added to reconstruct current work on entry and reconnect; subsequent catalog extractions retained existing behavior.)
  • Shared question and Stop instruction keeps the original intent (755eea5: Localization supplied shared disconnected guidance; the replacement remains action-neutral for both question submission and Stop.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test ui/src/pages/chat/components/chat-context-breakdown.test.tsx ui/src/pages/meetings/meetings-page.test.ts ui/src/i18n/optional-english-loading.test.ts
  • pnpm ui:i18n:verify
  • git diff --check

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 3da32db adds ui/src/i18n/locales/en-agent-creation.ts:8 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3da32db83c71; files: ui/src/i18n/locales/en-agent-creation.ts)
  • Josh Avant: Raw commit 4fa2da5 adds ui/src/i18n/locales/en-chat-composer.ts:55 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 4fa2da58c127; files: ui/src/i18n/locales/en-chat-composer.ts)
  • Peter Steinberger: Raw commit 6dc8ca5 adds ui/src/i18n/locales/en-chat-details.ts:30 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 6dc8ca50b3f8; files: ui/src/i18n/locales/en-chat-details.ts)

PR surface

Source -1, Tests -2. Total -3 across 31 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 19 29 30 -1
Tests 12 15 17 -2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 31 44 47 -3

Labels

Label changes:

  • add P3: This is low-risk wording polish; the identified repairs concern test expectations and consistency with approved terminology.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is low-risk wording polish; the identified repairs concern test expectations and consistency with approved terminology.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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, 2:45 PM ET / 19:45 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 232acf4 into main Nov 4, 2026
23 of 25 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/copy-l3-b branch November 4, 2026 14:16
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
improve(ui): standardize disconnected state copy

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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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