[Bug] System prompt outdated: Claude Opus 4.7 misidentified as Opus 4
Bug Description
The Claude Code system prompt contains the static line:
"The most recent Claude model family is Claude 4.6 and 4.5.
Model IDs — Opus 4.6: 'claude-opus-4-6', Sonnet 4.6: 'claude-sonnet-4-6',
Haiku 4.5: 'claude-haiku-4-5-20251001'."
However, claude-opus-4-7 is already GA and documented at:
https://support.claude.com/en/articles/11940350-claude-code-model-configuration
Impact: Sessions running on claude-opus-4-7 misidentify themselves as
"Opus 4" when users ask which model they are, because the system prompt's
"most recent family" enumeration is stale and the assistant interprets
the "-7" suffix as an internal build tag rather than version 4.7.
Reproduction:
- Start a Claude Code session on claude-opus-4-7 (default on Max plan)
- Ask: "what model are you?"
- Assistant answers "Claude Opus 4" instead of "Claude Opus 4.7"
- When shown the support article, the assistant acknowledges the error
Suggested fix: update the "most recent Claude model family" paragraph in
the system prompt to include Opus 4.7, and treat claude-opus-4-7 as the
current default recommendation for new applications.
Environment:
- Model: claude-opus-4-7
- Platform: Windows 11 Pro, Git Bash
- Claude Code CLI (latest)
Environment Info
- Platform: win32
- Terminal: cursor
- Version: 2.1.110
- Feedback ID: 4dec2876-3cec-434f-802c-9763e6859432
3 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
There is no use in reporting bugs. They will be closed without any action anyways. Tried many times and even spent a few hours debugging. It's pointless.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.