Skip to content

feat(ui): unify sidebar scrolling, move new-thread to brand row, keep Mac titlebar search - #109694

Merged
steipete merged 2 commits into
mainfrom
claude/web-ui-sidebar-nav-52c152
Jul 17, 2026
Merged

steipete merged 2 commits into
mainfrom
claude/web-ui-sidebar-nav-52c152

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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

  • One scroller for nav + sessions (.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.
  • The scrollbar hugs the drag divider: the body cancels the shell's horizontal padding via a shared --sidebar-pad-x so the two values cannot drift (desktop 10px, drawer 16/14px).
  • New-thread moves next to search in the brand row (disabled while disconnected, same semantics as the removed Sessions-header plus). The agent-scoped plus on the footer chip stays; the Sessions header keeps only sort.
  • macOS web-chrome hosts show search + new-thread in the titlebar permanently next to back/forward (previously only while the sidebar was collapsed). The brand-row copies hide only in layouts where that strip is visible — compact drawers keep them, matching the plain-browser drawer. The titlebar plus stays connection-ungated on purpose, mirroring the native ⌘N menu item.
  • Update card slims to a single-line pill (icon · title · version · dismiss), logic unchanged.

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

  • Focused tests: 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 covered form-controls.browser.test.ts + e2e selector updates (138 passed).
  • Autoreview (Codex, gpt-5.6-sol, xhigh): clean — "patch is correct (0.9)". Two earlier findings addressed: compact drawers keep brand search/new-thread (hide is scoped to layouts where the titlebar strip is visible), and the ungated titlebar plus is documented as intentional ⌘N parity.
  • Diff: non-test LOC net negative (−57 before review fixes).
  • Screenshots (dev gateway with sanitized demo data; macOS shots simulated in a browser via the native web-chrome flag + injected titlebar clearance):
Before After
Web sidebar (top) before web top after web top
Web sidebar (scrolled) before web scrolled after web scrolled
macOS titlebar (simulated) before native after native

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.

… 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).
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Jul 17, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +113 to +117
<button
class="sidebar-brand__icon sidebar-new-session"
type="button"
?disabled=${!this.connected}
@click=${() => this.onOpenNewSession?.(chipAgentId)}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jul 17, 2026
@clawsweeper

clawsweeper Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 17, 2026, 2:13 AM ET / 06:13 UTC.

Summary
The PR makes the sidebar body the single nav-and-session scroller, moves new-session beside search, keeps search and new-session visible in macOS titlebar chrome, and compacts the update notice.

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: 🦐 gold shrimp
Proof: 🦐 gold shrimp
Patch quality: 🐚 platinum hermit
Result: blocked until stronger real behavior proof is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Capture the expanded-sidebar titlebar actions in the actual macOS app and verify both buttons interact correctly.
  • Update the PR body with the redacted native proof so ClawSweeper can reassess the final head.

Proof guidance:

  • [P1] Needs stronger real behavior proof before merge: The web sidebar before/after screenshots show the visible improvement, but the macOS titlebar portion is simulated rather than demonstrated in the actual native app; add a redacted native screenshot or recording, update the PR body, and request @clawsweeper re-review if a fresh review does not trigger automatically.

Risk before merge

  • [P1] The actual macOS native host has not been shown after the change, so titlebar spacing, drag-region interaction, and visible control placement remain unproven outside the simulated browser host.

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P1] No automated repair is indicated; the remaining merge gate is real native-host evidence that must come from an actual macOS setup.

Security
Cleared: The UI, CSS, tests, and raw-copy baseline changes introduce no concrete security or supply-chain concern.

Review details

Best 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 changes

Label changes:

  • add P3: This is a focused, low-blast-radius Control UI ergonomics and layout improvement rather than an urgent workflow regression.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The web sidebar before/after screenshots show the visible improvement, but the macOS titlebar portion is simulated rather than demonstrated in the actual native app; add a redacted native screenshot or recording, update the PR body, and request @clawsweeper re-review if a fresh review does not trigger automatically.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The web sidebar before/after screenshots show the visible improvement, but the macOS titlebar portion is simulated rather than demonstrated in the actual native app; add a redacted native screenshot or recording, update the PR body, and request @clawsweeper re-review if a fresh review does not trigger automatically.

Label justifications:

  • P3: This is a focused, low-blast-radius Control UI ergonomics and layout improvement rather than an urgent workflow regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The web sidebar before/after screenshots show the visible improvement, but the macOS titlebar portion is simulated rather than demonstrated in the actual native app; add a redacted native screenshot or recording, update the PR body, and request @clawsweeper re-review if a fresh review does not trigger automatically.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The web sidebar before/after screenshots show the visible improvement, but the macOS titlebar portion is simulated rather than demonstrated in the actual native app; add a redacted native screenshot or recording, update the PR body, and request @clawsweeper re-review if a fresh review does not trigger automatically.
Evidence reviewed

PR surface:

Source -44, Tests +69. Total +25 across 17 files.

View PR surface stats
Area Files Added Removed Net
Source 9 88 132 -44
Tests 8 84 15 +69
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 17 172 147 +25

What I checked:

  • Unified scroll owner: The branch moves scroll events and fade state to .sidebar-shell__body, while session-list markup stops owning a second scrolling region. (ui/src/components/app-sidebar.ts:170, dcf6f43be6df)
  • Observer follows canonical scroller: Resize observation now targets the sidebar body, keeping overflow-state calculation aligned with the element that actually scrolls. (ui/src/components/app-sidebar-session-data.ts:421, dcf6f43be6df)
  • New-session ownership: The brand row gains the connected-state-gated new-session action and the Sessions header removes its duplicate action, leaving one canonical top-level web control. (ui/src/components/app-sidebar.ts:78, dcf6f43be6df)
  • Native titlebar behavior: The macOS titlebar renders search and new-session whenever it is not history-only; the explanatory comment records why native new-session remains connection-independent. (ui/src/components/macos-titlebar-controls.ts:42, dcf6f43be6df)
  • Responsive and interaction coverage: Focused component and E2E changes cover brand action targeting, body overflow state, native titlebar visibility, new-session navigation, and updated selectors. (ui/src/components/app-sidebar.test.ts:311, dcf6f43be6df)
  • Real-proof limitation: The PR provides genuine dev-gateway web screenshots, but explicitly describes the macOS titlebar screenshots as simulated with the web-chrome flag and injected clearance rather than captured from the native app. (dcf6f43be6df)

Likely related people:

  • BunsDev: Recent release history credits repeated Control UI session, history, and responsive-layout work, making this a strong routing candidate for sidebar behavior review. (github.com) (role: recent Control UI and session-surface contributor; confidence: medium; files: ui/src/components/app-sidebar.ts, ui/src/styles/layout.css, ui/src/styles/layout.mobile.css)
  • steipete: Beyond authoring this proposal, recent repository history shows extensive main-branch and release integration work around Control UI and macOS app surfaces. (github.com) (role: recent UI and macOS integration contributor; confidence: medium; commits: 1be87cdd6ac4, dcf6f43be6df; files: ui/src/components/app-sidebar.ts, ui/src/components/macos-titlebar-controls.ts, ui/src/styles/layout.css)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 9d33890 into main Jul 17, 2026
193 of 201 checks passed
@steipete
steipete deleted the claude/web-ui-sidebar-nav-52c152 branch July 17, 2026 06:50
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 18, 2026
… 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
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
… 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
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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant