Repository navigation
fix: restore compact failed-reply cards in the Control UI - #204303
hannesrudolph merged 4 commits into
Conversation
Co-authored-by: daniel-lxs <[email protected]>
Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 5a5ad6a9-e128-4f81-a8ec-1fef11dfadef
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. What this changesRestore compact failed-reply cards by sharing grid rows with recovery actions and reusing body-sized typography. Example: A failed reply appears in the Control UI at 1280×900 with default text size.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review This PR fixes the current spacing regression, and the reviewed head resolves the prior CSS-budget blocker with no remaining findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway session failures feed the existing chat notice renderer, which uses ToastNotice and shared CSS to display diagnostics, recovery controls, reporting, and dismissal. flowchart TD
A[Gateway session failure] --> B[Chat notice owner]
B --> C[ToastNotice]
C --> D[Shared toast typography]
C --> E[Chat card grid]
E --> F[Recovery and reporting controls]
Technical reviewBest possible solution: Land the focused CSS repair while retaining the existing notice owner, separate controls, and mobile discard layout. Do we have a high-confidence way to reproduce the issue? Current-main markup and CSS establish the oversized first-row mechanism, and inspected production-build screenshots show the reported defect; this read-only review did not rerun the application. Is this the best way to solve the issue? The patch repairs the existing grid and reuses shared typography while preserving the control separation required by the original feedback-link change. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 60dede98ad30. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +5, Tests +82. Total +87 across 3 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 (1 earlier review cycle)
Reviewed November 23, 2026, 8:39 PM ET / November 24, 2026, 01:39 UTC (Revision 2). |
…7-e57fd3 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: e4507005-e72e-460d-9a53-3e40bb6d39ba
|
@clawsweeper re-review |
1 similar comment
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…04303) * Save workspace before refreshing its selected base Co-authored-by: daniel-lxs <[email protected]> * fix: restore compact failed-reply cards in the Control UI Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 5a5ad6a9-e128-4f81-a8ec-1fef11dfadef * Publish openclaw/fix-the-couldn-t-finish-this-reply-card-layout-194607-e57fd3 Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: e4507005-e72e-460d-9a53-3e40bb6d39ba --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: daniel-lxs <[email protected]>
Closes #204297
What Problem This Solves
The Control UI's persistent "Couldn't finish this reply" card grew after #194607. Stacking Refresh and Report a bug inside the title row left a 39.7px gap above the body, and the report link used larger text than the body.
User Impact
Failed-reply cards return to their compact layout while keeping Report a bug, Refresh, expandable details, and dismissal. No configuration changes or migration are required.
Why This Change Was Made
The existing card grid now shares its title and body rows with the action group, so reporting no longer stretches the title row. The report link matches the body's scaled typography. The narrow-screen discard action retains its full-width layout.
Scope is limited to the card layout, reused toast typography, and the responsive E2E regression. No production JavaScript, comments, dependencies, or unrelated behavior changed.
Evidence
CSS budget repair
Acceptance: no more than 64 B of total generated raw CSS growth versus pinned main
941e80567e600f18f900d27b1f383c67a5f25ae6, with the compact layout and mobile discard behavior preserved. No budget or baseline changes.Ran the existing paired production-build check locally before and after the repair, with one toolchain and fixed build identity (Node 24.20.0, Vite 8.3.5, Pako 3.0.3):
node --import ./scripts/tsx.mjs scripts/check-control-ui-performance-base.mts 941e80567e600f18f900d27b1f383c67a5f25ae6941e8056733ca78615de69188212e7dd73a7580c586989ae3c376ef9a1The repair removes 198 B of generated raw CSS. Total CSS gzip growth is +5 B; chat and new-session boot JS gzip growth is +31 B. The complete paired check passes with its existing limits. Main's inherited fixed-ceiling overages remain visible in the report.
Ran pr-simplify on the complete change. The repair removes the duplicate report-link typography rule, reuses the existing toast description typography, and shortens redundant selector ancestry while preserving the mobile override's precedence. No new CSS rule, production JavaScript, state, helper, or comment was added. Total production delta versus main is +9/-4 CSS lines; this repair is -4 net lines versus the previous candidate. Test delta remains +83/-1 lines.
Layout and interaction checks
Fresh production Control UI captures use Chromium 156, light theme, default text size, 900px viewport height, and identical synthetic Gateway data. This is the real application build, not a recreated screen or a live model/Gateway test. The published repair's source tree was verified identical to the tested local candidate.
newPagebefore any tests executed. One bounded isolated replay passed all 6 browser tests. The crash cause was not established and no fix for it is claimed.Visual comparison
The existing real-build screenshots are retained: before is main
941e80567and the after capture is33ca78615. A fresh capture of the repaired candidate has zero differing pixels in the card region compared with that published after image, and all three viewport measurements are unchanged. The callouts therefore still describe the repaired PR head. Both comparison images use the same 1280×900 viewport and synthetic failed-session data.Clean comparison
Before
After
Annotated comparison
Before
After
Contributor credit: @daniel-lxs.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by