claude-code - 💡(How to fix) Fix Model selection mismatch: /model menu shows Opus 4.7 but sets Opus 4.6 [1 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#49609Fetched 2026-04-17 08:36:20
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Code Example

3. Opus (1M context)      Opus 4.7 with 1M context · Most capable for complex work

---

Set model to Opus 4.6 (1M context)
RAW_BUFFERClick to expand / collapse

Issue

When running the /model command, the menu lists:

3. Opus (1M context)      Opus 4.7 with 1M context · Most capable for complex work

However, after selecting option 3, the system responds with:

Set model to Opus 4.6 (1M context)

Expected

Selecting the "Opus (1M context)" option should set the model to Opus 4.7, as displayed in the menu.

Actual

The model is set to Opus 4.6 despite the menu indicating Opus 4.7 is available.

This appears to be either a labeling bug or a configuration issue where Opus 4.7 is not properly wired up in the model selection logic.

extent analysis

TL;DR

The most likely fix involves updating the model selection logic to correctly map the "Opus (1M context)" option to Opus 4.7.

Guidance

  • Review the model selection logic to ensure it accurately reflects the versions and contexts available, focusing on how the "Opus (1M context)" option is handled.
  • Verify the configuration files or databases that store model versions and their corresponding contexts to confirm that Opus 4.7 is properly listed and associated with the 1M context.
  • Check for any discrepancies between the menu generation code and the model setting code, as the issue might stem from a mismatch in how options are displayed versus how they are processed.
  • Consider adding logging or debugging statements to trace the flow of the model selection process to identify where the version gets set to 4.6 instead of 4.7.

Example

No specific code example can be provided without knowing the exact implementation details, but ensuring that the model selection logic correctly maps the user's choice to the intended model version is key.

Notes

The solution assumes that Opus 4.7 is indeed a valid and properly configured model version. If Opus 4.7 is not correctly set up or if there are versioning conflicts, additional steps may be necessary to resolve the issue.

Recommendation

Apply a workaround by manually configuring the model to Opus 4.7 if possible, or correct the model selection logic to properly set the model to Opus 4.7 when the "Opus (1M context)" option is selected, as this directly addresses the observed discrepancy.

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 Model selection mismatch: /model menu shows Opus 4.7 but sets Opus 4.6 [1 comments, 2 participants]