Claude Code v2.0.77 ·
Claude Sonnet 4 with 1M Context Beta Support
EntryKind: in v2.0.77,
ChangesSection of the release
What
The max tokens calculation now correctly handles Claude Sonnet 4 models using the 1M context beta.
Details
- Previously only models with
[1m] in the name got 1M max tokens - Now also applies when
context-1m-2025-08-07 beta header is used with claude-sonnet-4 models - Enables proper token limits for Sonnet 4 + 1M context combinations
Evidence
R$() at line 1818 (max tokens calculation, contains "claude-sonnet-4" and T8A)
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
See this entry in the whole of v2.0.77 →