Add feature flag search and separate settings pages
Settings categories now replace the detail page instead of scrolling through one long stack. Only the selected category mounts, including a separate Import Browser Data page. Category navigation starts at the natural top; individual search results scroll to and highlight their row. Unsaved Save/Apply drafts remain owned by the Settings window. Initializing presenter readiness before window creation also preserves later CLI navigation when SwiftUI appears synchronously.
Feature Flags gains search across titles, keys, and descriptions, with case- and accent-insensitive token matching, clear and empty states, and filtering for debug-only settings. Override behavior is unchanged.
Validation: tagged build setpg succeeded at f2cf166a464. 27 focused settings tests pass on a fleet Mac. Computer Use screenshots verify category pages, search-result navigation, flag filtering, empty/clear states, and repeated CLI navigation on the final app. The localization audit passes across six catalogs and all nine macOS locales. App-target regression tests and the title-bar/import XCUITests are included; full app suites are left to GitHub CI.
The existing NotificationCenter publisher bridge remains because menu/CLI settings navigation requires synchronous delivery. Page construction and row scrolling now share that one navigation path without delayed scrolling tasks.
Also in this PR (merged from feat-cloud-sidebar-button, PR #12302)
- Sidebar Cloud button left of Help in the footer. It opens the right sidebar's Cloud tab, which now lists This Mac (every sidebar workspace, terminal or not) ahead of the Cloud machines. Gated by
CloudMachinesFeature.isEnabled(thecloud-machines-enabled-releaseflag plus the Beta opt-in) and by the newsidebar.showCloudButtonsetting (default on). Right-click the button > Hide Cloud Button; Settings > Sidebar > Show Cloud Button in Sidebar restores it. Also incmux.json, the settings template, search, anddocs/configuration.md. - Minimal mode footer: hovering the footer row reveals the hidden controls.
- Settings opens as a workspace pane (
PanelType.settings,SettingsPanel) through every entry point: menu, ⌘,, palette,cmux settings open. One Settings pane app-wide; a second open refocuses it. The pane mounts the sameSettingsWindowHostRoot, soSettingsNavigationRequeststill delivers section navigation. The window path remains as the fallback when no workspace can host a pane (tests, no main window).
Tests: SidebarCloudWorkspacesSwitcherTests (tree listing, footer policy incl. hover, setting round-trip, one Settings pane per workspace); MobileSurfaceKindMappingTests covers the new panel type. Note: SettingsBrowserBehaviorUITests and other XCUITests that expect a Settings window will need to target the pane.
Summary by CodeRabbit
-
New Features
- Added a dedicated Import Browser Data settings page with browser details, import controls, and an import-hint preference.
- Added a configurable Cloud button to the sidebar footer.
- Settings can now open in a workspace pane.
- Added search to the internal feature flags window.
- Settings drafts persist when switching categories.
-
Improvements
- Settings navigation now displays one focused category page at a time.
- Cloud and empty local workspaces are displayed more consistently.
-
Bug Fixes
- Updated browser import guidance and navigation.
- Improved immediate settings-window navigation readiness.