Improvements / v2.1.323
Assume 1M context for unknown model IDs
CHANGELOG · original
Changed the context window assumed for a model ID that Claude Code doesn't recognize from 200K to 1M; use /autocompact to compact earlier, or CLAUDE_CODE_DISABLE_1M_CONTEXT=1 to keep 200K Open official changelog ↗ Documentation
Documentation excerpt
Turn off 1M context
To keep sessions at a 200K window, set CLAUDE_CODE_DISABLE_1M_CONTEXT=1 in your shell or in a settings file. Claude Code removes the [1m] model variants from the model picker. On models that run with the 1M window by default, such as the Fable models, Sonnet 5 and later, and Opus 4.7 and later, it also treats the model as having a 200K context window:
- With auto-compaction on, sessions compact at the 200K boundary through auto-compaction. Setting the auto-compact window above 200K doesn't lift the hold, because Claude Code caps that window at the model's context window.
- With auto-compaction off, sessions stop at the 200K boundary with the context-limit error instead of compacting.
Documentation snapshot · 2026-11-20