Skip to content

improve(ui): show arrivals top right with a contextual session status - #192016

Merged
roboclaw-bot merged 19 commits into
mainfrom
brzezowski/toast-arrivals
Nov 4, 2026
Merged

roboclaw-bot merged 19 commits into
mainfrom
brzezowski/toast-arrivals

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Arrivals the operator did not trigger still mixed with their own actions, and the background session notice repeated a status word on every success ("Release readiness check: Done") while a stopped run read "Killed".

User Impact

  • Background session notice: a finished run shows only the session name and Open session. Any other outcome adds one muted word under the name: Failed, Timed out, or Stopped (in place of Killed).
  • The other arrivals move to the top-right lane: a delivery failure in an off-screen session (error), a palette session that did not start (error, with Try again as primary), offline changes discarded on reconnect, a deleted session whose browser draft could not be cleared (warning), and a rejected preference write (error).

Why This Change Was Made

Last of four stacked PRs for the approved toast design: the right lane's callers.

Evidence

Mock Control UI, Absolutely light, three background sessions finishing for real through agent.wait.

Before and After, the right lane open:

Before: Done and Failed appended to the title After: no label on success, Failed as a muted word

After, Timed out and Stopped:

After: Timed out and Stopped

After, closed with the long title, and 390:

After: right lane closed After: phone, open

Checks run locally: oxfmt, oxlint, pnpm tsgo:ui, and the unit tests of the touched callers (deferred intents, app shell Gateway, palette starts, background submission, and the tests that reference the moved callers). The background e2e assertion for "Done" now waits for Open session; e2e was not run.

Stacked on #192015 (base brzezowski/toast-center-callers). Land #192013, #192014, #192015, then this.

@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:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro 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:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro 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 moves asynchronous notices to the top-right lane and simplifies background-session outcome labels.

Example: The background session Release readiness check finishes successfully.

  • Before: The notice reads “Release readiness check: Done”.
  • After: The notice shows “Release readiness check” with an Open session link.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, focused presentation work with direct visual evidence and one confirmed consumer-test regression.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots from the browser Control UI with a mocked Gateway show the production completion-notice presentation: success has no status suffix, other outcomes have muted descriptions, and the arrivals stack remains readable with a long title.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Asynchronous arrivals mix with immediate action feedback, and completion notices repeat unnecessary success wording or describe stopped runs as killed.
Reason: The maintainer-authored direction is already an owner decision, and the focused presentation change makes asynchronous outcomes easier to distinguish.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this maintainer-authored UI improvement is useful, but its placement change leaves two consumer tests failing.

Priority: P3
Reviewed head: 854175afa44fa34ad769d4309510a25001abf065

Before merge

  • Update the offline lifecycle consumers for the new toast placement (P2) - Adding placement here breaks both archive/delete cases in ui/src/lib/sessions/session-offline-lifecycle.test.ts:436, which still require exactly { message: "Offline changes discarded: 1" }. Reviewed-head checks-ui (2/3) records both failures, while this PR updates only the deferred-intent suite. Update the lifecycle expectation to include the intended placement while retaining the exactly-once, rollback, and no-write assertions.

Findings

  • [P2] Update the offline lifecycle consumers for the new toast placement — ui/src/app/gateway-store.deferred-intents.ts:69

Tests

  • Missing end-to-end proof: The edited background-session browser E2E was not run locally, and no base/head regression run is supplied for the changed assertions.
Agent review details

How this fits together

Control UI session, delivery, preference, and cleanup owners pass outcomes to the shared toast owner, which renders their placement, severity, description, and actions.

flowchart LR
  A[Gateway outcomes] --> B[Session and preference owners]
  C[Browser cleanup outcomes] --> B
  B --> D[Shared toast owner]
  D --> E[Top-right arrivals lane]
  E --> F[Open session or retry action]
Loading

Technical review

Best possible solution:

Keep the existing toast owners and update the offline lifecycle assertions to accept the intended arrival placement while preserving their rollback checks.

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

Current-main source confirms the old completion labels, and reviewed-head CI independently records the two newly mismatched consumer assertions; no target code was executed during this review.

Is this the best way to solve the issue?

The caller-only implementation is appropriately small and reuses the stack’s toast contract, but it must update the remaining affected consumer expectations.

Full review comments:

  • [P2] Update the offline lifecycle consumers for the new toast placement — ui/src/app/gateway-store.deferred-intents.ts:69
    Adding placement here breaks both archive/delete cases in ui/src/lib/sessions/session-offline-lifecycle.test.ts:436, which still require exactly { message: "Offline changes discarded: 1" }. Reviewed-head checks-ui (2/3) records both failures, while this PR updates only the deferred-intent suite. Update the lifecycle expectation to include the intended placement while retaining the exactly-once, rollback, and no-write assertions.
    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 917b60907026.

Provenance checked

  • Background-session completion labels changes intended behavior with a stated reason (0f0ae34: Provide an actionable notice after the exact background turn finishes; subsequent refactoring retained its outcome labels.)
  • Completion navigation keeps the original intent (91e8cd0: Support native alternative-click navigation while retaining captured Gateway-owner checks.)
  • Deferred-intent discard notices keeps the original intent (e75403f: Report discarded offline changes when their admitted identity retires.)
  • Deleted-session draft cleanup keeps the original intent (e66dc9a: Keep asynchronous cleanup scoped to the original Gateway and visibly report cleanup failures.)
  • Preference rejection and off-screen delivery failures keeps the original intent (feat: organize personal navigation in a compact sidebar rail #168325: Retain rejected personal navigation choices locally and expose failures; delivery failures retain their existing named-session reporting path.)
  • Palette-start failure recovery keeps the original intent (0919716: Allow concurrent palette starts while retaining failed prompts for a scoped Try again action.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/lib/sessions/session-offline-lifecycle.test.ts src/app/gateway-store.deferred-intents.test.ts
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit e75403f adds ui/src/app/gateway-store.deferred-intents.ts:68 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e75403f38e69; files: ui/src/app/gateway-store.deferred-intents.ts)

PR surface

Source +18, Tests +8. Total +26 across 9 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 7 25 7 +18
Tests 2 10 2 +8
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 35 9 +26

Labels

Label changes:

  • add P3: The user-facing change improves notification organization and wording without changing session execution or stored data.
  • 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: The user-facing change improves notification organization and wording without changing session execution or stored data.
  • 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, 10:45 AM ET / 15:45 UTC.

roboclaw-bot and others added 3 commits November 3, 2026 20:34
…er e2e

The queued skill-selection notice is a success message, not an error. E2E now reads open-file failures as alerts and two-sentence toast copy from title plus description.

Co-authored-by: vyctorbrzezowski <[email protected]>
Base automatically changed from brzezowski/toast-center-callers to main November 4, 2026 00:13
# Conflicts:
#	ui/src/pages/new-session/palette-session-starts.ts
@roboclaw-bot
roboclaw-bot merged commit 847080e into main Nov 4, 2026
19 of 20 checks passed
@roboclaw-bot
roboclaw-bot deleted the brzezowski/toast-arrivals branch November 4, 2026 00:17
roboclaw-bot added a commit that referenced this pull request Nov 4, 2026
roboclaw-bot added a commit that referenced this pull request Nov 4, 2026
…nes (#192431)

Follow-up to #192013-#192016: unit tests still expected severity-less error toasts, single-line copy, and unwrapped toast markup.

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 4, 2026
…openclaw#192016)

* improve(ui): rebuild the toast on one component with variants and a hover dismiss

* improve(ui): stack toasts in a center lane and an arrivals lane

* improve(ui): mark error toasts and split two-sentence copy into title and description

* improve(ui): send arrivals to the top-right lane with a contextual session status

* fix(ui): keep phone toasts below the top refresh notices

* test(ui): read stacked toasts in model provider tests

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

* fix(ui): keep overlay toasts at the top inset and align e2e with stacked lanes

Overlay toast hosts no longer inherit the shell chrome offset on phones; e2e checks now center on the content column, read the fixed lane, and blur the toast before Escape.

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

* fix(ui): keep the skill selection notice informational and align caller e2e

The queued skill-selection notice is a success message, not an error. E2E now reads open-file failures as alerts and two-sentence toast copy from title plus description.

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

---------

Co-authored-by: roboclaw-bot <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 4, 2026
…nes (openclaw#192431)

Follow-up to openclaw#192013-openclaw#192016: unit tests still expected severity-less error toasts, single-line copy, and unwrapped toast markup.

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
vincentkoc added a commit that referenced this pull request Nov 4, 2026
* commit 'b4ebd3673fea4932296b92bbc07b7abc4bdc792d':
  fix(ci): allow serial SDK API reports to finish (#192196)
  fix(ci): run PostgreSQL checks when its shard planner changes (#191963)
  fix(ci): model native Linux updater asset entry
  improve(test): speed up config and device binding browser tests (#192404)
  improve(ui): show arrivals top right with a contextual session status (#192016)
  improve(ui): mark error toasts and split two-sentence copy (#192015)
  fix(sandbox): give dependency builders a writable home (#192390)
  fix(worktrees): keep archive manifest checks off the main thread (#192358)
  fix(cron): preserve admitted runs and pacing across unrelated MCP reloads (#192399)
  improve(ui): stack toasts in a center lane and an arrivals lane (#192014)
  fix: reclaim abandoned read-only database snapshots (#192368)
  improve(ui): rebuild the toast on one component with variants and a hover dismiss (#192013)
  docs: consolidate team server and team setup into one Multiplayer page
  fix(ci): reconcile remaining unallocated test lines
  feat: run admitted MCP tools on the worker node that hosts them (#191387)
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: XS 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