feat(tui): expose favorite model cycling with Alt+C/Alt+X keybinds#16802
Open
Oerum wants to merge 2 commits intoanomalyco:devfrom
Open
feat(tui): expose favorite model cycling with Alt+C/Alt+X keybinds#16802Oerum wants to merge 2 commits intoanomalyco:devfrom
Oerum wants to merge 2 commits intoanomalyco:devfrom
Conversation
- Set default keybinds for favorite model cycling to Alt+C and Alt+X. - Unhide favorite cycle commands in the command palette. - Update TUI tips to include the new shortcuts. - Update keybind display to use 'Option' modifier on macOS. - Add tests for new defaults and macOS display logic. Closes anomalyco#16801
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
This was referenced Mar 10, 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.
Issue for this PR
Closes #16801
Type of change
What does this PR do?
Exposes the existing favorite model cycling feature in the TUI by providing default keybinds and making the commands visible in the palette.
Changes:
Alt+C(next) andAlt+X(previous).Ctrl+Pcommand palette.Keybind.toStringto render the meta modifier asoptionon macOS for better user experience.How did you verify your code works?
packages/opencode/test/config/tui.test.tsto verify the new default keybinds are correctly applied.packages/opencode/test/keybind.test.tsto verify macOS-specific modifier display logic.bun run src/index.ts):Alt+CandAlt+Xcorrectly cycle through favorited models.Screenshots / recordings
N/A - TUI internal command exposure
Checklist