[Bug] System prompt outdated: Claude Opus 4.7 misidentified as Opus 4

Status Fixed / completed
Reported on v2.1.110
Maintainer reply None cached
Activity 3 comments · opened Apr 16, 2026 · closed Apr 29, 2026

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:

  1. Start a Claude Code session on claude-opus-4-7 (default on Max plan)
  2. Ask: "what model are you?"
  3. Assistant answers "Claude Opus 4" instead of "Claude Opus 4.7"
  4. 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

View original on GitHub ↗

3 Comments

github-actions[bot] · 4 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/25238
  2. https://github.com/anthropics/claude-code/issues/1377
  3. https://github.com/anthropics/claude-code/issues/23847

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

iblue · 4 months ago

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.

github-actions[bot] · 3 months ago

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.