[BUG] /model command sets wrong model — selecting "opus" sets "haiku"
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
The /model slash command selects the wrong model. When choosing "opus", it sets the model to "haiku" instead.
Additionally, the model selector toggles between only two options and always defaults back to claude-haiku-4-5-20251001[1m], which fails with a
400 error on Claude Max subscriptions because the long context (1M) beta is not available.
Steps to reproduce
- Run /model
- Select "opus"
- Observe it sets the model to "haiku"
Observed behavior
❯ /model opus
⎿ Set model to haiku
❯ /model
⎿ Set model to claude-haiku-4-5-20251001[1m] (default)
❯ /model
⎿ Set model to Haiku 4.5
The default model claude-haiku-4-5-20251001[1m] also produces:
API Error: 400 {"type":"error","error":{"type":"invalid_request_error",
"message":"The long context beta is not yet available for this subscription."}}
Expected behavior
/model opus should set the model to Claude Opus, and /model should cycle through all available models (Opus, Sonnet, Haiku).
Environment
- Claude Code v2.1.79
- Subscription: Claude Max
What Should Happen?
/model opus should set the model to Claude Opus, and /model should cycle through all available models (Opus, Sonnet, Haiku).
Error Messages/Logs
Steps to Reproduce
- Run /model
- Select "opus"
- Observe it sets the model to "haiku"
Observed behavior
❯ /model opus
⎿ Set model to haiku
❯ /model
⎿ Set model to claude-haiku-4-5-20251001[1m] (default)
❯ /model
⎿ Set model to Haiku 4.5
The default model claude-haiku-4-5-20251001[1m] also produces:
API Error: 400 {"type":"error","error":{"type":"invalid_request_error",
"message":"The long context beta is not yet available for this subscription."}}
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
v2.1.79
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗