cmux-next: agent pane has no chat search of its own (one palette)

Merged
TE
2mo ago
+11777-13692

The piece of #18144 that feat-cmux-next does not have yet. 8251d62d6a, 4b5d8e0886, 0c4175551e and 1665f740f6 already made Cmd-K clear the terminal only and made agentPane.searchChats open the command palette's chats page. The agent pane page still drew its own Search chats overlay (webviews SearchChats.tsx), and its Show all chats buttons opened that overlay, a second palette.

What

  • Removed the page's Search chats overlay: component, CSS, strings and tests.
  • Show all chats (sidebar and New Tab page) runs agentPane.searchChats through action.run, which the pane already allows (0c4175551e).
  • Removed the unused AgentPaneView.showSearchChats.
  • Rebuilt the agent pane bundle (build-agent-pane-web.sh --check passes).

Verification

  • Red: singleSidebar.test.tsx now expects no in-page chat search. It failed on base (the .acpmux-search-layer overlay rendered) and is committed before the fix.
  • Green: webviews typecheck and lint are clean, and all 1063 agent-pane web tests pass.
  • Swift: removed one dead method and its test call; PR CI covers the build.
  • Localization: no new strings; the overlay's strings are deleted.

Changelog

  • Removed: the agent pane's separate chat search overlay; Show all chats opens the command palette's chats page.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Summary by cubic

Removes the agent pane's separate in-page Search chats overlay so Cmd-K and Show all chats always open the command palette's chats page, leaving a single chat-search palette.

  • Deletes the overlay component, CSS, test files, locale strings, and the unused AgentPaneView.showSearchChats bridge method.
  • Show all chats buttons (sidebar and New Tab page) now route through agentPane.searchChats via the existing action path.
  • Drops the removed overlay's entries from the web test lists and regenerates the agent pane bundle.

[!NOTE]
Low Risk
UI removal and dead-code cleanup with chat search retained via the command palette; main risk is a missed caller still expecting the old overlay or bridge method.

Overview
Removes the agent pane’s in-page “Search chats” overlay so chat search is only available through the command palette (agentPane.searchChats), matching the earlier Cmd-K behavior.

Native: Deletes AgentPaneView.showSearchChats() and its searchChats bridge command—the app no longer toggles a web overlay from Swift.

Web bundle: Strips the .acpmux-search-* stylesheet (sheet, scrim, animations) from index.html and drops search.* strings from locale bundles. “Show all chats” is expected to call the existing palette action instead of opening this UI (per PR scope; not all of that wiring appears in the snippet diff).

Risk note: Any leftover callers of showSearchChats would need to use agentPane.searchChats; the action catalog entry for the palette remains.

Reviewed by Cursor Bugbot for commit 3ca0f2ec99ff25f29bab8ce2d12808284f4f641f. Bugbot is set up for automated code reviews on this repo. Configure here.