Skip to content

fix(ui): chat transcript is cut off above the composer - #195508

Merged
vyctorbrzezowski merged 5 commits into
mainfrom
openclaw/fresh-prawn
Nov 9, 2026
Merged

vyctorbrzezowski merged 5 commits into
mainfrom
openclaw/fresh-prawn

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: in an existing chat, the transcript stops above the composer. On desktop it leaves an empty band, and at the composer's rounded top corners messages are cut off along a flat line.

Reported and requested by @vyctorbrzezowski.

Work sessions

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

User Impact

User impact: the transcript runs right up to the composer and continues behind its rounded corners. The last message still ends above the composer, and the jump-to-latest button stays clear of it, on desktop and phone.

Why This Change Was Made

The conversation's composer token sets the composer's top margin to 0 instead of 8px. The footer now overlaps the transcript by the composer's largest corner radius. The transcript gets the same amount of extra bottom padding, so nothing is hidden at the end. The scroll-to-bottom button rises by the same overlap unless the measured activity clearance is already larger. Short panes keep their zero-padding layout plus the overlap. The narrow-width 6px rule was removed because the later base rule always overrode it.

Evidence

Screenshots are below. They come from the mocked Control UI at 1280×800 in dark mode, with the transcript scrolled so a message passes the composer's top-left corner.

  • ui/src/e2e/chat-footer.e2e.test.ts now asserts that the transcript reaches under the composer's top by at least the corner radius and that the last row ends above the composer. Without the CSS change it fails on desktop (expected 0 to be greater than or equal to 25) and on phone (… 35); with it, both pass.
  • Focused browser E2E: chat-footer, chat-composer-size, chat-scroll-dock, chat-composer-boundary, chat-position-rail-layout, chat-panel-layout: 16/16 passed.
  • Focused footer layout browser regression: 15/15 cases passed (4.77 seconds) after replacing obsolete viewport separation expectations with actual content-clearance checks. Short-pane final-message clearance, notice ordering, footer containment, and PR-link actionability remain asserted.
  • Exact test-line allocation: 14 lines cover the existing E2E regression (+11) and footer-clearance assertions (+3). This metadata correction preserves all production and test bytes. The prior CI run tested base 99b8d707 and reported 59 inherited lines beyond this PR's own growth; that historical debt was recorded without granting extra allowance. Exact-head CI has passed, including the baseline ratchets.
  • stylelint and oxfmt --check are clean on the changed files; git diff --check is clean.
  • Independent corrective review found no actionable P0–P2 issues.
  • Accepted edge case: a narrow centered notice pill above the composer now floats over the transcript's bottom edge instead of sitting below a straight cut. Full-width cards, such as the run-failure card and queue, cover it cleanly.

Before (current main): the transcript is cut flat beside the composer's top-left corner.

Before: transcript cut flat beside the composer corner

After: the transcript continues behind the rounded corner.

After: transcript continues behind the rounded composer corner

Worked on by

roboclaw-bot and others added 3 commits November 9, 2026 01:24
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: edd09f9b-d01f-4721-9d89-cc2a2c47aa2d
@clawsweeper

clawsweeper Bot commented Nov 9, 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.

@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. P2 Normal backlog priority with limited blast radius. 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 9, 2026
@clawsweeper

clawsweeper Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

Extends the chat transcript behind the composer’s rounded corners while preserving final-message and jump-button clearance.

Example: Scroll an existing chat at 1280×800 in dark mode until a message crosses the composer’s top-left corner.

  • Before: The message and avatar stop along a flat horizontal edge above the rounded corner.
  • After: The transcript remains visible beside the rounded corner and continues behind the composer.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The visual behavior is demonstrated and the production change is focused, but affected browser tests require repair before merge.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the visible transcript/composer boundary in the Control UI browser at 1280×800 with synthetic Gateway data and show the clipping corrected; the body also reports desktop/phone regressions failing before the CSS change and passing afterward.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Messages are visibly cut off along a flat edge beside the composer’s rounded top corners.
Reason: The maintainer-authored direction addresses a demonstrated visual defect with a bounded change; the body explicitly accepts the narrow notice-pill overlap tradeoff.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: the visual fix is supported by screenshots, but unchanged footer tests still enforce the replaced layout and fail CI.

Priority: P2
Reviewed head: a05f6a7213f668745ea87d13eae22121b5ff411d

Before merge

  • Update the existing footer tests for the intentional overlap (P2) - The negative footer margin makes the transcript extend past the footer top, but chat-footer-layout.browser.test.ts still requires thread.bottom <= footer.top at lines 204, 495, and 517, and its PR-card assertion at line 531 also assumes separation. The current UI check already fails seven cases with a consistent 35px overlap. Update these assertions to the new overlap contract while preserving last-content clearance, notice ordering, and actionable controls; updating only chat-footer.e2e.test.ts leaves the affected consumer suite broken.

Findings

  • [P2] Update the existing footer tests for the intentional overlap — ui/src/styles/chat/startup-layout.css:182
Agent review details

How this fits together

The Control UI lays out transcript rows, footer notices, and the composer inside one conversation pane; CSS and the existing transcript geometry owner determine scroll padding and floating-button clearance.

flowchart TD
  A[Conversation pane] --> B[Transcript viewport]
  A --> C[Footer and composer]
  B --> D[Transcript geometry owner]
  C --> D
  D --> E[Scroll padding and activity clearance]
  E --> F[Latest message and jump button]
Loading

Technical review

Best possible solution:

Keep the coordinated CSS fix and update the existing footer browser assertions to permit intentional overlap while retaining message-clearance and control-reachability checks.

Do we have a high-confidence way to reproduce the issue?

Current-main CSS retains the separated transcript/footer boundary, and the supplied before image shows the resulting flat clipping; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The fix uses the existing conversation CSS and geometry owner, applies matching overlap and bottom padding, and extends an existing regression without adding another layout mechanism.

Full review comments:

  • [P2] Update the existing footer tests for the intentional overlap — ui/src/styles/chat/startup-layout.css:182
    The negative footer margin makes the transcript extend past the footer top, but chat-footer-layout.browser.test.ts still requires thread.bottom <= footer.top at lines 204, 495, and 517, and its PR-card assertion at line 531 also assumes separation. The current UI check already fails seven cases with a consistent 35px overlap. Update these assertions to the new overlap contract while preserving last-content clearance, notice ordering, and actionable controls; updating only chat-footer.e2e.test.ts leaves the affected consumer suite broken.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9fb87cfca57a.

Provenance checked

  • Transcript/footer separation and composer top spacing changes intended behavior with a stated reason (fix(ui): keep chat footer controls clear of messages and notices #152608: Separate footer context from the transcript to prevent notices from covering PR controls and the last reply; the earlier origin of the carried 8px spacing could not be recovered because old blobs were unavailable.)
  • Short-pane transcript padding keeps the original intent (a1ec6f7: Keep short-pane overrides with their defaults so lazy stylesheet order cannot restore unwanted padding.)
  • Jump-to-latest activity clearance keeps the original intent (d3883d8: Keep the centered latest button clear of intersecting mobile activity pills.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui exec vitest run --config vitest.node.config.ts src/pages/chat/chat-footer-layout.browser.test.ts
  • pnpm test:ui:e2e ui/src/e2e/chat-footer.e2e.test.ts
  • pnpm exec oxfmt --check ui/src/pages/chat/chat-footer-layout.browser.test.ts
  • git diff --check

What I checked:

PR surface

Source +8, Tests +11. Total +19 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 15 7 +8
Tests 1 16 5 +11
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 31 12 +19

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.

Labels

Label changes:

  • add P2: The PR repairs visible transcript clipping with limited impact; the remaining repair is a focused update to affected browser tests.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: The PR repairs visible transcript clipping with limited impact; the remaining repair is a focused update to affected browser tests.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • 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.

Reviewed November 8, 2026, 9:11 PM ET / November 9, 2026, 02:11 UTC.

@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) November 9, 2026 02:35
@vyctorbrzezowski
vyctorbrzezowski merged commit 12eaf8a into main Nov 9, 2026
99 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/fresh-prawn branch November 9, 2026 03:16
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 9, 2026
Let the transcript continue behind the rounded composer while retaining bottom padding for the last message and appropriate jump-button clearance. Align existing browser checks with visible-content clearance instead of prohibiting the intended container overlap.

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: Vyctor H. Brzezowski <[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 P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants