Skip to content

fix(bots): typing an agent's name in a bot home's + menu finds that chat - #48329

Merged
AmethystLiang merged 7 commits into
mainfrom
AmethystLiang/new-tab-agent-search
Nov 24, 2026
Merged

AmethystLiang merged 7 commits into
mainfrom
AmethystLiang/new-tab-agent-search

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

In a bot's home, typing an agent's name (like "codex") into the + menu didn't find anything useful: it offered files and web search, and the bot's own "New Codex Chat" sat further down, unfiltered. Now typing "codex" puts New Codex Chat first, and Enter starts it.

Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​124 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​124
Prod 11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​422 $\color{#cf222e}{\Huge{\mathbf{−}}}$​43 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​379

What Changed

  • Before: in a bot's home the + menu's search never listed agents, and the bot's chat list (New Home Chat, then a side chat per agent) stayed under the results whatever you typed. Enter opened the first file or web row.
  • After: while you type, the bot's chats become search results, matched and ranked like agents in any other workspace: above files, pages and web search; only the matching chats show; an agent that can't start here stays listed, disabled with its reason, and ranks last. "home" finds New Home Chat (still asks before resetting). With an empty search the list looks as before.
  • Picking one of these results starts the chat through the bot, same as clicking it in the list (shared hook).
  • If the chat you arrowed to disappears from the results, Enter does nothing until you pick again or edit the search, instead of falling through to the next row.
  • The tab bar now stores only whether the search has text, not the text itself, so typing no longer re-renders the tab bar on every keystroke.

Group homes and normal workspaces are unchanged.

Why

The bot's home hid agent results on purpose (its agents are reached through its chats) but never put the chats into the search in their place. Feeding the chats into the same ranked results gives one list with one Enter target, which is how the + search already behaves everywhere else. Filtering the old list in place would have left it under the file and web rows, with Enter still opening a file. Checked against how comparable products handle this.

Linked Issue

N/A (internal report).

Visual Proof

Seeded fixture, bot home, typing "codex":

codex-search.png

Testing

  • Driven in a real renderer through the new TabBarCreateEntry.bot-home fixtures (keyboard and pointer, light/dark, 300px): "codex", "claude", "home", "chat", one letter, and an unrelated word; Enter and click each start exactly one chat for the right bot and agent.
  • Unit tests: bot-new-chat-search-options.test.ts (matching, ranking, unavailable last) and tab-create-entry-network-selection.test.tsx (Enter stays inert when the picked chat drops out).
  • Every added test fails without this change.
  • Platforms: macOS.

Performance

Less work than before. The bot's chats are at most one Home Chat plus one row per supported agent, built only when the offered agents change; each keystroke runs the same matcher agents already use. The tab bar no longer re-renders per keystroke (it re-renders only when the search goes from empty to non-empty or back), which also skips rebuilding its agent menu while typing. No new subscriptions, IPC or disk work.

Risk

Level: Low. Only a bot's home changes, and only while its + search has text. If it went wrong, typing in a bot's home would show the wrong chats or none, and the empty-search list still works. A plain revert backs it out.

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

No saved data, settings or IPC changes; works the same for local and remote bot hosts (the chats launch through the existing bot RPC).

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Bot homes now offer searchable Home Chat and side-chat options in the tab-bar create menu. The options include localized search aliases and unavailable-agent details. Selecting a bot chat starts a bot session, and Home Chat launch requires confirmation. Static bot-chat items appear when no query is present; search results appear while a query is typed. Tests and fixtures cover option matching, selection behavior, and bot-session launch.

Merge Risk: Minimal · up to 588e5

Bot homes gain searchable chats in the + menu. No actionable merge-blocking risk was found in the reviewed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: typing an agent's name in a bot home's + menu now finds that agent's chat. It follows the fix(bots) convention and matches the changeset, which adds bot-chat search op…
Description check Passed The description follows the template closely. It has the ELI5, What Changed (before/after and mechanism), Why (with alternatives considered), Visual Proof with a screenshot, Testing with checklist ite…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: typing an agent's name in a bot home's + menu now finds that agent's chat. It follows the fix(bots) convention and matches the changeset, which adds bot-chat search options to the tab bar create menu.

Full details: Description check

Explanation

The description follows the template closely. It has the ELI5, What Changed (before/after and mechanism), Why (with alternatives considered), Visual Proof with a screenshot, Testing with checklist items and platform, a Performance statement, Risk with level and revert path, and a completed checklist. The Linked Issue section says N/A (internal report), which the template does not allow for outside contributors, though the author appears to be an internal contributor. The AI Disclosure section is left blank, which is acceptable for internal team members. The Visual Proof section is filled in, and the Review and Notes sections are present.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6bc2ed44-4ee0-4a3d-b68e-29782a8090d3
Commits

Reviewing files that changed from the base of the PR and between 4c57837 and 588e59d.

Files selected for processing: 2

  • src/renderer/src/component-fixtures/fixture-bots.ts
  • src/renderer/src/components/tab-bar/create-entry/TabBarCreateEntry.bot-home.fixture.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b146e5de-6e33-4821-b3cd-9c2e576fba17
Commits

Reviewing files that changed from the base of the PR and between 53f86a8 and cd5fbc6.

Files selected for processing: 12

  • src/renderer/src/components/bots/BotNewChatMenuItems.tsx
  • src/renderer/src/components/bots/bot-new-chat-search-options.test.ts
  • src/renderer/src/components/bots/bot-new-chat-search-options.ts
  • src/renderer/src/components/bots/use-bot-new-chat-launch.ts
  • src/renderer/src/components/tab-bar/create-entry/TabBarAgentPickerEntry.tsx
  • src/renderer/src/components/tab-bar/create-entry/TabBarCreateEntry.bot-home.fixture.tsx
  • src/renderer/src/components/tab-bar/create-entry/TabBarCreateEntryRow.tsx
  • src/renderer/src/components/tab-bar/create-entry/tab-agent-launch-options.ts
  • src/renderer/src/components/tab-bar/create-entry/tab-create-entry-network-selection.test.tsx
  • src/renderer/src/components/tab-bar/create-entry/tab-create-entry-network-selection.ts
  • src/renderer/src/components/tab-bar/create-menu/use-tab-bar-create-menu-controller.ts
  • src/renderer/src/components/tab-bar/strip/tab-bar-surface.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.

In a bot's home the + menu's search never listed the bot's chats: agents
were hidden there and the New Home Chat / side chat list stayed under the
results unfiltered, so typing "codex" offered files and web pages and
Enter opened the first of them.

The bot's chats are now the search's agent results in its home, matched
and ranked like agents elsewhere (above files and web, an unavailable one
last), and the plain list shows only while the search is empty.
… fixture

A bot chat picked with the arrows that leaves the results no longer hands
Enter to the next row (which could be New Home Chat). Typing only
re-matches the bot's chats instead of rebuilding them. The bot-home
fixture now seeds the bot's home and agents and checks ranking and Enter.
The tab bar re-rendered on every keystroke in the + menu search, rebuilding
its agent menu, though it only needs to know whether a query is typed; the
search keeps its own text. The bot-home fixture also restores the runtime
bridge exactly as it found it.
… tests

Keeps the offered agents with the render-phase previous-value pattern
instead of round-tripping them through a string, and reads the fixture's
bridge and RPC params through guards.
@AmethystLiang
AmethystLiang force-pushed the AmethystLiang/new-tab-agent-search branch from cd5fbc6 to 4c57837 Compare November 24, 2026 15:15
CI's static analysis rejects Reflect.get/apply; stubBots now takes extra
results and a call recorder, and the fixture reads the start params by
narrowing.
@AmethystLiang
AmethystLiang merged commit 8e200e0 into main Nov 24, 2026
55 checks passed
AmethystLiang added a commit that referenced this pull request Nov 25, 2026
This reverts commit 3c7980d.

Tabs folded to icons while there was still empty room in the strip.

Conflict resolution against later work:
- tab-bar-surface.tsx keeps #48329's bot-home search (botHome, filtered
  BotNewChatMenuItems) on top of the pre-#41896 strip.
- #48258's focus handback after the Pane Actions quick-command editor
  closes moves from the removed TabGroupStripActions onto the restored
  split-pane menu: the ⋯ trigger, else the active tab. Its store ownership
  check moves into is-group-focused-in-store.ts, and its e2e spec covers
  the split pane only, since an unsplit pane has no ⋯ again.
AmethystLiang added a commit that referenced this pull request Nov 25, 2026
This reverts commit 3c7980d.

Tabs folded to icons while there was still empty room in the strip.

Conflict resolution against later work:
- tab-bar-surface.tsx keeps #48329's bot-home search (botHome, filtered
  BotNewChatMenuItems) on top of the pre-#41896 strip.
- #48258's focus handback after the Pane Actions quick-command editor
  closes moves from the removed TabGroupStripActions onto the restored
  split-pane menu: the ⋯ trigger, else the active tab. Its store ownership
  check moves into is-group-focused-in-store.ts, and its e2e spec covers
  the split pane only, since an unsplit pane has no ⋯ again.
saltyfireball pushed a commit to saltyfireball/orca that referenced this pull request Nov 25, 2026
This reverts commit 3c7980d.

Tabs folded to icons while there was still empty room in the strip.

Conflict resolution against later work:
- tab-bar-surface.tsx keeps stablyai#48329's bot-home search (botHome, filtered
  BotNewChatMenuItems) on top of the pre-stablyai#41896 strip.
- stablyai#48258's focus handback after the Pane Actions quick-command editor
  closes moves from the removed TabGroupStripActions onto the restored
  split-pane menu: the ⋯ trigger, else the active tab. Its store ownership
  check moves into is-group-focused-in-store.ts, and its e2e spec covers
  the split pane only, since an unsplit pane has no ⋯ again.

(cherry picked from commit d71db4f)
(cherry picked from commit 3e3d59d9d1fcd98c01d9a48400b93cf7fd3fd2a7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant