Opus 4.6/4.7 context window incorrectly detected as 200K instead of 1M
Resolved 💬 2 comments Opened Apr 23, 2026 by jmgeorgh 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 ↗