Improvements / v2.1.323
Warn about smaller context windows filling up
CHANGELOG · original
Changed sessions on other vendors' models with a smaller window: once full, they can fail every turn until /clear, so set CLAUDE_CODE_DISABLE_1M_CONTEXT=1 before they fill 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