Skip to content

fix: restore ability to bind keys for model_cycle_favorite model_cycle_favorite_reverse (resolves #5198) - #5202

Merged
rekram1-node merged 18 commits into
anomalyco:devfrom
ariane-emory:fix/allow-model-cycle-favorites-keybinds
Dec 15, 2025
Merged

rekram1-node merged 18 commits into
anomalyco:devfrom
ariane-emory:fix/allow-model-cycle-favorites-keybinds

Conversation

@ariane-emory

@ariane-emory ariane-emory commented Dec 7, 2025 •

Copy link
Copy Markdown
Contributor

The ability to bind keys for @kcrommett's model_cycle_favourite / model_cycle_favorite_reverse commands was seemingly lost in a commit that occurred a day after these commands were added.

This PR restores the ability to bind these commands to keys.

No default keybinding is assigned, therefore:

  • users who want keybindings for these commands may set their preferred keys in theiropencode.json files.
  • nothing changes for users who do not choose set keys for these commands in their opencode.json file.

Resolves #5198.

- Add model_cycle_favorite and model_cycle_favorite_reverse to Keybinds schema
- Add TUI handlers for favorite model cycling
- Add missing types to JS SDK KeybindsConfig
- Both keybinds default to 'none' to maintain no new default keybindings
- Total: 28 lines across 3 files

Resolves anomalyco#5198
@ariane-emory
ariane-emory marked this pull request as draft December 9, 2025 00:53
@ariane-emory
ariane-emory force-pushed the fix/allow-model-cycle-favorites-keybinds branch from 277b2aa to b32a5d3 Compare December 9, 2025 01:49
Restore the model_cycle_favorite and model_cycle_favorite_reverse keybindings
that were accidentally removed from the UI configuration. These commands allow
users to cycle through their favorite models with customizable keybinds.

Changes:
- Add model_cycle_favorite and model_cycle_favorite_reverse to Keybinds schema
  (default to 'none' to maintain no new default keybindings)
- Restore UI command handlers for favorite model cycling in app.tsx
- Regenerate SDK types to include the restored keybindings

Resolves anomalyco#5198
@ariane-emory
ariane-emory marked this pull request as ready for review December 9, 2025 01:51
@ariane-emory
ariane-emory marked this pull request as draft December 10, 2025 23:30
@ariane-emory

Copy link
Copy Markdown
Contributor Author

Corrupted by a bad merge, will fix.

@ariane-emory
ariane-emory force-pushed the fix/allow-model-cycle-favorites-keybinds branch from ae08dd6 to 2d7d73d Compare December 11, 2025 00:40
@ariane-emory

Copy link
Copy Markdown
Contributor Author

Fixed, uncorrupted.

@ariane-emory
ariane-emory marked this pull request as ready for review December 11, 2025 00:47
shuv1337 added a commit to shuv1337/shuvcode that referenced this pull request Dec 11, 2025
…to bind keys for model_cycle_favorite model_cycle_favorite_reverse

Resolved conflict: kept .github/workflows/sync-zed-extension.yml deleted (fork-specific)
@ariane-emory
ariane-emory force-pushed the fix/allow-model-cycle-favorites-keybinds branch from 4d7b109 to 7200148 Compare December 11, 2025 17:44
@ariane-emory
ariane-emory marked this pull request as draft December 13, 2025 00:50
@ariane-emory
ariane-emory force-pushed the fix/allow-model-cycle-favorites-keybinds branch from f843162 to 7200148 Compare December 13, 2025 01:59
@ariane-emory
ariane-emory marked this pull request as ready for review December 13, 2025 02:00
@ariane-emory
ariane-emory marked this pull request as draft December 14, 2025 11:26
@ariane-emory
ariane-emory marked this pull request as ready for review December 14, 2025 11:27
- Keep manual changes to config.ts and app.tsx
- Regenerate SDK types from OpenAPI spec instead of manual edits
- Update OpenAPI spec from config schema

This properly generates the model_cycle_favorite and model_cycle_favorite_reverse
keybind definitions instead of manually editing generated files.

Resolves the approach issue in PR anomalyco#5202 where generated files were being
manually edited instead of being regenerated from the source schema.
@ariane-emory

Copy link
Copy Markdown
Contributor Author

@rekram1-node Whatcha thinking about this one? I'd love to be able to have some keys that would let me start actually enjoying @kcrommett 's wonderful work on the favourite models feature, and I'm sure I'm not the only one who'd like to be able to start enjoying his work. :)

Just let me know if there's anything else I need to tidy up to make this PR mergable and I'll get straight to work on taking care of it... thanks!

@rekram1-node

Copy link
Copy Markdown
Collaborator

yeah should be good

@rekram1-node
rekram1-node merged commit 8fcc80b into anomalyco:dev Dec 15, 2025
3 checks passed
@ariane-emory

Copy link
Copy Markdown
Contributor Author

Fantastic, thanks very much!

@ariane-emory
ariane-emory deleted the fix/allow-model-cycle-favorites-keybinds branch December 15, 2025 22:06
nalin-singh pushed a commit to nalin-singh/opencode that referenced this pull request Dec 17, 2025
rekram1-node pushed a commit that referenced this pull request Dec 27, 2025
github-actions Bot pushed a commit to yuguorui/opencode that referenced this pull request Jan 18, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
androidand pushed a commit to androidand/opencode-skein that referenced this pull request Sep 19, 2026
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.

model_cycle_favorite / model_cycle_favorite_reverse commands are no longer keybindable

2 participants