-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Feature]: Mac app titlebar buttons should follow sidebar state (search + new session when collapsed) #105129
Copy link
Copy link
Closed
Labels
P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.Low-priority cleanup, docs, polish, ergonomics, or speculative work.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.enhancementNew feature or requestNew feature or requestimpact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.User-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maintainerMaintainer-authored PRMaintainer-authored PRmaturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.
Description
Metadata
Metadata
Assignees
Labels
P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.Low-priority cleanup, docs, polish, ergonomics, or speculative work.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.enhancementNew feature or requestNew feature or requestimpact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.User-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maintainerMaintainer-authored PRMaintainer-authored PRmaturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.
Type
Fields
Priority
None yet
Summary
Make the macOS dashboard window's titlebar buttons follow the web sidebar state: keep back/forward while the sidebar is expanded, and swap in search (command palette) + new session while it is collapsed.
Problem to solve
The Mac app titlebar always shows sidebar-toggle + back + forward next to the traffic lights. With the sidebar collapsed there is no quick way to search sessions (command palette) or start a new session without first reopening the sidebar; with the sidebar expanded, the back/forward arrows sit bunched against the toggle instead of at the sidebar edge where sibling macOS apps place them.
Proposed solution
Three titlebar buttons in each state, driven by a sidebar-state report from the Control UI:
[toggle]left,[back][forward]right-aligned to the sidebar's right edge.[toggle][search][+]clustered left; search opens the command palette,+starts a new session.[toggle][back][forward]layout.The web UI posts
{collapsed, width}over a newopenclawNavWKScriptMessage; the native buttons dispatchopenclaw:native-open-search/openclaw:native-new-sessionevents into the page, mirroring the existingopenclaw:native-toggle-sidebarcontract.Alternatives considered
Rendering back/forward inside the web sidebar header: rejected because the native drag regions overlay that row and WKWebView owns the back/forward list (enabled-state via KVO is already native).