Skip to content

fix: make the error card above the chat composer match the composer - #208916

Merged
vyctorbrzezowski merged 1 commit into
mainfrom
fix/chat-error-banner-composer-style
Nov 30, 2026
Merged

vyctorbrzezowski merged 1 commit into
mainfrom
fix/chat-error-banner-composer-style

Conversation

@vyctorbrzezowski

Copy link
Copy Markdown
Member

What Problem This Solves

When a Stop request fails after the run ends (for example "Cancellation was requested, but cleanup is still pending"), Control UI shows the error as a floating toast right above the chat composer. That toast keeps its pill corner (28px), its lifted shadow and its own surface. Inside the composer's scrolling footer the shadow is cut off at the bottom edge, so the card looks broken, and its Refresh and Report a bug actions stack in a column next to a separate dismiss button.

User Impact

The error above the composer now reads as part of the composer stack: same corner radius and corner shape, same surface, a hairline edge with the danger tone, and no shadow to clip. Report a bug, Refresh and dismiss sit on one row centered on the message. On a narrow composer the two actions move under the message and the dismiss stays on the title line. Light and dark themes both follow the composer. The error text is unchanged.

Why This Change Was Made

Composer neighbors already share one quiet card frame (chat-composer-neighbor-card), and the reply error card uses it. The Stop error and the session start failure now render the same shared toast content inside that frame, instead of the floating toast surface that is meant for the top lanes. The error in the top bar keeps its toast style.

  • Refresh in both composer error cards uses the surface wash instead of a darker well, so it does not look disabled in dark mode.
  • Report a bug becomes a quiet secondary link before the recovery action.
  • The dismiss button matches the reply error card (same box, glyph size and hover).
  • When the dismiss is absent, the copy keeps the full width.

Evidence

  • New browser test chat-composer-error-card.browser.test.tsx (real stylesheets, 768px and 390px composers) checks that the Stop error card uses the composer's radius, has no shadow, fills the composer width without overflowing the scrolling context, and lays out its actions as described. It fails on main and passes with this change.
  • chat-view-notices.test.tsx, chat-view-notices.browser.test.tsx, chat-composer-layout.browser.test.tsx, chat-view.contention.test.ts, chat-view.plugin-questions.test.ts and feedback-links.e2e.test.ts pass. pnpm tsgo:ui, pnpm lint:ui:styles, oxfmt and oxlint are clean on the touched files.
  • Screenshots come from the bundled Control UI in Chromium with the mock Gateway. The flow is the real one: a run is stopped, the run ends, and the Gateway rejects chat.abort with the synthetic message above. Before = main at 9754189; after = this branch. Desktop is 1200×800 and mobile is an emulated 390×844 viewport, both at 2x.

Annotated comparison (light, desktop)

Before

Before: pill corner and the toast shadow cut at the footer edge

After

After: error card aligned with the composer, 25px corner, hairline edge, no shadow

Clean comparison

Light, desktop

Before, light desktop
After, light desktop

Dark, desktop

Before, dark desktop
After, dark desktop

Mobile (390px)

Before After
Before, light mobile After, light mobile
Before, dark mobile After, dark mobile

Sibling reply error card after the change (same composer frame; Refresh now uses the surface wash)

After: reply error card, dark desktop

Light mobile
After: reply error card, light mobile

🦞 Made with OpenClaw

@clawsweeper

clawsweeper Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
Pull request received.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. labels Nov 30, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 30, 2026 06:44
@vyctorbrzezowski
vyctorbrzezowski merged commit ba10ce4 into main Nov 30, 2026
76 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the fix/chat-error-banner-composer-style branch November 30, 2026 06:45
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 impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant