Repository navigation
improve: keep composer error cards on one line - #204337
hannesrudolph merged 25 commits into
Conversation
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 66d6159b-eae1-47b0-a7c1-7c4d7885b4a2
|
🦞👀 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: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 6a47f995-0862-457e-95e9-b8b8edf16d12
|
Codex review: needs maintainer review before merge. What this changesThe PR makes composer error cards lead with the actual error, groups their controls, and limits reporting links to unexpected failures. Example: A request fails at a 300 px viewport with 140% text scaling.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR remains useful and has no identified blocking findings. The previous OAuth diagnostic loss is repaired; exact-head UI CI is still pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway failure events enter the chat lifecycle owner, which retains redacted diagnostics and classification facts for composer notices and their recovery controls. flowchart TD
A[Gateway failure event] --> B[Chat event adapter]
B --> C[Run error owner]
C --> D[Composer presentation]
D --> E[Shared toast card]
E --> F[Details and recovery controls]
Technical reviewBest possible solution: Retain the composer-specific layout through the existing toast and lifecycle owners, including the restored bounded OAuth diagnostic. Do we have a high-confidence way to reproduce the issue? Current-main source retains the generic composer explanation, and the supplied mobile comparison demonstrates the narrow-layout problem; no target code was executed during this review. Is this the best way to solve the issue? The change keeps recovery and redaction with their existing owners, confines the new presentation to composer failures, and repairs the previously identified diagnostic regression. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7f28b31514ec. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +150, Tests +228, Docs +2, Other 0. Total +380 across 27 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (9 earlier review cycles; latest 8 shown)
Reviewed November 24, 2026, 2:28 PM ET / 19:28 UTC (Revision 10). |
Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: a6d1e76b-a26f-48d4-9cd8-7b0122d33215
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Co-authored-by: daniel-lxs <[email protected]>
…03-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 81bf59fd-7a26-4391-9ba7-c41427e3087b
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
🦞👀 Re-review progress:
|
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: f328cfea-45ca-45e5-bfe4-6c083b036ac0
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…03-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: a45b3eba-5756-4d2b-af48-e2067b8fb4bf
|
Merged via squash.
|
* improve: keep failed-reply actions together Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 66d6159b-eae1-47b0-a7c1-7c4d7885b4a2 * Merge selected base main Co-authored-by: daniel-lxs <[email protected]> * fix: keep failed-reply controls accessible within the CSS budget Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 6a47f995-0862-457e-95e9-b8b8edf16d12 * Merge selected base main Co-authored-by: daniel-lxs <[email protected]> * fix: cover the remaining failed-reply disclosure flows Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: a6d1e76b-a26f-48d4-9cd8-7b0122d33215 * Merge selected base main Co-authored-by: daniel-lxs <[email protected]> * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 81bf59fd-7a26-4391-9ba7-c41427e3087b * Merge selected base main Co-authored-by: daniel-lxs <[email protected]> * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: b4a25e65-63aa-428b-b8e6-7d7f9ee773f0 * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: f689dea4-9fe3-4e1e-b1cf-85ec009d52e7 * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 5d527364-b612-4199-85bf-9f4094442d5e * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: b24ad995-d29f-4610-876e-fa5b345106b8 * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: a8a6e4a2-b300-475a-91bb-b546bf4d828d * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 8199b1d7-af69-423c-bd87-a5e35e499877 * Merge selected base main Co-authored-by: daniel-lxs <[email protected]> * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 6bccc111-41bb-405d-9e8c-35719f9ac286 * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: ecd159f7-90d2-4841-ac80-e3bd63ebd427 * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 7ec54ae7-a6cb-4466-93dd-c25aac7be6af * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: dcebb653-e134-4662-baed-90e2f1868d7c * Save workspace before refreshing its selected base Co-authored-by: daniel-lxs <[email protected]> * Merge selected base main Co-authored-by: daniel-lxs <[email protected]> * refactor: share error-card defaults without changing layout Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 38fa8d7f-7627-4ec1-8529-6fb88b4fa167 * chore: account for approved Control UI CSS growth Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 636edd0a-78aa-454c-9bb0-137ca62fcd7e * fix: preserve bounded OAuth refresh diagnostics Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: f328cfea-45ca-45e5-bfe4-6c083b036ac0 * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: a45b3eba-5756-4d2b-af48-e2067b8fb4bf
* fix: preserve completed Claude tool calls in chat history * fix: preserve completed Claude tool calls in chat history OpenClaw-Publication: d3a267f1-3ba5-4fc9-a4dd-3968148f8eb1 (cherry picked from commit a27b4e6) Follow-ups: 49492d7 fix: align Control UI tooling and docs with task card removal (#207747) [not selected for this narrow backport]; cebbb78 fix: keep tagged silent replies out of chat (#207738) [not selected for this narrow backport]; d4e1305 fix: hide desktop Details when there is nothing to show (#205093) [not selected for this narrow backport]; 11b2cf0 fix: keep the selected Review file compact when the tree is open (#203825) [not selected for this narrow backport]; 4be636b feat(ui): offer Add to Home agent when Home sidebar is open (#207773) [not selected for this narrow backport]; f766de4 fix: surface favorites and recommended models in picker search (#201450) [not selected for this narrow backport]; 61a7661 improve(ui): remove suggested-task cards from Control UI (#199167) [not selected for this narrow backport]; 48cc039 fix: keep long process names compact above mobile output (#203767) [not selected for this narrow backport]; 9316f05 fix: show the first message when session naming fails (#205607) [not selected for this narrow backport]; aa4a68f fix(ui): show chat completions as activity rows (#201891) [not selected for this narrow backport]; ec209d0 fix(ui): link selection sessions to their source session (#206509) [not selected for this narrow backport]; 3f475cc fix(ui): keep pre-final assistant text visible after a completed turn (#140835) [not selected for this narrow backport]; 05ec989 fix: keep chat photo previews sharp within their byte limits (#206461) [not selected for this narrow backport]; b3bdfb5 feat(ui): preview CSV chat attachments as tables (#206148) [not selected for this narrow backport]; 6b3ccab fix: show Waiting and Resumed for Claude CLI subagent handoffs (#206158) [not selected for this narrow backport]; 762aa00 fix: keep dictation recording when switching tabs or applications [not selected for this narrow backport]; d3f9fca fix: keep similar subagent names distinct in compact rows (#203777) [not selected for this narrow backport]; 864efbb improve: keep composer error cards on one line (#204337) [not selected for this narrow backport]; d7ed2dd fix: stop replaying Claude progress updates in active chats (#203970) [not selected for this narrow backport]; 269f884 fix: show Claude CLI document uploads only once in chat (#203866) [not selected for this narrow backport]; 4708bac fix(ui): show Linear artwork in chat tool activity (#204414) [not selected for this narrow backport] Co-authored-by: RomneyDa <[email protected]>
* improve: keep failed-reply actions together Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 66d6159b-eae1-47b0-a7c1-7c4d7885b4a2 * Merge selected base main Co-authored-by: daniel-lxs <[email protected]> * fix: keep failed-reply controls accessible within the CSS budget Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 6a47f995-0862-457e-95e9-b8b8edf16d12 * Merge selected base main Co-authored-by: daniel-lxs <[email protected]> * fix: cover the remaining failed-reply disclosure flows Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: a6d1e76b-a26f-48d4-9cd8-7b0122d33215 * Merge selected base main Co-authored-by: daniel-lxs <[email protected]> * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 81bf59fd-7a26-4391-9ba7-c41427e3087b * Merge selected base main Co-authored-by: daniel-lxs <[email protected]> * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: b4a25e65-63aa-428b-b8e6-7d7f9ee773f0 * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: f689dea4-9fe3-4e1e-b1cf-85ec009d52e7 * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 5d527364-b612-4199-85bf-9f4094442d5e * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: b24ad995-d29f-4610-876e-fa5b345106b8 * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: a8a6e4a2-b300-475a-91bb-b546bf4d828d * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 8199b1d7-af69-423c-bd87-a5e35e499877 * Merge selected base main Co-authored-by: daniel-lxs <[email protected]> * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 6bccc111-41bb-405d-9e8c-35719f9ac286 * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: ecd159f7-90d2-4841-ac80-e3bd63ebd427 * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 7ec54ae7-a6cb-4466-93dd-c25aac7be6af * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: dcebb653-e134-4662-baed-90e2f1868d7c * Save workspace before refreshing its selected base Co-authored-by: daniel-lxs <[email protected]> * Merge selected base main Co-authored-by: daniel-lxs <[email protected]> * refactor: share error-card defaults without changing layout Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 38fa8d7f-7627-4ec1-8529-6fb88b4fa167 * chore: account for approved Control UI CSS growth Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 636edd0a-78aa-454c-9bb0-137ca62fcd7e * fix: preserve bounded OAuth refresh diagnostics Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: f328cfea-45ca-45e5-bfe4-6c083b036ac0 * Publish openclaw/error-card-buttons-vyctor-s-layout-follow-up-to-204303-12a054 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: a45b3eba-5756-4d2b-af48-e2067b8fb4bf (cherry picked from commit 864efbb) Release adaptation: Keep the stable error detail and notice UI; broaden only the existing late-diagnostic predicate to recognized recovery kinds on the owned run, with terminal history-first regressions. Companion audit: PR #204337 is the source; the composer layout and associated UI fixtures are excluded. Co-authored-by: RomneyDa <[email protected]>
Related: #194607
Supersedes #204433. This is the continuing PR for the composer error-card change, not a duplicate to close in favor of #204433.
What Problem This Solves
A failed reply's card above the composer hides the actual error behind a short headline and a separate details control. It should instead match the requested compact layout without taking extra rows away from the conversation.
User Impact
The card shows the redacted error on one line, cut off with an ellipsis, with Refresh and X on the right. It has no Details, Show details, chevron, expansion, Copy error, or Report a bug control. This remains one line on narrow screens. Long text is intentionally not expandable on this card.
Refresh reloads history without resending or replacing the draft. Sign-in failures offer Open Models instead; contention offers Check status. Ordinary request, Stop and startup notices, transcript failures, saved diagnostics and backend persistence retain their existing behavior. Reporting remains available from Help. No migration, new setting or automatic retry is introduced.
Why This Change Was Made
This incorporates the useful differences in @vyctorbrzezowski's #204433: the full redacted error rather than a first-sentence summary, the compact composer-neighbor appearance, single-line overflow, and Open Models recovery. Its click-to-expand/hover-chevron behavior is deliberately not carried over because the requested design has no details or expansion.
The composer owns its compact card; ordinary notices use the unchanged shared toast. pr-simplify removed the old disclosure state, reportability classifier and its copied cause fields, the shared toast's custom-details extension, and obsolete disclosure/report tests. The existing OAuth formatter still retains only the four allowlisted provider facts and excludes response previews. Late auth, Stop and contention classifications update the appropriate recovery presentation even when history already contains the same message.
The previously approved cap-only commit 9e509114 remains separate and unchanged. It set total-CSS ceilings to 1,783,929 raw / 346,369 gzip bytes using the then-measured full-layout head plus 64 B, following #198491/#198133. The approval and attribution remain in the linked discussion. This follow-up does not raise any cap.
Evidence
Published head: e59119b. Its tree matches the tested source.
Hosted CI for the new push is not yet a completed result. The previous ClawSweeper result does not cover this revision; no new ClawSweeper wait or request is part of this update. Safari, Firefox, physical phones and live-provider failures were not tested.
The real production-built application was checked with the same synthetic Gateway error and draft before and after, at 1280 and 400 px. Both final scenarios pass: actual full redacted text, one-line ellipsis, aligned and contained controls, no disclosure, Refresh without resend or draft loss, and dismissal. The original PR build failed the requested one-line assertions at both widths before the change.
Clean comparison
Chromium, light theme, 1280 px viewport, matched 792×180 crops. Before: a157e63; after: e59119b (production build of the same source tree). A fresh capture after the final recovery repair was byte-identical to the displayed card image. Synthetic data only; no recreated UI or DOM restyling.
Before

After

Annotated comparison
Matched 792×240 crops from the same captured frames.
Before

After

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