Repository navigation
feat(bots): reorder bot agent picker - #51592
Merged
orca-remote-automation[bot] merged 1 commit intoNov 28, 2026
Merged
Conversation
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
Bot
force-pushed
the
orca-remote-automation/fix-new-chat-picker
branch
from
November 28, 2026 08:05
aa86b64 to
f7f28c2
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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
BOT_AGENTSinsrc/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:BOT_NEW_AGENT_PRIORITYkeeps the previous order: it equalsBOT_AGENTSonmain.newBotAgentuses 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.mobile/src/bots/new-bot-host-reads.ts).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.
Short and narrow (640×400), scrolled to the end:
pnpm check:changed: 43 checks pass.src/shared/bots/bot-agent-choices.test.tsandmobile/src/bots/new-bot-host-reads.test.tseach 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.