Skip to content

fix: restore compact failed-reply cards in the Control UI - #204303

Merged
hannesrudolph merged 4 commits into
mainfrom
openclaw/fix-the-couldn-t-finish-this-reply-card-layout-194607-e57fd3
Nov 24, 2026
Merged

hannesrudolph merged 4 commits into
mainfrom
openclaw/fix-the-couldn-t-finish-this-reply-card-layout-194607-e57fd3

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

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 941e80567e600f18f900d27b1f383c67a5f25ae6

Revision Total raw CSS Growth versus main Paired result
Main 941e80567 1,784,848 B 0 B Comparison base
Previous PR head 33ca78615 1,785,067 B +219 B Failed
Repaired PR head de69188212e7dd73a7580c586989ae3c376ef9a1 1,784,869 B +21 B Passed

The 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.

Measurement Main Repaired PR head
Title/body gap at 1280, 820, and 400px 39.7px 6px
Card height at 1280 and 820px 137.7px 104px
Card height at 400px 155.7px 122px
Report a bug font size 14px 13px
  • 5 full-UI E2E cases, 6 browser-layout tests, and 30 unit tests pass. Reporting, Refresh without resending, keyboard details, dismissal, and mobile discard remain covered.
  • Stylesheet lint, formatting, and diff checks pass. TypeScript and test lint evidence from the prior head remains applicable because this repair changes only CSS.
  • Independent Auto Review covered the full candidate against main at P0-P2. Its only finding was an index-only staging mismatch; both repaired stylesheets were staged together, the index was verified equal to the tested working tree, and both were committed and published. No remaining source finding was identified.
  • One initial browser launch crashed at newPage before 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.
  • The original main negative control failed all three responsive layout cases as expected. An earlier mouse-based disclosure attempt timed out on that original baseline; keyboard activation is covered, and no mouse-toggle repair is claimed.
  • Not checked: live model/Gateway behavior, the deployed service, Firefox/WebKit, or the new remote CI run.

Visual comparison

The existing real-build screenshots are retained: before is main 941e80567 and the after capture is 33ca78615. 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

Main: failed-reply card with excessive title/body spacing

After

PR head: compact failed-reply card with reporting retained

Annotated comparison

Before

Main measurements: 39.7px gap, 137.7px height, 14px report text

After

PR head measurements: 6px gap, 104px height, 13px report text

Contributor credit: @daniel-lxs.

Work sessions

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

Worked on by

roboclaw-bot and others added 3 commits November 24, 2026 00:40
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
@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.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 24, 2026 00:48
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 24, 2026
@clawsweeper

clawsweeper Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Restore 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.

  • Before: The title/body gap is about 39.7px, the card is 137.7px tall, and reporting text is 14px.
  • After: The gap is 6px, the card is 104px tall, and reporting text is 13px.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused repair with inspected visual proof, responsive regression coverage, and a passing current-head performance comparison.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the production Control UI in Chromium with synthetic Gateway data; the body records matching card pixels after the latest CSS repair and preserved measurements at desktop, tablet, and phone widths.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A failed-reply card consumes unnecessary conversation space and displays its reporting link larger than its body.
Reason: This maintainer-authored repair restores the existing compact presentation without changing reporting policy or recovery behavior.

Regression provenance

Possible 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
Reviewed head: de69188212e7dd73a7580c586989ae3c376ef9a1

Before merge

None.

Findings

None.

Agent review details

How this fits together

Gateway 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]
Loading

Technical review

Best 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

  • Persistent chat error grid keeps the original intent (b55baff: Adopt shared toast presentation while keeping recovery beside the title and mobile discard below the warning.)
  • Stacked recovery and feedback controls keeps the original intent (85e387a: Prevent the reporting link from overlapping recovery controls while retaining privacy-safe feedback access.)
  • Shared toast typography keeps the original intent (dfbd7d5: Defer rich toast styling with its renderer while retaining a readable startup fallback.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit dfbd7d5 adds ui/src/styles/toast.css:203 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: dfbd7d5cc2f3; files: ui/src/styles/toast.css)

PR surface

Source +5, Tests +82. Total +87 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 9 4 +5
Tests 1 83 1 +82
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 92 5 +87

Preflight source

Source 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

Metric Value Why it matters
Production versus regression coverage Production CSS +9/-4 lines; tests +83/-1 lines The small styling repair is supported by responsive layout and interaction checks through the existing full-UI suite.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This repairs excess spacing and typography without evidence of blocked chat or recovery.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-24T01:03:15.153Z sha 33ca786 :: needs changes before merge. :: [P2] Reduce the added CSS to pass the paired asset budget

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
@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

1 similar comment
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@THE-NAVVV THE-NAVVV left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

​

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 24, 2026
@hannesrudolph
hannesrudolph merged commit 1ce5432 into main Nov 24, 2026
96 checks passed
@hannesrudolph
hannesrudolph deleted the openclaw/fix-the-couldn-t-finish-this-reply-card-layout-194607-e57fd3 branch November 24, 2026 01:55
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 24, 2026
…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]>
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Control UI failed-reply card has excessive spacing after #194607

4 participants