Skip to content

improve(ui): align sidebar and chat header controls - #125062

Closed
vyctorbrzezowski wants to merge 16 commits into
mainfrom
sidebar/header-topbar-identity
Closed

vyctorbrzezowski wants to merge 16 commits into
mainfrom
sidebar/header-topbar-identity

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Aug 17, 2026 •

Copy link
Copy Markdown
Member

Closes #122449

What Problem This Solves

Sidebar and chat-header controls were split across unrelated axes, making identity and navigation harder to scan. The collapsed desktop state also needed a stable recovery rail instead of overlapping the content header.

Why This Change Was Made

The expanded sidebar now owns New session, Search, and Collapse in its identity header. The collapsed web state keeps Expand and Search beside a divider, while the macOS app keeps Back, Forward, sidebar toggle, and Search in one stable cluster beside the traffic lights. The chat header groups project, session, creator, sharing, and participant identity before pane actions.

User Impact

Desktop and mobile navigation now preserve one predictable control order, session identity stays readable under constrained width, and sidebar-open and sidebar-closed layouts align without overlapping content. The native macOS cluster was verified in the app by the maintainer.

Evidence

  • pnpm ui:build passed; startup CSS is 44.4 KiB gzip (45.0 KiB limit).
  • Focused UI tests: 424 passed; focused browser E2E: 44 passed.
  • OPENCLAW_VITEST_MAX_WORKERS=2 node scripts/check-changed.mjs passed.
  • OpenCode /review with github-copilot/gpt-5.6-sol high: no findings.
  • Production LOC: +1158/-853 (net +305). Tests/test support: +1306/-436 (net +870). The production growth implements the shared sidebar/header identity and control layout; the closeout removed fixture, duplicate CSS, and PR-only process material.
  • New test files: 2. Both exercise behavior absent before this change: sidebar/header control ownership and chat identity grouping. Existing tests were consolidated into the workspace owner file rather than duplicated.
Desktop dark · 1440×900
Desktop dark: active chat and new-session page with the sidebar open and closed
Mobile dark · 390×844
Mobile dark: active chat and new-session page with the sidebar drawer closed and open

@clawsweeper

clawsweeper Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 17, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: L maintainer Maintainer-authored PR labels Aug 17, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review August 17, 2026 05:05
@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 17, 2026
@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 3, 2026, 3:08 AM ET / 07:08 UTC.

ClawSweeper review

What this changes

The PR moves Control UI navigation controls into the sidebar header, revises collapsed and macOS navigation chrome, and reorganizes chat-header identity controls.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 5 items remain

Keep open: this maintainer-authored, protected draft still removes the collapsed native New session action identified in the prior review, and its broader remaining scope needs a rebase onto current main.

Priority: P2
Reviewed head: 38de7b8993d2bf1503d1d2caf0edd6f4159dd03b
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The draft has useful UI coverage and supplied visual evidence, but a concrete native workflow regression and rebase conflict block readiness.
Proof confidence 🌊 off-meta tidepool Not applicable: Not applicable to this member-authored PR. Its body includes screenshots, but GitHub was unreachable in this environment, so their bytes were not independently inspected; this reviewer limitation is not a contributor-proof failure.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Not applicable to this member-authored PR. Its body includes screenshots, but GitHub was unreachable in this environment, so their bytes were not independently inspected; this reviewer limitation is not a contributor-proof failure.
Evidence reviewed 6 items Introduced native-action removal: The PR delta removes the titlebar New session callback and collapsed-only render, leaving the non-settings titlebar with only history, sidebar toggle, and search controls.
Previous behavior was access-gated: The PR base rendered New session only when the native sidebar was collapsed, passed through the existing Gateway access reason, and invoked the native-session handler.
The PR test encodes the regression: The introduced native-navigation E2E test explicitly expects no New session button in the collapsed titlebar, confirming this is intended branch behavior rather than an accidental omission.
Findings 1 actionable finding [P1] Restore New session in the collapsed native titlebar
Security None None.

How this fits together

Control UI navigation wraps the chat workspace across desktop web, narrow layouts, and native macOS hosts. Its controls create sessions, open search, change navigation state, and expose session identity.

flowchart LR
  A[Desktop web or macOS host] --> B[Navigation state]
  B --> C[Expanded sidebar header]
  B --> D[Collapsed controls]
  A --> E[Chat header]
  C --> F[New session and search]
  D --> F
  E --> G[Identity and pane actions]
Loading

Decision needed

Question Recommendation
Should this draft retain its broader native-titlebar and chat-header redesign now that the sidebar-header portion has landed separately? Narrow and rebase the remaining work: Keep only the distinct native and chat-header improvements, restore collapsed New session, and rebase them onto current main.

Why: The merged sidebar work intentionally excluded these remaining surfaces, while the draft’s native behavior conflicts with the established direct-session path.

Before merge

  • Restore New session in the collapsed native titlebar (P1) - This repeats the still-unfixed prior finding. The branch removes the only collapsed-titlebar New session control and changes its E2E expectation to absence, even though the base preserved that action with its Gateway access gate. Keep it while changing the cluster order.
  • Resolve merge risk (P1) - Merging the intended native-titlebar behavior would remove the access-gated direct New session control when the sidebar is collapsed.
  • Resolve merge risk (P1) - The draft is merge-conflicted and current main has moved the native titlebar owner, so a rebase must preserve the native action rather than replay the obsolete component shape.
  • Complete next step (P2) - Restore the collapsed, access-gated macOS New session action and rebase the remaining work onto current main before merge.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P1] Restore New session in the collapsed native titlebar — ui/src/components/macos-titlebar-controls.ts:35-50
Agent review details

Security

None.

PR surface

Source +305, Tests +870, Docs 0. Total +1175 across 54 files.

View PR surface stats
Area Files Added Removed Net
Source 26 1158 853 +305
Tests 27 1306 436 +870
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 54 2465 1290 +1175

Review metrics

Metric Value Why it matters
Production versus test delta production +1158/-853 (net +305); tests/test support +1306/-436 (net +870) This is a broad UI redesign, so preserving existing native controls matters more than its visual rearrangement.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #122449
Summary: This PR is a candidate implementation for the linked sidebar-controls request; the merged sidebar-only PR overlaps but does not supersede the remaining work.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Restore the native session action (recommended)
    Preserve the collapsed, access-gated New session button while reconciling the draft with main’s current titlebar runtime owner.
  2. Pause the broader redesign
    Do not merge this draft if maintainers prefer the separately landed sidebar design without these native-titlebar changes.

Technical review

Best possible solution:

Rebase the remaining native and chat-header work onto current main’s titlebar runtime owner, retain the collapsed access-gated New session action, and revalidate native-host and browser layouts.

Do we have a high-confidence way to reproduce the issue?

Yes—source-reproducible: the PR removes the collapsed native action and its E2E test expects that control to be absent. No target tests were run in this read-only review.

Is this the best way to solve the issue?

No: the intended alignment should preserve the established collapsed, access-gated New session path rather than delete it.

Full review comments:

  • [P1] Restore New session in the collapsed native titlebar — ui/src/components/macos-titlebar-controls.ts:35-50
    This repeats the still-unfixed prior finding. The branch removes the only collapsed-titlebar New session control and changes its E2E expectation to absence, even though the base preserved that action with its Gateway access gate. Keep it while changing the cluster order.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 8ffa76c28032.

Labels

Label justifications:

  • P2: The draft changes a user-visible Control UI navigation workflow with bounded blast radius.
  • merge-risk: 🚨 compatibility: It removes an existing access-gated native session-creation control from the collapsed state.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: Not applicable to this member-authored PR. Its body includes screenshots, but GitHub was unreachable in this environment, so their bytes were not independently inspected; this reviewer limitation is not a contributor-proof failure.

Evidence

What I checked:

  • Introduced native-action removal: The PR delta removes the titlebar New session callback and collapsed-only render, leaving the non-settings titlebar with only history, sidebar toggle, and search controls. (ui/src/components/macos-titlebar-controls.ts:35, 38de7b8993d2)
  • Previous behavior was access-gated: The PR base rendered New session only when the native sidebar was collapsed, passed through the existing Gateway access reason, and invoked the native-session handler. (ui/src/components/macos-titlebar-controls.ts:55, 34d7f44a348c)
  • The PR test encodes the regression: The introduced native-navigation E2E test explicitly expects no New session button in the collapsed titlebar, confirming this is intended branch behavior rather than an accidental omission. (ui/src/e2e/native-nav-sidebar-toggle.e2e.test.ts:348, 38de7b8993d2)
  • Native owner has moved on main: A later main commit renames the titlebar component to a runtime module, so this draft needs a real rebase rather than a direct merge of its old owner file. (ui/src/components/macos-titlebar-controls.runtime.ts, 1c40abdb63b8)
  • Merged sidebar overlap is partial: Merged PR improve(ui): move sidebar controls into agent header #134365 is contained by main, but its stated scope excludes this draft's broader native-titlebar and chat-header work; it is not a safe superseding close target. (eb0d8830e7dc)
  • Codex boundary check: Inspected the sibling Codex source for the repository-policy gate; the reviewed UI code has no affirmative Codex runtime, protocol, or harness dependency signal. (README.md:1, 3ba0f711642a888aec92a611a3f3b2211157ff89)

Likely related people:

  • vyctorbrzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Restore the collapsed, access-gated macOS New session control and its focused behavior coverage.
  • Rebase onto current main’s runtime titlebar owner and refresh exact-head UI validation.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-23T13:40:02.083Z sha 1042e3a :: needs changes before merge. :: [P2] Remove the retired live-subtitle claim | [P2] Remove the PR-specific iteration note
  • reviewed 2026-08-23T16:25:15.782Z sha edc4202 :: needs changes before merge. :: [P1] Restore the collapsed macOS New session action | [P2] Remove the retired live-subtitle claim | [P2] Remove the PR-specific iteration note
  • reviewed 2026-08-23T16:43:41.914Z sha 3c180ef :: found issues before merge. :: [P1] Restore the collapsed macOS New session action | [P2] Remove the retired live-subtitle claim | [P2] Remove the PR-specific iteration note
  • reviewed 2026-08-23T17:09:26.037Z sha ba77c51 :: needs changes before merge. :: [P1] Restore the collapsed macOS New session action | [P2] Remove the retired live-subtitle claim | [P2] Remove the PR-specific iteration note
  • reviewed 2026-08-23T19:19:39.953Z sha 53bc9e4 :: found issues before merge. :: [P1] Restore the collapsed macOS New session action
  • reviewed 2026-08-23T20:47:05.125Z sha 38de7b8 :: needs changes before merge. :: [P1] Restore the collapsed macOS New session action
  • reviewed 2026-08-29T11:56:45.200Z sha 38de7b8 :: found issues before merge. :: [P1] Keep New session in the collapsed native titlebar
  • reviewed September 3, 2026, 3:08 AM ET / 07:08 UTC sha unknown :: blocked before merge. :: [P1] Restore New session in the collapsed native titlebar

@vyctorbrzezowski
vyctorbrzezowski force-pushed the sidebar/header-topbar-identity branch from 9951e5b to 3b719a5 Compare August 23, 2026 11:49
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XL and removed size: L labels Aug 23, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 23, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the scripts Repository scripts label Aug 23, 2026
@vyctorbrzezowski

vyctorbrzezowski commented Aug 23, 2026 •

Copy link
Copy Markdown
Member Author

Light-mode proof of the same active-chat and new-session scenes:

Desktop light · 1440×900
Desktop light: active chat and new-session page with the sidebar open and closed
Mobile light · 390×844
Mobile light: active chat and new-session page with the sidebar drawer closed and open

@openclaw openclaw deleted a comment from clawsweeper Aug 23, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Aug 23, 2026
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 docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

improve(ui): move desktop sidebar controls into its header

1 participant