Repository navigation
fix: make the error card above the chat composer match the composer - #208916
Merged
Merged
Conversation
Contributor
|
🦞👀 |
vyctorbrzezowski
marked this pull request as ready for review
November 30, 2026 06:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.Evidence
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 onmainand 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.tsandfeedback-links.e2e.test.tspass.pnpm tsgo:ui,pnpm lint:ui:styles, oxfmt and oxlint are clean on the touched files.chat.abortwith the synthetic message above. Before =mainat 9754189; after = this branch. Desktop is 1200×800 and mobile is an emulated 390×844 viewport, both at 2x.Annotated comparison (light, desktop)
Before
After
Clean comparison
Light, desktop
Dark, desktop
Mobile (390px)
Sibling reply error card after the change (same composer frame; Refresh now uses the surface wash)
🦞 Made with OpenClaw