Repository navigation
fix(ui): keep composer errors framed after toast styles load - #208953
Conversation
|
🦞👀 ClawSweeper review completeClawSweeper finished reviewing this revision. |
|
Codex review: passed. What this changesThis PR preserves composer error-card framing and action alignment when generic toast styles load later. Example: A Stop error appears in a 768px composer before the generic toast stylesheet loads.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a current CSS cascade defect while preserving the intended composer appearance; no actionable correctness or security findings were identified. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI renders Stop and session-start errors through the shared toast renderer; chat-specific CSS adapts those notices to the composer footer. flowchart TD
A[Stop or session-start error] --> B[Composer notice renderer]
B --> C[Shared toast content]
C --> D[Composer error styles]
E[Generic toast stylesheet] --> D
D --> F[Framed recovery card]
Technical reviewBest possible solution: Keep the repair in the existing composer-error selector and retain the late-stylesheet regression coverage. Do we have a high-confidence way to reproduce the issue? The competing CSS declarations establish the failure path, and the supplied desktop captures show it; this read-only review did not independently execute the reproduction. Is this the best way to solve the issue? The patch directly resolves specificity ties at the existing presentation owner without changing global toasts, adding a renderer, or weakening responsive coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cd0a36cacb3d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +5, Tests +10. Total +15 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 readiness starts with the lower of the proof and patch scores. It is capped at 3/6 if the fix is partial, the change offers little benefit, a product decision is still open, or the PR reverses an earlier decision without saying why. ✨ 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 30, 2026, 2:33 AM ET / 07:33 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Related: #208916
What Problem This Solves
A chat Stop error can lose its border and spacing, and its dismiss control sits above the recovery actions when the generic toast stylesheet loads after chat styles. This also fails the existing composer error-card checks in scheduled CI (run 46368886561).
User Impact
The error keeps the composer card appearance and reachable recovery controls at desktop and phone widths. Existing responsive behavior and every selected test remain intact.
Why This Change Was Made
The existing composer-error selector now owns the six frame properties that otherwise tie with the generic toast rule. The same two browser cases load the real toast stylesheet late, compare the frame, and retain all border, width, overflow and control-alignment assertions. No new tests, rendering path or global toast changes.
Evidence
2c818da4711cb4f5b76c792b0a68ac7da1a690ca; reviewed head:c973a5f5bbd79430127cc7d24fce6fba49379adf.ci:fullon this PR. No standalone benchmark or manual CI dispatch. No runtime or billing savings claim for this correctness repair.Desktop: annotated comparison
Before:
After:
Desktop: clean comparison
Before:
After:
Phone: annotated comparison
Phone: clean comparison
Captures use the actual composer-notice renderer in Chromium, with the same synthetic Stop error, dark theme and late stylesheet insertion. Before uses the frozen base CSS; after uses the reviewed CSS. They do not simulate a live cancellation or establish backend behavior.
Inherited desktop E2E failure. The failed UI shard passed 501 of 502 tests. Its Quick Chat appearance case expects a send payload without
expectedReply. The Linux Quick Chat change sendsexpectedReply: nullfor a fresh draft. A focused Chrome run replayed the same test case and native bridge fixture on unchanged main. It failed at the identical payload comparison. Adding onlyexpectedReply: nullto that assertion made the complete case pass. The composer CSS and browser-test changes in this PR were absent from both runs. The standalone CI repair contains that exact test change.Final CI attribution
CI 46372618756 finished with 29 successful jobs, 26 planned skips, and one failed test job plus its aggregate gate. Both real-Gateway shards passed. The failed bundled shard passed 501 of 502 cases; its sole failure is the existing Quick Chat request expectation omitting
expectedReply: null.The actual checkout was merge
9d20238245a238dfd9b7b1b8a2de06acf3d3f63e; its main parent and tested merge contain identical Quick Chat runtime, test and harness inputs. The merge changes only the composer CSS and its browser regression. The separate expectation repair is #208980, with the unchanged base failure reproduced and all seven corrected appearance cases passing. This PR uses the native inherited-failure landing route; its failed CI is not reported as green.