Skip to content

improve: simplify failed replies above the chat composer - #204433

Draft
roboclaw-bot wants to merge 6 commits into
mainfrom
openclaw/wild-crayfish-268b5e
Draft

roboclaw-bot wants to merge 6 commits into
mainfrom
openclaw/wild-crayfish-268b5e

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

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
Before: generic title and subtitle above the composer

After
After: the error on one line, cut off with an ellipsis

Annotated comparison

Before
Before: pointer to the generic subtitle

After
After: the chevron revealed on hover beside the error line

Opened

The opened error wraps beside the actions, then spans the card

Phone width, touch

Closed
At 400 px the error stays on one line with the chevron always visible

Opened
At 400 px the opened error uses the full card width below the actions

Co-authored with @vyctorbrzezowski.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 24, 2026 06:04
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 01ff6331-40e4-4866-9c3a-4f10708b7213
@clawsweeper

clawsweeper Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: L labels Nov 24, 2026
roboclaw-bot and others added 2 commits November 24, 2026 06:12
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 8454a41d-d47f-48cc-aeee-ec09c198f125
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 24, 2026
roboclaw-bot and others added 2 commits November 24, 2026 06:28
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: dd7da86d-7d70-43a5-a4bb-500648dba4a9

This branch has not been deployed

No deployments
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 clawsweeper:intake:feature Preliminary submission classification; full source review pending. docs Improvements or additions to documentation size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants