[BUG] When open claude code with --system-prompt, the model will be wrong.
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?
I am using the latest claude version, which is v2.0.34.
When I add a --system-prompt when using claude, it will be use claude 3.5 by default. But if I didn't give the param, the model will be right.
<img width="1688" height="598" alt="Image" src="https://github.com/user-attachments/assets/7cdb2ed9-46ec-4742-b33c-fda1c1e31bca" />
What Should Happen?
It should use the model I choose, Because the claude 3.5 is too young.
Error Messages/Logs
Steps to Reproduce
1、claude --model claude-sonnet-4-5 --system-prompt "Please answer to the user honestly." "What's your claude version?"
2、claude --model claude-sonnet-4-5 "What's your claude version?"
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.34
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗