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

Resolved 💬 3 comments Opened Apr 16, 2026 by alanceloth 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 ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗