Skip to content

improve(ui): clarify session devices and stop actions - #192085

Merged
vyctorbrzezowski merged 8 commits into
mainfrom
openclaw/copy-d3
Nov 4, 2026
Merged

vyctorbrzezowski merged 8 commits into
mainfrom
openclaw/copy-d3

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Session placement and stop controls use “worker”, “runner”, and “turn” where people need to know which device is involved and what stopping it preserves.

User Impact

  • Session setup, recovery, and runtime-update notices use device and reply terminology.
  • Active cloud placements say Stop cloud device…. Paired devices and unknown placement targets no longer inherit cloud-only stop language.
  • The cloud dialog explains that the device is released while the conversation and accepted changes stay. The paired-device dialog says that other sessions keep running.
  • Desktop, browser, terminal, pairing, portal, and process errors identify the failed action and a next step. Uncertain terminal delivery still tells you to check before retrying.

Why This Change Was Made

This is the bounded D3 pass of the approved Control UI glossary. Stop copy uses the existing placement owner: active placement without a paired-device runner identifies a cloud device; nonactive or unknown placements stay neutral. This does not change stop/reclaim, synchronization, retry, or permission behavior.

Before After
Choose worker… Choose device…
Runner failed Couldn’t continue this session
Device offline Device disconnected
Stop cloud worker… Stop cloud device…
Stop worker? Stop this cloud device? / Stop this session on the device?
device-service · device-profile Cloud device · device-profile
Wait for the active turn to finish… Wait for the current reply to finish…
Installing worker runtime Preparing this device…
Could not load desktops Couldn’t load desktops. Try again.
Terminal delivery could not be confirmed… Couldn’t confirm command delivery. Reconnect to check the terminal before trying again.

The paired stop description is a complete interpolated sentence, rather than concatenated English around the device name. Menus consume the stop owner’s recorded copy decision. Confirmation copy has one catalog owner. Documentation quoting changed controls is updated. No foreign locales, translation memory, protocol keys, native apps, or plugin-owned copy were changed.

Evidence

  • 408 original touched unit tests passed across 17 files. CI exposed additional direct consumers; their repaired assertions passed 157 tests across eight more files. The final stop-owner simplification also passed 82 focused tests.
  • 51 original browser scenarios passed, including 18 dependent boot-module boundary scenarios. The final owner simplification passed six focused menu/device-stop scenarios; the last assertion repair passed three browser screenshot/download/upload scenarios.
  • The new cloud-vs-paired-vs-unknown stop regression fails on the pinned base and passes with the fix.
  • pnpm ui:i18n:baseline and pnpm ui:i18n:verify passed; raw-copy baseline remained unchanged. A literal audit found no remaining stale changed-copy expectations; retained matches are internal worker-cancellation and synthetic upload-error data, not UI copy.
  • pnpm tsgo:ui, all pnpm tsgo:test:ui shards, touched-file oxfmt, line-cap growth ratchet, and git diff --check passed.
  • Touched-file oxlint passed except the existing Sessions test file’s max-lines violation: 1,068 counted lines on both base and head. The initial CI fixture literal-widening error is fixed and all UI test-type shards pass.
  • Final local pnpm ui:check-performance:base 51bee40d3c7f5587a0edd992b6edb6d65bd87896 passed: startup JS gzip 90,557 → 90,570 B (+13 B), startup requests 3 → 3, chat boot gzip 1,279,622 → 1,280,043 B (+421 B), startup CSS 35,997 → 35,997 B, total CSS 320,130 → 320,130 B.
  • Fresh independent reviews found no remaining code blockers after the initial target-neutral restart warning and paired stop-title fixes. CI-driven simplification removed duplicate copy and repeated placement classification.

Visual proof

Synthetic data, light theme; inspected crops from the real Control UI. Full context.

Before:

Before: Stop worker dialog

After:

After: Stop this cloud device dialog

Scope and remaining work

The broader device/settings sweep, including aggregate per-device removal errors, is deferred to keep this pass bounded. Runs on device remains the generic badge where the placement schema has no device display name; the named device is shown separately in its details.

The F1 shared error disclosure contract is not on the pinned base. Raw details remain in newSession.placementStartFailed, chat.cloudWorkerFailed, browser.errors.requestFailed, browser.errors.downloadFailed, and portalsPage.loadFailed. Existing unsynced-workspace and uncertain-delivery warnings remain.

Historical CI startup/chat budget failures remain recorded. No budget baseline was raised; the authorized budget-only exception applies.

Worked on by

Landing integration retains F2 question/body confirmations, S2 lifecycle guidance, and D2 connection copy while preserving D3 cloud/paired/unknown stop selection. The 21 affected stop/consumer cases, two-file lint, and i18n verification passed. The allocation is 41 lines, matching actual growth; only the inherited 110-line debt remains. Broader prior proof was reused.

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

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 2ea9f770-67ae-4f0a-bbb2-e206cebe30b7
@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 gateway Gateway runtime size: M labels Nov 3, 2026
@roboclaw-bot

roboclaw-bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator Author

Visual proof

Same synthetic session, light theme; the captures are cropped to the actual stop dialog.

Before (origin/main 51bee40d3c7f5587a0edd992b6edb6d65bd87896)

Before: Stop worker dialog

After

After: Stop this cloud device dialog explains what stays

The paired-device flow is covered by the device-stop browser test: only this session stops; other sessions on the device keep running.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 3, 2026 16:38
@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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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 clarifies device placement, stop confirmations, and recovery messages throughout the Control UI.

Example: Open the stop confirmation for an active cloud session.

  • Before: The dialog asks “Stop worker?” and says to send a new message to continue.
  • After: The dialog asks “Stop this cloud device?” and explains that the conversation and accepted changes stay.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The visible copy change is demonstrated, but several dependent suites fail because the catalog changes were not carried through to their consumers.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): The inspected synthetic before/after screenshots exercise the Control UI cloud-stop dialog and visibly show the changed title, preservation message, and Stop button; the supplied browser scenarios support paired-device and recovery coverage without claiming physical-device teardown proof.
Patch quality 🦪 silver shellfish (2/6) 4 actionable review findings remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Session controls expose worker terminology and leave users uncertain about which device stops and what remains.
Reason: Maintainer authorship supplies direction for this bounded glossary pass, and clearer destructive-action consequences provide useful user value.

Merge readiness

⛔ Needs changes before merge - 4 items remain

Keep this maintainer-authored PR open: the copy improvements are useful, but the consumer-test cutover is incomplete and the updated guide still names obsolete controls.

Priority: P3
Reviewed head: aae43784a492d95697de750617468d0eb423651d

Before merge

  • Update the browser consumers of the revised error messages (P2) - These catalog changes leave browser-panel.test.ts, browser-panel-download.test.ts, browser-panel-controller-input.test.ts, browser-panel-controller.test.ts, and i18n/browser-loading.test.ts asserting the former English strings. Hosted UI jobs already fail on paste, HTTP/network download, tab-focus, connection, and inspection cases for exactly this reason. browser-screenshot-body-cancel.e2e.test.ts also waits for the old request-error text. Update these consumers together while retaining their diagnostic, recovery, and ordering assertions.
  • Update the startup recovery assertion for the new summary (P2) - When recovery storage becomes unavailable after session creation, draft-submission-flow.test.ts:210-215 still expects “The session was created, but startup needs attention”. This key now produces “Couldn’t start this session. Retry setup.”, and hosted CI confirms the resulting failure. Update that expectation while keeping the preserved-message and no-unintended-start assertions.
  • Update the restart consumer before changing its warning (P2) - All three cases in chat-pane-placement-restart.test.ts still require “Changes that the previous worker did not upload may be lost.” at line 77. The new warning makes them fail before they reach the restart request and reconciliation checks, as the hosted annotations show. Update the expected warning and retain the lifecycle assertions.
  • Make the documented placement controls match the revised UI (P3) - This updated paragraph still tells readers to find “Stop device worker…” and “Stop worker…”, but this PR renders “Stop session on device…” for those cases. The preceding paragraph likewise still names “Runs on Cloud” after the chip becomes “Cloud device”. The lifecycle guide also promises the cloud-specific action for nonactive placements although the new shared classifier deliberately uses neutral copy there. Update these quoted controls to match each actual state.

Findings

  • [P2] Update the browser consumers of the revised error messages — ui/src/i18n/locales/en-browser.ts:46-49
  • [P2] Update the startup recovery assertion for the new summary — ui/src/i18n/locales/en-new-session-runtime.ts:11
  • [P2] Update the restart consumer before changing its warning — ui/src/i18n/locales/en-session-placement.ts:46-47

Tests

  • Low-value test ui/src/pages/chat/chat-pane-placement-stop.test.ts: The added copyKey-only test checks internal classification fields; replace it with a table through a rendered session menu so it also catches missing catalog registration or ignored labels.
Agent review details

How this fits together

Control UI projects Gateway placement facts into session menus and confirmations, then sends confirmed stops through the existing sessions.reclaim owner.

flowchart LR
  A[Gateway placement facts] --> B[Placement presentation]
  B --> C[English catalogs]
  C --> D[Session menus and dialogs]
  D --> E[Existing stop admission]
  E --> F[Sessions reclaim]
Loading

Technical review

Best possible solution:

Keep classification and complete sentences in the existing placement and catalog owners, and complete the dependent test and documentation updates.

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

Current main still uses the old labels, the supplied screenshots show the cloud-dialog change, and hosted CI directly reproduces the stale consumer assertions; no target code was executed locally.

Is this the best way to solve the issue?

The existing placement owner and English catalogs are the right boundaries, and the diff adds no competing lifecycle or state owner.

Full review comments:

  • [P2] Update the browser consumers of the revised error messages — ui/src/i18n/locales/en-browser.ts:46-49
    These catalog changes leave browser-panel.test.ts, browser-panel-download.test.ts, browser-panel-controller-input.test.ts, browser-panel-controller.test.ts, and i18n/browser-loading.test.ts asserting the former English strings. Hosted UI jobs already fail on paste, HTTP/network download, tab-focus, connection, and inspection cases for exactly this reason. browser-screenshot-body-cancel.e2e.test.ts also waits for the old request-error text. Update these consumers together while retaining their diagnostic, recovery, and ordering assertions.
    Confidence: 1
  • [P2] Update the startup recovery assertion for the new summary — ui/src/i18n/locales/en-new-session-runtime.ts:11
    When recovery storage becomes unavailable after session creation, draft-submission-flow.test.ts:210-215 still expects “The session was created, but startup needs attention”. This key now produces “Couldn’t start this session. Retry setup.”, and hosted CI confirms the resulting failure. Update that expectation while keeping the preserved-message and no-unintended-start assertions.
    Confidence: 1
  • [P2] Update the restart consumer before changing its warning — ui/src/i18n/locales/en-session-placement.ts:46-47
    All three cases in chat-pane-placement-restart.test.ts still require “Changes that the previous worker did not upload may be lost.” at line 77. The new warning makes them fail before they reach the restart request and reconciliation checks, as the hosted annotations show. Update the expected warning and retain the lifecycle assertions.
    Confidence: 1
  • [P3] Make the documented placement controls match the revised UI — docs/web/control-ui/sessions-and-sidebar.md:690
    This updated paragraph still tells readers to find “Stop device worker…” and “Stop worker…”, but this PR renders “Stop session on device…” for those cases. The preceding paragraph likewise still names “Runs on Cloud” after the chip becomes “Cloud device”. The lifecycle guide also promises the cloud-specific action for nonactive placements although the new shared classifier deliberately uses neutral copy there. Update these quoted controls to match each actual state.
    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 45c571ed441b.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/components/browser/browser-panel.test.ts src/components/browser/browser-panel-download.test.ts src/components/browser/browser-panel-controller-input.test.ts src/components/browser/browser-panel-controller.test.ts src/i18n/browser-loading.test.ts src/pages/new-session/draft-submission-flow.test.ts src/pages/chat/chat-pane-placement-restart.test.ts src/pages/chat/chat-pane-placement-stop.test.ts
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/browser-screenshot-body-cancel.e2e.test.ts
  • pnpm ui:i18n:verify
  • pnpm tsgo:ui
  • git diff --check

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit a2a0e3e adds ui/src/pages/chat/chat-pane-placement.runtime.ts:55 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a2a0e3e98ba0; files: ui/src/pages/chat/chat-pane-placement.runtime.ts)
  • Peter Steinberger: Raw commit bbbd705 adds ui/src/pages/chat/chat-pane-placement.runtime.ts:153 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: bbbd70542b44; files: ui/src/pages/chat/chat-pane-placement.runtime.ts)

PR surface

Source +40, Tests +42, Docs 0, Other +2. Total +84 across 60 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 24 135 95 +40
Tests 27 134 92 +42
Docs 8 13 13 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 60 284 200 +84

Labels

Label changes:

  • add P3: This improves UI terminology and recovery guidance without changing the underlying stop lifecycle.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit 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 improves UI terminology and recovery guidance without changing the underlying stop lifecycle.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🐚 platinum hermit and patch quality is 🦪 silver shellfish.
  • 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, 11:57 AM ET / 16:57 UTC.

roboclaw-bot and others added 4 commits November 3, 2026 17:13
Fix the fixture literal type caught by CI and deduplicate the stop copy and its placement classification.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 9391e1a4-2f68-4864-a5c9-5f287f48c5f1
Cover all direct consumers exposed by the sharded UI checks; retain internal worker cancellation reasons and synthetic upload errors.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: bd1be05d-9458-4af9-af90-be7606cff8c3
@vyctorbrzezowski
vyctorbrzezowski merged commit 6afa9c6 into main Nov 4, 2026
35 of 36 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/copy-d3 branch November 4, 2026 13:35
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 gateway Gateway runtime 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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M 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