This issue was written with Claude Code (Claude Opus 4.5)
Description
When "model": "opus" is configured in ~/.claude/settings.json, Claude Code ignores this setting on startup and defaults to Sonnet instead.
Additionally, even when changing the model to Opus via /status → Config menu, this setting does not persist. On the next startup, it reverts to the default (currently Sonnet), making it impossible to maintain Opus usage across sessions.
Steps to Reproduce
- Set
"model": "opus" in ~/.claude/settings.json
- Start Claude Code
- Observe that the model is Sonnet, not Opus
- Alternatively: Use
/status → Config to set Opus
- Restart Claude Code
- Observe that the model has reverted to Sonnet
Expected Behavior
Claude Code should start with the model specified in settings.json (Opus in this case) and persist model selection across sessions.
Actual Behavior
Claude Code starts with Sonnet regardless of the settings.json configuration or previous session settings.
Configuration
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"model": "opus",
...
}
Environment
- OS: macOS (Darwin 24.6.0)
- Claude Code: Latest version
Possibly Related Issues
This issue was written with Claude Code (Claude Opus 4.5)
Description
When
"model": "opus"is configured in~/.claude/settings.json, Claude Code ignores this setting on startup and defaults to Sonnet instead.Additionally, even when changing the model to Opus via
/status→ Config menu, this setting does not persist. On the next startup, it reverts to the default (currently Sonnet), making it impossible to maintain Opus usage across sessions.Steps to Reproduce
"model": "opus"in~/.claude/settings.json/status→ Config to set OpusExpected Behavior
Claude Code should start with the model specified in
settings.json(Opus in this case) and persist model selection across sessions.Actual Behavior
Claude Code starts with Sonnet regardless of the
settings.jsonconfiguration or previous session settings.Configuration
{ "$schema": "https://json.schemastore.org/claude-code-settings.json", "model": "opus", ... }Environment
Possibly Related Issues