feat: Added keyboard shortcut for model selection#12922
Open
longyuxi wants to merge 2 commits intoCherryHQ:mainfrom
Open
feat: Added keyboard shortcut for model selection#12922longyuxi wants to merge 2 commits intoCherryHQ:mainfrom
longyuxi wants to merge 2 commits intoCherryHQ:mainfrom
Conversation
Signed-off-by: Yuxi Long <longyuxi@live.com>
kangfenmao
approved these changes
Feb 14, 2026
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.
What this PR does
Before this PR:
There was no keyboard shortcut to open the model selector. Users had to click the model selector button in the chat navbar to switch models.
After this PR:
Pressing
Cmd+Shift+M(orCtrl+Shift+Mon Windows/Linux) opens the model selector popup, allowing users to switch models without leaving the keyboard. The shortcut appears in the Keyboard Shortcuts settings page and is editable/toggleable like other shortcuts.Why we need it and why it was done in this way
Model switching is a frequent action during chat sessions. A keyboard shortcut makes this faster and more accessible for power users.
The following tradeoffs were made:
Chat.tsxalongside other chat shortcuts (search_message_in_chat,rename_topic,new_topic), keeping all chat-scoped shortcuts co-located.SelectModelPopup.show()API and model filter logic asSelectModelButton, ensuring identical behavior to the click-based flow.The following alternatives were considered:
SelectModelButtoncomponent itself. This was rejected because the shortcut needs access to the assistant context fromChat.tsx, and the existing pattern places all chat shortcuts directly in that component.Breaking changes
None. This is an additive feature with no changes to existing behavior or APIs.
Special notes for your reviewer
shortcutsarray, which is the standard pattern used by all prior shortcut additions.select_modelafter thetoggle_new_contextshortcut.Checklist
Release note