cmux-next: Search Chats as an addable sidebar item
Summary
Search Chats is now an item you can add to the sidebar. It opens the command palette's chats page (agentPane.searchChats). It is not a default: Home and the App Store stay the top two, as base's S1 left them, and there is no layout migration.
- New
search_chatssidebar built-in ("Search Chats", magnifying glass). The sidebar runs it asagentPane.searchChats, the same page Cmd-Shift-P's chats entry opens, so there is still one chats search. - Add to Sidebar… (
sidebar.item.add, palette, CLI and MCP) offers it assearch_chats. - Dropped from earlier revisions: the New chat and Search Chats defaults with their migration (they cut against S1's minimal sidebar), and the separate
agentChats.searchpage.
Testing
AgentChatSearchPageTests: the item runsagentPane.searchChats, has the right title and icon, and noagentChats.searchaction exists. It is offered bysidebar.item.addand absent from the defaults, whose top stays Home then the App Store.- Red on test commit a1c1705 and green on the fix; fleet suite results follow in a comment.
check-l10npasses. There are two new strings ("Search Chats" for the item and for the Add to Sidebar choice); the second reuses the first's 21 translations.
Changelog
- Added: Search Chats can be added to the sidebar (Add to Sidebar…); it opens the palette's chats page.
🤖 Generated with Claude Code
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Adds Search Chats as an addable sidebar item that opens the command palette's chats page (agentPane.searchChats), the same page Cmd-K uses.
- Search Chats is offered through Add to Sidebar…, not a default: Home and the App Store keep the top spots, so no layout migration is needed.
- The earlier standalone chats search page (
agentChats.search) is removed; the palette's chats page is now the only one.
[!NOTE]
Low Risk
Opt-in sidebar item reusing an existing palette action; no default layout migration or new search UI.
Overview
Adds an optional Search Chats sidebar built-in (search_chats) that users can pin via Add to Sidebar… (palette, CLI, MCP). Clicking it runs the existing agentPane.searchChats action—the same command-palette chats page—so chat search stays a single entry point.
The new item gets a magnifying-glass icon, localized title, and wiring through SidebarBuiltIn, SidebarBridge.builtInActions, and the sidebar action catalog enum. Default layout is unchanged (top remains Home then App Store); no migration. AgentChatSearchPageTests locks in the action mapping, catalog choice, and absence of a separate agentChats.search action.
Reviewed by Cursor Bugbot for commit 13df161d13753871406991e0b092e1b21796ea0d. Bugbot is set up for automated code reviews on this repo. Configure here.