Repository navigation
fix(ui): sidebar plus button appears brighter and boxed - #136608
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 3, 2026, 12:57 AM ET / 04:57 UTC. ClawSweeper reviewWhat this changesThe PR makes the sidebar New session control use the same header-icon styling as collapse and search, with browser E2E assertions for visual and optical-size parity. Merge readiness⛔ Blocked before merge - 3 items remain The branch cleanly unifies the sidebar header control styling and adds focused browser coverage; current main still has the reported mismatch. No patch defect was found, but this MEMBER-authored PR carries the protected Priority: P3 Review scores
Verification
How this fits togetherThe Control UI sidebar renders agent navigation and session actions. Its header controls feed user navigation and new-session creation, while shared layout CSS determines their visible states. flowchart LR
A[Sidebar header] --> B[Collapse and search actions]
A --> C[New session action]
B --> D[Shared header icon styling]
C --> D
D --> E[Visible sidebar controls]
Decision needed
Why: Repository policy keeps MEMBER-authored and protected-label PRs open for explicit maintainer handling even when the patch has no actionable finding. Before merge
Agent review detailsSecurityNone. PR surfaceSource -5, Tests +44. Total +39 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the UI-owner-approved implementation after relevant exact-head checks pass, retaining one shared sidebar-header icon style while preserving native-titlebar visibility behavior. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible: current main applies the floating shell-control class to New session while its adjacent sidebar controls use the sidebar icon treatment. Is this the best way to solve the issue? Yes: assigning one shared sidebar-header role at the renderer and CSS owner removes the special-case native override while preserving the separate desktop-control visibility contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d4bc84d7fd8a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…ost its border (#137317) The Control UI sidebar header controls read as misaligned: the new-session `+` sat 5px further from search than search sat from the sidebar-collapse control. The `+` used to render as a bordered chrome button, and #134365 gave it `margin-inline-start: 5px` as optical alignment so that filled box would not crowd the two borderless glyphs beside it. #136608 correctly re-based the `+` onto the borderless header-control base but kept the offset, so with no box left to sit inside it became pure extra gap. Delete the offset instead of tuning a new number: `.sidebar-brand__actions` already declares `gap`, so it becomes the single owner of control spacing and all three controls share one 28x28 hit box and one gap. The `+` stays borderless. Measured collapse -> search / search -> `+`: 0px / 5px before, 0px / 0px after, in Light, Dark and RTL. Closes #137316
…ost its border (openclaw#137317) The Control UI sidebar header controls read as misaligned: the new-session `+` sat 5px further from search than search sat from the sidebar-collapse control. The `+` used to render as a bordered chrome button, and openclaw#134365 gave it `margin-inline-start: 5px` as optical alignment so that filled box would not crowd the two borderless glyphs beside it. openclaw#136608 correctly re-based the `+` onto the borderless header-control base but kept the offset, so with no box left to sit inside it became pure extra gap. Delete the offset instead of tuning a new number: `.sidebar-brand__actions` already declares `gap`, so it becomes the single owner of control spacing and all three controls share one 28x28 hit box and one gap. The `+` stays borderless. Measured collapse -> search / search -> `+`: 0px / 5px before, 0px / 0px after, in Light, Dark and RTL. Closes openclaw#137316
What Problem This Solves
Fixes an issue where the sidebar's New session (+) control appeared brighter and boxed while the adjacent collapse and search controls were muted and borderless.
Why This Change Was Made
The New session link was using the floating shell-control style instead of the sidebar icon style introduced for the other header actions. All three actions now share one header-control visual role, while the existing native-shell visibility behavior remains limited to collapse and search.
User Impact
The plus icon now matches the color, optical size, stroke, background, hover treatment, and borderless surface of the other sidebar header controls.
Evidence
[12, 12, 9]) and passes after optical sizing ([12, 12, 12]).node scripts/check-changed.mjs -- ui/src/components/app-sidebar-render.ts ui/src/styles/layout.css ui/src/e2e/native-nav-responsive-layout.e2e.test.ts ui/src/e2e/native-nav-sidebar-toggle.e2e.test.ts— passed.