Skip to content

improve(ui): clarify session errors and sharing controls - #192206

Merged
vyctorbrzezowski merged 7 commits into
mainfrom
openclaw/copy-c9-b
Nov 4, 2026
Merged

vyctorbrzezowski merged 7 commits into
mainfrom
openclaw/copy-c9-b

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Session-side errors and dialogs use inconsistent container names, role names, and failure wording. Some cloud-stop and snapshot-failure confirmations also lack a separate question and consequence.

User Impact

  • Clearer recovery steps for image, camera, tool-output, message-context, progress, and provider-review failures.
  • Session terminology in provider-review and goal notices; admin terminology in access requests.
  • Cloud-stop dialogs state what is released and what stays, identify the selected session, and retain the existing authorization and settlement safeguards.
  • Snapshot-failure deletion keeps its explicit confirmation and raw diagnostic.

Why This Change Was Made

Applies Vyctor Brzezowski’s approved Control UI glossary to the C9 session-side surfaces. English stays in the existing catalogs; no translation-memory, foreign-locale, plugin, native-app, protocol, or model-prompt changes.

Before After
Chat paused as a precaution Session paused as a precaution
Could not load the full output. Try again. Couldn’t load the full output. Try again.
Could not save the group defaults. Couldn’t save the group defaults. Try again.
Administrator access required Admin access required
Runner failed Couldn’t continue the session
Stop cloud worker… / Stop worker Stop cloud device… / Stop
Stop the cloud worker for “{session}”? Stop this cloud device? + preservation/release consequence + selected-session detail
Snapshot failed: {error} / Delete without a snapshot? Delete without a snapshot? + consequence and retained diagnostic

The confirmation changes are presentation-only. Both cloud-stop entry points consume the same catalog copy. Existing active-work, access, stale-request, and deletion safeguards stay in place. Independent local review caught and corrected a misleading hardware-failure label, the second cloud-stop consumer, and a test-fixture dependency after extraction.

Evidence

The following browser and test evidence predates the revised validation instructions.

  • Earlier review inspected light-theme, tightly cropped before/after screenshots of the provider-review notice, captured through the mocked Control UI harness.
  • 283 focused unit/component tests passed across 10 files, including session archive/batch mutations, placement, image attachments, and widgets. The mocked notice capture passed before and after. After extracting the cloud-stop cases into a sibling suite, both cases passed again, including the shared question, consequence, selected-session detail, Stop action, and in-flight roster update.
  • English i18n baseline generation and verification passed; no tracked baseline delta was needed. Oxfmt and git diff --check passed. Oxlint found only the pre-existing sessions-page.test.ts max-lines violation (the base already had 1068 counted lines against the 1000-line limit); the cloud-stop cases were extracted into a coherent sibling suite so the original file shrinks. The new suite passes lint. No suppression or baseline exception was added.

Deliberate limits

F1’s shared error-details contract is not on this base. Raw diagnostics remain in chat.skillLearned.undoError, connection.scopeUpgrade.error, chat.cloudWorkerFailed, and worktrees.confirmForceDeleteDetails; no diagnostics or deletion safeguards were removed. Broader optional-session panels, remaining device-worker action labels, technical tool/status labels, and unrelated startup strings are left for follow-up rather than expanding this copy PR.

Follow-up glossary fix

  • Changed the release confirmation and its quoted test to say “the cloud device is released”; aligned the related documentation’s device wording.
  • Replaced the sharing notice’s “Reasoning” label with “Private agent notes.”
  • Audited the full PR diff for the requested terminology and normalized added Chat screen references, apostrophes, and quoted prose.
  • The final copy review made the failed action explicit in the skill-undo and session-continuation errors while retaining their diagnostic placeholders.
  • Under the revised instructions, only pnpm ui:i18n:verify and the pre-commit hook were run for these final two strings. Verification passed with a three-minute timeout, and the hook passed.

Gaps

  • Cloud-device release and session-sharing flows have not been verified end to end against a real Gateway.
  • No new e2e, browser, screenshot, or full-suite runs were started after the revised instructions. Earlier broader attempts did not complete: the registered mock lane reported no selected test files and a Vite source-map startup error; private-QA artifact and alternate source-served runs stalled. These are setup gaps, not passing product evidence.
  • The earlier focused test results do not validate the final two error-string edits. Further testing and CI are deferred to landing. No CI or landing was attempted.

Worked on by

Landing integration retains the current permission and stop-action owners, adds selected-session details, and preserves the active-cloud versus provisioning confirmation distinction. All 30 focused cloud-stop and message-recovery cases passed; i18n verification passed. The existing 283-case proof is reused. A 45-line allocation covers the actual test growth. Remaining test-line debt and the pre-existing sessions-page file-length lint are outside this PR; the extraction reduces that file.

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

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 66a2fc5e-b631-40fb-9c4b-eedb32580192
@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: macos App: macos app: web-ui App: web-ui gateway Gateway runtime size: M labels Nov 3, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature 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: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 session terminology and error wording and separates confirmation questions from their consequences.

Example: Stop the cloud device running the session “Cloud task”.

  • Before: The dialog asks “Stop the cloud worker for "Cloud task"?” with a “Stop worker” action.
  • After: The dialog asks “Stop this cloud device?”, explains preservation and release, identifies “Session: Cloud task”, and offers “Stop”.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful, narrowly placed presentation changes remain unready because the consumer cutover is incomplete and required visual evidence is absent.
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) 1 actionable review finding remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Session notices use inconsistent names, and destructive confirmations do not consistently separate the question, consequence, and selected target.
Reason: The maintainer-authored direction improves consistency using existing presentation owners without introducing settings, permissions, or runtime policy.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this maintainer-authored PR open: the copy improvements are useful, but incomplete consumer updates introduce reproducible test failures.

Priority: P3
Reviewed head: 0b214c260a812f89efebf4eb54a1369c90d5c6f9

Before merge

  • Update all consumer assertions to the final catalog wording (P2) - The copy cutover leaves deterministic failures in existing consumers. Exact-head CI reports stale expectations in provider-review controller tests, sidebar mutation tests, optional-English and tool-content loading tests, camera capture tests, message-rendering tests, and the device-scope-upgrade E2E scenario. The updated placement-recovery assertion also expects Couldn’t continue the session: ..., while chat.cloudWorkerFailed emits Couldn’t continue. Try again. .... Additionally, native-conversation.e2e.test.ts:555 still clicks Stop worker, although this catalog now renders Stop. Update these affected assertions and selectors together, retaining their existing recovery and authorization checks.

Findings

  • [P2] Update all consumer assertions to the final catalog wording — ui/src/i18n/locales/en-session-organization-shared.ts:41-46

Provenance

  • Earlier wording across remaining catalogs: original intent not found (unknown: Scoped git log searches provided catalog and refactor history, but content searches reached unavailable historical blobs before establishing every original wording decision.)

Tests

  • Missing end-to-end proof: Attach sanitized before/after browser captures of the changed notices and confirmations; the promised screenshots and a completed product-path run are absent.
Agent review details

How this fits together

English catalogs supply Control UI notices and confirmation dialogs; existing session and worktree mutation owners retain responsibility for access checks, RPCs, and settlement.

flowchart LR
  A[English catalogs] --> B[Chat notices]
  A --> C[Session confirmations]
  A --> D[Worktree confirmations]
  C --> E[Existing session mutation owners]
  D --> F[Existing worktree mutation owner]
  E --> G[Gateway RPCs]
  F --> G
Loading

Technical review

Best possible solution:

Keep the existing catalog and mutation owners, complete the copy-dependent consumer updates, and preserve the current authorization and settlement behavior.

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

The requested copy improvement needs no bug reproduction; exact-head CI independently demonstrates the introduced assertion failures.

Is this the best way to solve the issue?

Updating existing catalogs and confirmation fields is the smallest complete approach, but all affected consumer assertions must follow the same final wording.

Full review comments:

  • [P2] Update all consumer assertions to the final catalog wording — ui/src/i18n/locales/en-session-organization-shared.ts:41-46
    The copy cutover leaves deterministic failures in existing consumers. Exact-head CI reports stale expectations in provider-review controller tests, sidebar mutation tests, optional-English and tool-content loading tests, camera capture tests, message-rendering tests, and the device-scope-upgrade E2E scenario. The updated placement-recovery assertion also expects Couldn’t continue the session: ..., while chat.cloudWorkerFailed emits Couldn’t continue. Try again. .... Additionally, native-conversation.e2e.test.ts:555 still clicks Stop worker, although this catalog now renders Stop. Update these affected assertions and selectors together, retaining their existing recovery and authorization checks.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: unit tests only.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui exec vitest run src/pages/chat/chat-provider-review-controller.test.ts src/i18n/tool-content-loading.test.ts src/i18n/optional-english-loading.test.ts src/pages/chat/components/chat-camera-capture.test.ts src/pages/chat/components/chat-message.markdown.test.tsx
  • Run the existing sidebar session-mutation suite and the chat-placement-recovery, device-scope-upgrade, and native-conversation browser scenarios.
  • pnpm ui:i18n:verify
  • git diff --check
  • Inspect exact-head CI and attribute remaining failures before requesting unrelated repairs.

What I checked:

  • Pinned introduction and existing owners: The introduced diff changes catalog copy and confirmation presentation without changing mutation authorization, RPC parameters, or settlement; current main still contains the earlier wording. (ui/src/components/session-organizer-operations.runtime.ts:519, 0b214c260a81)
  • CI confirms incomplete consumer updates: Exact-head annotations show old-wording assertion failures in provider review, sidebar confirmations, lazy English loading, camera capture, message rendering, and device-scope upgrade; placement-recovery assertions also disagree with the newly emitted text. (ui/src/e2e/chat-placement-recovery.e2e.test.ts:39, 0b214c260a81)
  • Discussion and visual evidence: The full PR body promises provider-review screenshots, but the two current comments contain only review status and no attachments; the body records unsuccessful browser and real-Gateway attempts. (0b214c260a81)
  • Feature history and preserved intent: Provider-review history preserves explicit acknowledgment and held queued inputs; session-dialog and placement history identifies contributions by Peter Steinberger and Vyctor Brzezowski, with their existing authority checks retained. (ui/src/i18n/locales/en-chat-provider-review.ts:7, 48f664ca0095)
  • Inspection limits and clean checkout: Scoped history searches reached unavailable historical blobs, installed Solid reference files were absent, and full CI logs redirected to a blocked storage host; available annotations established the reported assertion failures, and final git status remained clean. (0b214c260a81)

PR surface

Source +12, Tests +42, Docs 0. Total +54 across 47 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 18 72 60 +12
Tests 20 110 68 +42
Docs 9 15 15 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 47 197 143 +54

Labels

Label changes:

  • add P3: This is presentation and terminology polish with no demonstrated production workflow regression.
  • 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 presentation and terminology polish with no demonstrated production workflow regression.
  • 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, 2:46 PM ET / 19:46 UTC.

roboclaw-bot and others added 4 commits November 4, 2026 00:02
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 0e75be1f-f8ad-4f4e-a1de-d94dd65d169c
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 23ab6a89-eee9-484c-908c-2637ce9a4c04
@openclaw-barnacle openclaw-barnacle Bot closed this Nov 4, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Nov 4, 2026
@openclaw-barnacle openclaw-barnacle Bot closed this Nov 4, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Nov 4, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit 3101c8d into main Nov 4, 2026
27 of 29 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/copy-c9-b branch November 4, 2026 14:06
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
…2206)

improve(ui): clarify session errors and sharing controls

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: macos App: macos 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. 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