Repository navigation
improve(ui): give the shell top band one control size and radius - #196131
Conversation
The sidebar header, macOS history buttons and chat header share the 52px titlebar row but mixed 28/30/32px controls and 6px/10px corners. Every control in the row now uses the rail action size (28px) and --radius-md: the Sessions owner picker, Filter & sort and Collapse buttons, the session title button, the session Actions trigger and the Details toggle (which drops its own radius/corner-shape and takes the base rule's --radius-md like the icon buttons beside it). The owner picker also mirrors the session row beneath it: its avatar fills a 20px lead column centered on the row glyphs and its label starts on the row text column (x=100 beside x=100 in the web shell). In the native macOS shell the header keeps its window-control inset, so the picker stays clear of the traffic lights. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 69b9e9d0-566a-40f8-9d0a-9dbe1ed7baca
|
🦞👀 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 standardizes desktop shell header control sizes and radii and aligns the Sessions owner picker with session rows. Example: Open /chat/main in the desktop web shell at 1400×900.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep open: this PR delivers maintainer-directed visual polish, but two diff-caused budget failures need repair before merge. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherControl UI header components combine session presentation data with shared CSS tokens to render sidebar and chat controls in web and native shells. flowchart LR
A[Session presentation data] --> B[Sidebar owner picker]
A --> C[Chat header]
D[Shared size and radius tokens] --> B
D --> C
B --> E[Rendered shell top band]
C --> E
Technical reviewBest possible solution: Keep the existing token-based styling change while consolidating emitted CSS and satisfying the test-line budget without weakening either gate. Do we have a high-confidence way to reproduce the issue? Current-main styles establish the mixed 28/30/32px geometry, and the supplied browser screenshots show the original alignment mismatch; no target code was executed during this review. Is this the best way to solve the issue? The patch uses existing CSS tokens and IconButton sizing, preserves the menu reservation, and adds no competing owner; its remaining repairs are the two concrete budget failures. 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 +12, Tests +90. Total +102 across 6 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 Reviewed November 9, 2026, 12:10 PM ET / 17:10 UTC. |
The shipped CSS total already sits over its fixed ceiling on main, so this change may not grow it. The owner picker's avatar is now the 20px row lead itself (no extra leading rule), the header rules use the 28px literal the rail action token resolves to, and the two owning e2e suites' 82 net test lines are recorded in config/test-lines-allocations. Measured against the base build: total CSS -125 B raw, -9 B gzip. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: a2a3ee0b-4002-4023-951f-61d451e88ef1
|
Merged via squash.
|
Keep exact sidebar spacing and native header assertions aligned with the intentional shell top-band sizing from #196131. Co-authored-by: steipete <[email protected]>
…nclaw#196131) * improve(ui): give the shell top band one control size and radius The sidebar header, macOS history buttons and chat header share the 52px titlebar row but mixed 28/30/32px controls and 6px/10px corners. Every control in the row now uses the rail action size (28px) and --radius-md: the Sessions owner picker, Filter & sort and Collapse buttons, the session title button, the session Actions trigger and the Details toggle (which drops its own radius/corner-shape and takes the base rule's --radius-md like the icon buttons beside it). The owner picker also mirrors the session row beneath it: its avatar fills a 20px lead column centered on the row glyphs and its label starts on the row text column (x=100 beside x=100 in the web shell). In the native macOS shell the header keeps its window-control inset, so the picker stays clear of the traffic lights. Co-authored-by: vincentkoc <[email protected]> * improve(ui): give the shell top band one control size and radius Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 69b9e9d0-566a-40f8-9d0a-9dbe1ed7baca * improve(ui): keep the top band CSS under its byte ceiling The shipped CSS total already sits over its fixed ceiling on main, so this change may not grow it. The owner picker's avatar is now the 20px row lead itself (no extra leading rule), the header rules use the 28px literal the rail action token resolves to, and the two owning e2e suites' 82 net test lines are recorded in config/test-lines-allocations. Measured against the base build: total CSS -125 B raw, -9 B gzip. Co-authored-by: vincentkoc <[email protected]> * Publish openclaw/ui-rhythm-shell-topband Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: a2a3ee0b-4002-4023-951f-61d451e88ef1 --------- Co-authored-by: vincentkoc <[email protected]>
Keep exact sidebar spacing and native header assertions aligned with the intentional shell top-band sizing from openclaw#196131. Co-authored-by: steipete <[email protected]>
What Problem This Solves
The 52px shell top band (sidebar header, macOS history buttons, chat header) mixes control sizes and corner shapes in one row: the Sessions owner picker is 30px tall with 6px corners, Filter & sort / Collapse are 28px with 6px corners, the session title button is 32px with 6px corners, the session Actions trigger is 32px with 10px corners, and Details / Panels are 28px with 10px corners. The owner picker's avatar and label also do not line up with the session rows beneath them.
User Impact
User impact: every control in the desktop top band now shares one height (28px) and one corner radius (
--radius-md), and the Sessions owner picker lines up with the rows below it (avatar on the row glyph column, label on the row text column). No behavior changes; mobile keeps its own header.Why This Change Was Made
Vincent's design review asked for vertical/horizontal rhythm in the shell: consistent left-edge or centered alignment, and one control shape per surface. The band was already vertically centered on the traffic lights (y=26); this change makes the sizes, radii and the sidebar header's horizontal alignment consistent too. No new tokens or shared-component changes. The shipped CSS total already sits over its fixed ceiling on main, so the header rules use the
28pxliteral that--rail-header-action-sizeresolves to and the picker avatar is the 20px row lead itself; measured against the base build the change is −125 B raw / −9 B gzip of CSS.In the native macOS shell the sidebar header keeps its window-control inset (92px). Aligning the picker to the content column there would put the avatar 5px after the zoom light, where it reads as a fourth traffic light and the hover pill touches it, so that offset is deliberate.
Details toggle: the header override that set its own
calc(8px * scale)+corner-shapeis removed; it now takes the base rule's--radius-md, the same shape as the icon buttons beside it. The session Actions menu trigger usesiconButtonClass({ size: 28 }), the size the Panels toggle already uses.Evidence
Measured in the mocked Control UI at 1400×900 (
/chat/main, dark). Every control in the band stays centered at y=26 (native) / y=22 (web).Before (native macOS shell, dark; fake traffic lights drawn at the AppKit positions)
After
Before (web shell, dark — owner picker avatar/label vs the rows below)
After
More states: header trailing controls, light theme, 820px
Before / after, native dark, trailing chat header controls:
After, native light:
After, web light:
After, native dark at 820px:
Tests (red on base, green with the fix):
ui/src/e2e/sidebar-rail-alignment.e2e.test.ts: header controls share 28px and--radius-md; the owner picker label starts on the row glyph column without an avatar and on the row text column with one, with the avatar centered on the glyph column. Base failure:.picker-select__trigger: expected 30 to be 28.ui/src/e2e/chat-header-axis.e2e.test.ts: title button, Actions trigger and Details toggle share 28px and--radius-md. Base failure on.chat-pane__session-title-button.Test-line budget: the two suites add 82 net lines, recorded in
config/test-lines-allocations/196131-shell-topband-rhythm.txt(shared scalar unchanged).Also run:
native-desktop-titlebar,sidebar-users-filter,chat-header-connection,new-session-page.details-motion,native-session-sidebar,sidebar-pinned-agents-centeringe2e;chat-pane-header(unit + browser),chat-header-session-menu,cursor-policy,app-sidebar-session-filter,chat-responsivebrowser tests;pnpm lint:ui:styles,pnpm tsgo:ui, oxfmt/oxlint on touched files. Layout-shift probe entering/chat/mainfrom/sessionsat 400/820/1280 (web and native): no shift attributed to shell chrome (the only non-trivial entry at web 820 comes from transcript rows arriving, unchanged by this PR).Design feedback by @vincentkoc.
Work sessions
Linked for team reference; these sessions aren't public.
Worked on by