Repository navigation
improve(ui): stack toasts in a center lane and an arrivals lane - #192014
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR replaces single-toast presentation with expandable center and arrivals stacks. Example: Two uploads fail, then the operator archives a session.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 8 items remain Keep this PR open: the maintainer-approved design has clear value, but recovery, deduplication, layout, and incomplete consumer migration need repair before merge. Priority: P2 Before merge
Findings
Provenance
Agent review detailsHow this fits togetherControl UI callers submit messages and action callbacks to the shared toast owner, which manages lifetimes and publishes entries to the lazy Solid renderer and eager recovery fallback. flowchart LR
A[UI action feedback] --> C[Shared toast owner]
B[Background session completions] --> C
C --> D[Center and arrivals lanes]
D --> E[Lazy Solid toast cards]
D --> F[Eager recovery fallback]
E --> G[Dismissal and caller actions]
Technical reviewBest possible solution: Keep one toast owner and renderer, preserve distinct actions and usable recovery, and complete the consumer and stylesheet cutover. Do we have a high-confidence way to reproduce the issue? Current-main source confirms replacement and FIFO behavior, supplied screenshots demonstrate the presentation change, and exact-head CI reproduces stale consumer failures; no target code was executed during this review. Is this the best way to solve the issue? Extending the existing owner is appropriate, but the smallest complete implementation must retain action identity, recovery visibility, responsive containment, and all existing consumers. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 51bee40d3c7f. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +354, Tests +55. Total +409 across 15 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 3, 2026, 10:46 AM ET / 15:46 UTC. |
Co-authored-by: vyctorbrzezowski <[email protected]>
…ked 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]>
# Conflicts: # ui/src/lib/toast-host.tsx # ui/src/lib/toast-view.tsx # ui/src/lib/toast.browser.test.ts # ui/src/lib/toast.ts # ui/src/styles/components.css
…claw#192014) * 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 * 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]> --------- Co-authored-by: roboclaw-bot <[email protected]>
* 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)




What Problem This Solves
The Control UI showed one toast at a time: a new toast replaced the visible one, so a
Copied!erased a session failure or an Undo. Everything appeared in the top-right corner, whether it answered the operator's own action or arrived from elsewhere.User Impact
corner-shapeis unsupported, fixed 360 px wide.fifois gone (everything stacks),placementis nowtop-center | top-right, and Model Providers feedback moves from the bottom corner to the center lane. The background session notice is the first top-right caller.Why This Change Was Made
Second of four stacked PRs for the approved toast design.
Evidence
Mock Control UI, Absolutely light, through real flows: two failed uploads and an archive for the center; three background sessions finishing for the right.
Before: each toast replaced the previous one:
After: the center stack closed, then open on hover:
Center and right lanes together, the right lane closed with a long title, then open:
390, closed and opened by a tap:
Checks run locally: oxfmt, oxlint, stylelint,
pnpm tsgo:ui,pnpm check:control-ui-controllers, the toast unit and browser tests (rewritten for the stack), and the unit tests that read the old host properties (image lightbox, model providers, create agent) or touched callers (archive, palette starts and drafts, background submission). e2e was not run. Accepted edge case: moving the host into or out of a modal replays the short entry offset.Stacked on #192013 (base
brzezowski/toast-component). Land #192013 first, then this.