Repository navigation
improve: simplify failed replies above the chat composer - #204433
Draft
roboclaw-bot wants to merge 6 commits into
Draft
roboclaw-bot wants to merge 6 commits into
roboclaw-bot wants to merge 6 commits into
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 01ff6331-40e4-4866-9c3a-4f10708b7213
Contributor
|
🦞👀 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. |
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: 8454a41d-d47f-48cc-aeee-ec09c198f125
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: dd7da86d-7d70-43a5-a4bb-500648dba4a9
This branch has not been deployed
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.
Related: #204337
What Problem This Solves
When a reply fails and its in-thread notice is unavailable, the banner above the composer replaces the actual error with a generic title and subtitle. Reading what happened takes a separate Show details control, and the card takes three rows above the composer.
User Impact
The composer shows the redacted error itself on one line, with no generic copy. A long error is cut off with an ellipsis; select the line, or the chevron beside it, to read all of it in place, and select again to close it. The chevron appears on hover or keyboard focus and stays visible on touch screens. A short error that already fits has no chevron. Refresh reloads history without resending or changing the draft, and sign-in failures still offer Open Models.
Why This Change Was Made
The notice renders the received error once instead of inventing a summary for it. One line keeps the card as small as the other cards above the composer, on phones too. Opened text wraps beside the actions and then uses the full card width, so it stays readable on a narrow screen while Refresh and dismiss keep their place in the card. Selecting the text to copy it does not close it.
Rewording individual upstream errors is out of scope. In-thread failures, Stop errors, and request or startup notices are unchanged. Reporting a bug remains available from Help.
The card sits above the composer, so it grows upward when opened. An opened error has no height limit of its own; the composer's context area already scrolls as one stack.
Evidence
The bundled Control UI was exercised in Chromium with synthetic Gateway data at 1280 px and at 400 px with touch emulation. The checks cover the one-line cut-off, the chevron hidden until hover and always visible on touch, opening by click, tap and keyboard, actions keeping their position in the card, Refresh preserving the draft without resending, and redaction. Component checks in Chromium at 820, 400 and 300 px cover a short error with no control, opened text using the width under the actions, text selection, and a replacement error closing the line.
62 browser flow tests across the nine affected suites, 7 Chromium component tests, and 33 unit tests passed. UI typecheck, lint, stylesheet lint, locale verification, the controller guard, formatting, and diff checks passed. Full CI, the paired UI performance budget, Safari, Firefox, physical phones, and live-provider failures were not run.
Visual proof
Chromium light-mode captures of the actual Control UI with synthetic Gateway data, cropped around the composer. Baseline:
4708bac523976; candidate:be578e0dc5cdc. The candidate uses a longer synthetic error to show the cut-off; the baseline hides the error either way, so its capture is unaffected.Clean comparison
Before

After

Annotated comparison
Before

After

Opened
Phone width, touch
Closed

Opened

Co-authored with @vyctorbrzezowski.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by