Repository navigation
improve(ui): align chat transcript, composer and new-session chip rhythm - #196134
Conversation
Group threads now inset the user's trailing avatar column by the same 4px as the assistant's leading one, so user bubbles and assistant text end the same distance inside the composer's edges. Composer chips share the icon buttons' 32px row box while still painting the 30px pill. Inline transcript disclosures (reply target, system events, PR status) use --radius-sm instead of a bare 4px. On /new, the workspace chips keep the row's pill shape when expanded (the checkout pair squares off its shared edge) and the recent sessions list shares the composer column. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 64d520ee-ca03-4afd-bdd5-16790696b9f4
|
🦞👀 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 changes before merge. What this changesThis PR aligns chat message lanes and composer controls and unifies New Session chip shapes and column widths. Example: A group chat at 1400×900
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-authored PR delivers useful visual polish, but its added CSS causes a verified performance-budget failure. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherControl UI styles arrange rendered transcript messages, composer actions, workspace pickers, and recent sessions using existing layout tokens. flowchart TD
A[Chat and New Session pages] --> B[Rendered messages and controls]
C[Shared layout tokens] --> D[Chat and composer styles]
C --> E[New Session styles]
B --> F[Browser layout]
D --> F
E --> F
Technical reviewBest possible solution: Keep the focused token and selector changes while reducing equivalent CSS enough to satisfy the existing performance budget. Do we have a high-confidence way to reproduce the issue? Current-main CSS retains the mismatched dimensions, and inspected before/after screenshots corroborate the visible alignment and workspace-shape differences; no target code was executed during review. Is this the best way to solve the issue? The production change uses the existing layout owners and preserves mobile size overrides, but its CSS growth must fit the enforced budget. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6edcaa28edb7. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +28, Tests +152. Total +180 across 9 files. Added test files: 1. 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. 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 Reviewed November 9, 2026, 12:17 PM ET / 17:17 UTC. |
Fold the equal start/end group insets into one --chat-group-inset token, drop the redundant chip min-height and inset token, round the /new checkout pair through its existing trigger ids, and leave the PR status focus radius alone. Main already sits over the fixed CSS ceiling, so the change must not grow the bundle. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 9e1aed36-400e-403f-a814-6b234daf5aec
The new node-driven browser test guards geometry contracts that had no owning test; main already sits over the test-line ceiling, so the exact growth is recorded as an allocation. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: b6383d84-cdcb-4f75-8774-ad2e668b9184
What Problem This Solves
The chat pane mixed alignment and shape rules: in group threads the user bubble ended 62px inside the composer's right edge while the assistant avatar sat 4px inside the left edge; composer chips (30px) and icon buttons (32px) had different boxes in one row; the reply-attribution target used a bare 4px radius no token owns; and on
/newthe expanded workspace chip painted a square wash next to a pill chip.User Impact
User impact: the transcript's two avatar columns are mirror images (both 50px inside the composer edges), every composer action-row control shares one 32px box and centre line, inline transcript disclosures share
--radius-sm, and/newhas one pill chip shape, including the bordered checkout pair. No behavior changes; mobile/touch sizes are untouched.Why This Change Was Made
Part of the Control UI rhythm pass (chat pane lane). Each fix moves a stray literal onto the owner that already defines the family: the two group insets collapse into one
--chat-group-inset;--chat-composer-chip-heightreads--chat-composer-send-sizeand the chip paints its 30px pill through a 1px transparent block border, like the primary action's painted disc; the/newcheckout pair keeps the row's pill radius while its two triggers (already addressable by id) square off the edge they share.mainalready sits over the fixed Control UI CSS ceiling, so the change had to stay byte-neutral: the localpnpm ui:check-performance:basecomparison against the merge base reports +25 B gzip / +27 B raw total CSS (allowance 64 B).Evidence
Measured on the mocked Control UI (
pnpm dev:ui:mock), native-macOS chrome, 1400×900, dark; also checked light, web (non-native) and 820px.button.chat-reply-attribution__targetradius--radius-sm(6px)/new"Agent workspace" trigger radius9999px 0 0 9999px/0 9999px 9999px 0/chat,/new)Layout-shift probe (mock, in-app
/new↔/chat/main, 400/820/1280): no new entries; the pre-existing 820px route-switch shift is unchanged or lower (0.0809 → 0.0622, 0.0571 → 0.0571).Before — group thread, native dark 1400×900 (magenta lines mark the composer edges)
After
Before / After —
/new, expanded workspace chipTests:
ui/src/pages/chat/chat-rhythm-alignment.browser.test.ts(node-driven Playwright, registered inuiNodeDrivenBrowserTestFiles): asserts mirrored lane insets and a single action-row box/centre line at 1366×900 and 1440×1400. Red on the base styles (expected 62 to be close to 50), green with the fix.chat-responsive.browser.test.ts(transcript roles/insets/composer) still passes;pnpm lint:ui:styles(stylelint) on touched sheets, oxfmt, oxlint on the new test,pnpm tsgo:ui: clean.Deliberately left as-is (reported to the lead): the chat position rail stays left-anchored to the pane edge rather than centred in a variable-width gutter; reaction chips and owner avatars stay pills (genuine chips); the
/newscope chips keep their 26px/12px tier above the 30px composer chips; touch layouts (≤768px) keep their 44px chip family, now painting 42px inside it. Widening the/newrecent-sessions list to the composer column (520px → 768px) looked better but did not fit the CSS budget; left as a follow-up.Work sessions
Linked for team reference; these sessions aren't public.
Worked on by