cmux-next sidebar: the footer becomes Back on a destination page
Summary
While a window shows a full-page destination, the sidebar's footer becomes one wide Back button in the same spot, a universal way back to where you were (Leo's T3 Code reference).
- Before: the footer (account avatar and Settings gear) stayed the same on a destination page. The way back was the title bar's Back, the trail, or picking a workspace again.
- Now: opening a destination (a top page other than Home, such as the App Store) swaps the footer band for a full-width "← Back" button. Clicking it leaves the page for the workspace the window showed. On the workspace the footer's items come back.
- Home keeps the footer: it is where you land, not a destination.
- The destination tiles at the top of the sidebar stay as they are. This only adds the Back affordance.
How it works:
SidebarModel.showsBackandonBack. The sidebar view lays Back over the footer band's spot (SidebarView+Back).- The window root reports each content swap (
onContentChange).WindowControllersetsshowsBackfrom the shown top page, so Back follows pages, workspace switches and a restored page alike. Back runsleaveTopPage().
Testing
SidebarFooterBackTests:- the footer shows its items until a destination opens;
- a destination turns the footer into one wide Back button in the footer's spot, and leaving restores the items;
- a click runs
onBack.
SidebarFooterBackWiringTests:- a destination page shows Back, and Back returns to the workspace the window showed;
- Home keeps the footer.
- Red at test commit 3320d1a18ea (fleet suite result in a comment). Green comes from this PR's CI swift test.
check-no-godfiles,check-concurrency,check-crash-safetyandcheck-l10npass locally.- Localization: one new string,
sidebar.footer.back("Back"), in all 21 locales, copied from the existing "Back" translations. - Captures come later: the reserved recording mini isn't named yet.
Changelog
- Added: On a full-page destination, the sidebar footer becomes a Back button that returns to your workspace.
🤖 Generated with Claude Code
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Turns the sidebar footer into a wide "← Back" button while a window shows a full-page destination, giving a universal way back to where you were.
- Before, the footer (account avatar and Settings gear) stayed the same on a destination page; now the footer band gives way to a Back button in the same spot.
- Back leaves the page for the workspace the window showed; Home keeps the footer since it's where you land, not a destination.
- The window root reports each content swap, so Back follows pages, workspace switches, and restored pages alike.
- Adds one new localizable string (
sidebar.footer.back, "Back") in all 21 locales, and tests cover layout, wiring, Home keeping the footer, and the button staying clean after drawing.
Bug Fixes
- Fixed the Back button redrawing every frame, which hung the test run; styling now happens on init, window moves, and appearance changes instead of in
updateLayer.
[!NOTE]
Medium Risk
Proxy policy changes affect how remote browser profiles route traffic (including loopback); behavior is tested but still network-isolation sensitive. Removing Cmd-K search chats is a user-visible regression unless another entry point replaces it.
Overview
This PR bundles three unrelated areas: CEF remote-store proxy policy, recent-chat project scoping, and removal of the agent pane’s Cmd-K “Search chats” sheet.
CEF shim: Per-profile Chromium proxy settings (fixed_servers to http://127.0.0.1:<port> with bypass_list <-loopback>) move into a CEF-free context_proxy_policy.h. shim_proxy.mm applies that helper and uses ContextProxyPortValid for port checks. A standalone context_proxy_test.cpp locks the behavior in.
Agent recents: AcpmuxRecentChats.newest gains an optional in project: filter (applied before the limit), plus a projects list derived from chat folders ordered by recent activity—supporting project-scoped recents in the app feed.
Agent pane search: The dedicated search-chats overlay is dropped: showSearchChats() / searchChats bridge command, ~160 lines of .acpmux-search* CSS in index.html, and search.* strings from locale bundles. Native action catalog entries for search chats may still exist elsewhere in the repo.
Reviewed by Cursor Bugbot for commit 1a93db017f5e83a6d28dcb0aa4bfac6e49f39377. Bugbot is set up for automated code reviews on this repo. Configure here.