Skip to content

fix(ui): keep composer errors framed after toast styles load - #208953

Merged
vincentkoc merged 1 commit into
mainfrom
fix-ui-composer-error-border-20261130
Nov 30, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix-ui-composer-error-border-20261130

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

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

  • Frozen base: 2c818da4711cb4f5b76c792b0a68ac7da1a690ca; reviewed head: c973a5f5bbd79430127cc7d24fce6fba49379adf.
  • Regression: both existing cases fail on the base with late toast CSS and pass with the fix. A border-only change still failed desktop alignment; the completed fix preserves the whole existing frame.
  • All 24 focused Chromium cases pass across composer errors, chat notices and global toasts. UI typecheck, scoped lint/stylelint, formatting and whitespace checks pass.
  • Independent source review is clear. Final committed-range ClawSweeper completed with no actionable correctness or security findings; browser execution and screenshots were validated separately.
  • Required shared-chat coverage uses ci:full on this PR. No standalone benchmark or manual CI dispatch. No runtime or billing savings claim for this correctness repair.

Desktop: annotated comparison

Before:

Before: no border and dismiss above recovery actions

After:

After: composer border and aligned recovery controls

Desktop: clean comparison

Before:

Before desktop Stop error

After:

After desktop Stop error

Phone: annotated comparison

Before After
Before phone: missing card border After phone: composer frame retained

Phone: clean comparison

Before After
Before phone Stop error After phone Stop error

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 sends expectedReply: null for 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 only expectedReply: null to 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.

@vincentkoc vincentkoc added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Nov 30, 2026
@clawsweeper

clawsweeper Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Pull request received.

ClawSweeper review complete

ClawSweeper finished reviewing this revision.

View the workflow run.

@vincentkoc vincentkoc self-assigned this Nov 30, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 30, 2026 07:17
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. labels Nov 30, 2026
@vincentkoc
vincentkoc enabled auto-merge (squash) November 30, 2026 07:28
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 30, 2026
@clawsweeper

clawsweeper Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This 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.

  • Before: The card loses its border and spacing, and dismiss sits above Refresh.
  • After: The card retains its composer frame, with dismiss aligned beside the recovery actions.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, apparently correct repair with inspected browser-fixture screenshots and targeted regression coverage; full shipped-entry-point evidence is limited.
Proof confidence 🦐 gold shrimp (3/6) The contributor proof gate is exempt; inspected desktop screenshots exercise the production composer-notice renderer in Chromium with synthetic Stop errors and late CSS, visibly preserving the frame after the fix.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Composer errors can lose their intended border and spacing and misalign recovery controls after generic toast styles load.
Reason: The maintainer-authored repair restores the already-approved composer design with a focused CSS change.

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: c973a5f5bbd79430127cc7d24fce6fba49379adf

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control 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]
Loading

Technical review

Best 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

  • Composer error-card framing keeps the original intent (ba10ce4: Use the composer neighbor frame for Stop and session-start errors, avoiding clipped toast shadows and keeping recovery controls aligned.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned change: The introduced diff adds six frame declarations to the existing compound selector and extends the existing browser cases without removing assertions. (ui/src/styles/chat/layout.css:92, c973a5f5bbd7)
  • Current-main defect: Current main still inherits display, alignment, gap, border, background, and color from single-class rules that compete with .app-toast; the existing compound selector does not protect these properties. (ui/src/styles/chat/layout.css:93, cd0a36cacb3d)
  • Prior design preserved: The merged design in fix: make the error card above the chat composer match the composer #208916 deliberately places Stop and session-start errors inside the composer frame; this PR makes that design survive stylesheet ordering. (ui/src/styles/chat/layout.css:90, ba10ce4b7a0b)
  • Inspected visual evidence: The four prepared desktop images visibly show the restored border and centered dismiss control; the PR identifies these as Chromium captures of the production notice renderer with synthetic data. (c973a5f5bbd7)
  • Regression coverage: Both 768px and 390px cases insert the real components stylesheet after rendering, compare frame properties, and retain border, geometry, overflow, and responsive action assertions; the author reports base failures and fixed-head passes. (ui/src/pages/chat/chat-composer-error-card.browser.test.tsx:49, c973a5f5bbd7)
  • Validation state: Exact-head UI checks, lint, architecture guards, and security checks have passed; UI end-to-end lanes and the aggregate CI gate remain pending. (c973a5f5bbd7)

Likely related people:

  • Vyctor H. Brzezowski: Raw commit ba10ce4 adds ui/src/styles/chat/layout.css:94 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ba10ce4b7a0b; files: ui/src/styles/chat/layout.css)

PR surface

Source +5, Tests +10. Total +15 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 8 3 +5
Tests 1 10 0 +10
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 18 3 +15

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • 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 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.

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 30, 2026, 2:33 AM ET / 07:33 UTC.

@vincentkoc
vincentkoc disabled auto-merge November 30, 2026 07:48
@vincentkoc
vincentkoc merged commit 1c5d039 into main Nov 30, 2026
181 of 185 checks passed
@vincentkoc
vincentkoc deleted the fix-ui-composer-error-border-20261130 branch November 30, 2026 07:51
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

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 ci:full Keep ordinary native-locale CI selection on the next PR run. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant