[Bug] Model setting removed from user-level settings.json when switching models in active session

Status Fixed / completed
Reported on v2.1.234
Maintainer reply None cached
Activity 1 comment · opened Aug 18, 2026 · closed Aug 18, 2026

Bug Description
When changing the model in a running Claude Code session—for example, switching from Opus to Sonnet—the model setting in the user-level settings.json is removed. For example, if the user-level settings.json contains: "model": "opus" and I switch the model to Sonnet within a running Claude Code session, the model entry in the user-level settings.json disappears entirely. I believe this is a bug. Changing the model for the current session should not delete the model configuration from the user-level settings.json. Please investigate and fix this behavior.

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 2.1.234
  • Feedback ID: 0e1ccfd1-4743-446a-a9bc-bdf8698c3ab5

Errors

[]

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗