claude-code - 💡(How to fix) Fix [FEATURE] Single-key model cycling keybinding (re-file of #38966) [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#60514Fetched 2026-05-20 03:56:37
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3commented ×2

Fix Action

Fix / Workaround

  • chat:modelPicker (existing) — opens a picker; not a one-keystroke cycle.
  • /model <name> slash command — requires typing and an empty prompt.
  • UserPromptSubmit hooks triggering on trigger words — clever workaround but not a keybinding.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

There is no way to bind a single keystroke that cycles the active model, analogous to how Shift+Tab cycles permission modes via the chat:cycleMode action. Existing options all break flow:

  • Alt+P / Ctrl+Y opens the model picker — a menu that must be visually scanned and dismissed.
  • /model only works from an empty prompt.
  • The only model-related keybinding actions exposed today are chat:modelPicker, modelPicker:decreaseEffort, modelPicker:increaseEffort, and modelPicker:setAsDefault. None of them cycle models from the chat input in a single keypress.

This is a re-file of #38966, which was auto-closed by the stale-bot on 2026-05-06 with "Please open a new issue if this is still relevant." It is still relevant.

Proposed Solution

Add a chat:cycleModel action (bindable from the Chat context) that rotates through a user-configured list of pinned models on each keypress and wraps around.

Configuration (settings.json):

```json { "modelCycle": ["opus", "sonnet", "haiku"] } ```

Keybinding (keybindings.json):

```json { "context": "Chat", "bindings": { "alt+m": "chat:cycleModel" } } ```

The active model is already shown in the status line, so visual feedback is in place.

Alternative Solutions

  • chat:modelPicker (existing) — opens a picker; not a one-keystroke cycle.
  • /model <name> slash command — requires typing and an empty prompt.
  • UserPromptSubmit hooks triggering on trigger words — clever workaround but not a keybinding.

Priority

Medium - Workflow improvement

Feature Category

Interactive mode (TUI)

Use Case Example

Mid-session model switching is common: Sonnet for implementation, Opus for tricky design calls, Haiku for quick lookups. Shift+Tab already gives this UX for modes; models deserve the same.

Additional Context

Prior issue: #38966 (closed NOT_PLANNED by stale-bot, 2026-05-06).

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [FEATURE] Single-key model cycling keybinding (re-file of #38966) [2 comments, 2 participants]