[BUG] Default Model Not Updating Correctly After Switching
Resolved 💬 5 comments Opened Jul 17, 2025 by ruijayfeng Closed Aug 20, 2025
Problem Description
When using claude, after switching the model using the /model command, the default model does not update correctly upon re-entering claude. The specific steps and issue are as follows:
- Initial State: Enter
claude, and the default model isopus. - Switch Model: Use the
/model sonnetcommand to switch the model tosonnet. - Re-enter: Exit and re-enter
claude, and the default model is stillopus, not the previously switchedsonnet. - Manual Fix: It is necessary to manually edit the
setting.jsonfile in the.claudedirectory to set the default model tosonnet.
Expected Behavior
- After switching the model using the
/modelcommand, the default model should automatically be the one previously switched to, without needing to manually edit the configuration file.
Current Behavior
- Every time
claudeis entered, the default model is alwaysopus, even after switching the model using the/modelcommand.
Environment Information
- Operating System: Ubuntu 20.04
claudeVersion: lasted
Reproduction Steps
- Enter
claude.
````
$ claude
- Check the current default model:
````
$ /model
Output:
````
Current model: opus
- Switch the model to
sonnet:
````
$ /model sonnet
Output:
````
Model switched to sonnet
- Exit
claude.
````
$ exit
- Re-enter
claude.
````
$ claude
- Check the current default model again:
````
$ /model
Output:
````
Current model: opus
Temporary Solution
- Manually edit the
setting.jsonfile in the.claudedirectory to set the default model tosonnet.
Impact of the Issue
- Poor user experience, as users need to manually edit the configuration file each time they enter
claude. - There may be an issue with the configuration file not updating correctly or a problem with the command logic.
Priority
- Medium
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗