Skip to content

feat(bots): reorder bot agent picker - #51592

Merged
orca-remote-automation[bot] merged 1 commit into
mainfrom
orca-remote-automation/fix-new-chat-picker
Nov 28, 2026
Merged

orca-remote-automation[bot] merged 1 commit into
mainfrom
orca-remote-automation/fix-new-chat-picker

Conversation

@orca-remote-automation

@orca-remote-automation orca-remote-automation Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Owner request: move one agent up in a bot's new-chat picker, to sit directly below the second entry, because it's popular. This is a display-only reorder.

What changed

  • The shared bot agent display order (BOT_AGENTS in src/shared/bots/bot-record-schemas.ts) moves one entry from seventh to third place. Every bot agent list reads this order, so they stay consistent:
    • the bot's + menu side-chat list and its search results
    • the agent choice in New bot and bot settings, also served to the phone
    • the phone's New bot list, the Bots feature-tip icon row, and the CLI's list of valid agents
  • The non-bot new-tab agent picker uses its own order and is unchanged.
  • A new bot's automatic agent is unchanged. BOT_NEW_AGENT_PRIORITY keeps the previous order: it equals BOT_AGENTS on main. newBotAgent uses it when no configured default is ready, instead of the first displayed choice. That covers the desktop New bot form and the default the host sends the phone.
  • When an older host sends no default, the phone works it out with the same priority (mobile/src/bots/new-bot-host-reads.ts).
  • Zod enum membership is unchanged, so stored bots and RPC payloads behave the same. No new state or IPC.

Verification

Tested in the real dev app on an isolated profile with all seven bot agents detected and a bot created. I captured the + menu in both themes at a wide window (1280×800) and a narrow one (640×800). In a short window (400px tall) the menu scrolls (scrollHeight 413 > clientHeight 351), and every item through Agent settings can be reached.

Dark Light
Wide (1280×800) dark wide light wide
Narrow (640×800) dark narrow light narrow
Short (400px tall), scrolled to the end dark short scrolled light short scrolled

Short and narrow (640×400), scrolled to the end: dark short narrow scrolled

  • pnpm check:changed: 43 checks pass.
  • src/shared/bots/bot-agent-choices.test.ts and mobile/src/bots/new-bot-host-reads.test.ts each gain one assertion. A new bot's automatic agent follows the preserved priority, not display order, on the desktop/host and on the phone with an older host. Both fail if the fallback goes back to display order.

Performance

None, in practice. The priority list is built once at module load (22 entries), and picking a new bot's agent scans that short list once. Nothing changes on render or other hot paths.

Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​13 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​13
Prod 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​24 $\color{#cf222e}{\Huge{\mathbf{−}}}$​10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​14

Move one agent up in the shared bot agent display order, per owner request.
A new bot's automatic agent keeps the previous priority, through a separate
priority list used by the desktop, the host's default answer and the phone's
read of an older host.
@orca-remote-automation orca-remote-automation Bot changed the title feat(bots): list Antigravity right after Codex in bot agent pickers feat(bots): reorder bot agent picker Nov 28, 2026
@orca-remote-automation
orca-remote-automation Bot force-pushed the orca-remote-automation/fix-new-chat-picker branch from aa86b64 to f7f28c2 Compare November 28, 2026 08:05
@orca-remote-automation
orca-remote-automation Bot merged commit 6c2d586 into main Nov 28, 2026
58 of 59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants