Opus 4.6/4.7 context window incorrectly detected as 200K instead of 1M
Status Closed — not planned
Maintainer reply None cached
Activity 2 comments · opened Apr 23, 2026 · closed Apr 23, 2026
Duplicate of #23432 — root cause analysis posted there.
Bug Description
Claude Code's context window detection function (zG in cli.js) always returns 200,000 for Opus models, even though claude-opus-4-6 and claude-opus-4-7 natively support 1,000,000 tokens (no beta header required).
See #23432 for tracking.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗