Repository navigation
feat(ui): unify sidebar scrolling, move new-thread to brand row, keep Mac titlebar search - #109694
Conversation
… Mac titlebar search - Sidebar body is now the single scroller (nav + sessions); brand row and footer stay pinned, scroll fades move to the body, and the thumb sits flush against the resize divider via a shared --sidebar-pad-x inset. - New-thread button moves next to search in the brand row; the Sessions header keeps only sort. Agent-chip plus stays (agent-scoped). - macOS web-chrome hosts show search + new-thread in the titlebar permanently; the brand-row copies hide only while that strip is visible (compact drawers keep them). - Update card slims to a single-line pill. Ref: sidebar UX feedback (scroll inset, pinned nav, button placement).
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1be87cdd6a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <button | ||
| class="sidebar-brand__icon sidebar-new-session" | ||
| type="button" | ||
| ?disabled=${!this.connected} | ||
| @click=${() => this.onOpenNewSession?.(chipAgentId)} |
There was a problem hiding this comment.
Restore the mobile new-session affordance
When .shell--mobile-nav is active, layout.mobile.css still hides .sidebar-brand__actions, so this newly added brand-row button is not visible in the compact/mobile drawer. Because this same commit removes the Sessions-header .sidebar-session-new button, those layouts lose the top new-session affordance that was supposed to move next to search; users must discover the footer agent-chip plus instead. Please either surface this brand action in mobile drawers or keep an equivalent header action there.
Useful? React with 👍 / 👎.
|
Codex review: needs real behavior proof before merge. Reviewed July 17, 2026, 2:13 AM ET / 06:13 UTC. Summary PR surface: Source -44, Tests +69. Total +25 across 17 files. Reproducibility: not applicable. This PR proposes a user-facing layout improvement rather than repairing behavior defined by an existing contract; the before state is nevertheless clearly illustrated in the supplied screenshots. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Keep the single sidebar-body scroller and consolidated action ownership, then add a redacted screenshot or short recording from the real macOS app showing the expanded sidebar with working titlebar search and new-session controls. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes a user-facing layout improvement rather than repairing behavior defined by an existing contract; the before state is nevertheless clearly illustrated in the supplied screenshots. Is this the best way to solve the issue? Yes, subject to native proof: assigning scrolling to the common body and removing duplicate top-level actions is cleaner than retaining nested height caps, independent scroll state, or parallel new-session buttons. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c742caee4b61. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source -44, Tests +69. Total +25 across 17 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Merged via squash.
|
… Mac titlebar search (openclaw#109694) * feat(ui): unify sidebar scrolling, move new-thread to brand row, keep Mac titlebar search - Sidebar body is now the single scroller (nav + sessions); brand row and footer stay pinned, scroll fades move to the body, and the thumb sits flush against the resize divider via a shared --sidebar-pad-x inset. - New-thread button moves next to search in the brand row; the Sessions header keeps only sort. Agent-chip plus stays (agent-scoped). - macOS web-chrome hosts show search + new-thread in the titlebar permanently; the brand-row copies hide only while that strip is visible (compact drawers keep them). - Update card slims to a single-line pill. Ref: sidebar UX feedback (scroll inset, pinned nav, button placement). * fix(ui): refresh i18n raw-copy baseline for slim update pill separator
… Mac titlebar search (openclaw#109694) * feat(ui): unify sidebar scrolling, move new-thread to brand row, keep Mac titlebar search - Sidebar body is now the single scroller (nav + sessions); brand row and footer stay pinned, scroll fades move to the body, and the thumb sits flush against the resize divider via a shared --sidebar-pad-x inset. - New-thread button moves next to search in the brand row; the Sessions header keeps only sort. Agent-chip plus stays (agent-scoped). - macOS web-chrome hosts show search + new-thread in the titlebar permanently; the brand-row copies hide only while that strip is visible (compact drawers keep them). - Update card slims to a single-line pill. Ref: sidebar UX feedback (scroll inset, pinned nav, button placement). * fix(ui): refresh i18n raw-copy baseline for slim update pill separator
What Problem This Solves
The Control UI sidebar splits scrolling across two nested regions: the pinned nav block caps at 60% height with its own hidden scrollbar, and only the session list actually scrolls, so pinned nav permanently eats vertical space. The scrollbar also sits ~10px inside the draggable resize divider, floating detached from the edge it belongs to. New-thread affordances are scattered (Sessions-header plus, agent-chip plus, macOS titlebar plus only while collapsed, logo click), and on macOS the titlebar search/new-thread buttons vanish whenever the sidebar is expanded. The update card is a chunky two-line banner in an otherwise slim footer.
Why This Change Was Made
.sidebar-shell__body): only the brand row and footer stay pinned. Deletes the desktop 60% nav cap and the mobile drawer's duplicate of it; scroll-fade masks and scroll-state tracking move up to the body.--sidebar-pad-xso the two values cannot drift (desktop 10px, drawer 16/14px).User Impact
The sidebar scrolls as one surface with the scrollbar directly at the resize divider; pinned routes no longer consume fixed space. New thread and search are always in the same top-row spot (web) or the titlebar (Mac app). The update notice takes one line instead of three. No config, API, or gateway changes.
Evidence
node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts ui/src/components/sidebar-update-card.test.ts ui/src/app/app-host.test.ts ui/src/components/resizable-divider.test.ts→ 4 files, 133 tests passed. Codex-side run also coveredform-controls.browser.test.ts+ e2e selector updates (138 passed).Key after-state details: in "Web sidebar (scrolled)" the pinned routes scroll away while the Sessions header sticks and the brand row (logo · search · plus · collapse) stays; in "macOS titlebar" the brand row is logo-only with search + plus hosted beside back/forward.