You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(bots): typing an agent's name in a bot home's + menu finds that chat - #48329
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":
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)
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: 4
Check name
Status
Explanation
Title check
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
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
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.
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.
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.
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.
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
What Changed
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":
Testing
TabBarCreateEntry.bot-homefixtures (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.bot-new-chat-search-options.test.ts(matching, ranking, unavailable last) andtab-create-entry-network-selection.test.tsx(Enter stays inert when the picked chat drops out).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
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
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)