Claude Code v2.1.223 · 5 Aug 2026
If your 1M-context disable flag has no effect on your model, startup now tells you and points at the real setting.
You'll notice Tier: how much it should matter to you
3 Useful: my rating, 1 to 5
0 Signal: worth watching, 1 to 5
Context Limits Area: what it touches
Improvements Kind: in v2.1.223, 05 Aug 26
What probably matters to you Section of the release
What
A second startup notice fires when the 1M-context disable flag is set but the limit is not enforced for the current model.
How sure we are
One source agrees One thing we can check says the same as this entry.
Anthropic's release notes agree Changed CLAUDE_CODE_DISABLE_1M_CONTEXT to hold every Claude model with a native 1M window to 200K via auto-compaction, not just a fixed…
See this entry in the whole of v2.1.223 →
5 Aug 2026 · 201 entries, this one is #47.
Use it now26 You'll notice99 Nothing to try yet21 Under the hood55
Open the release →
Names in this entry
env CLAUDE_CODE_DISABLE_1M_CONTEXT Set to 1 to disable 1M context window support. When set, 1M model variants are unavailable in the model picker, and Claude Code holds sessions on models with a native 1M window, such as Sonnet 5.5 and the Fable models, to a 200K window; see Extended context for how the hold is enforced. Useful for enterprise environments with compliance requirements. For its role in correcting the window for an unrecognized [1m] model ID, see Correct the window for a gateway or custom model ID
env CLAUDE_CODE_AUTO_COMPACT_WINDOW Set the auto-compact window in tokens, from 100000 to 1000000. Accepts a plain integer such as 500000 only: a value like 500k reads as 500 and clamps to the 100K minimum. The effective window is also capped at the model's context window. Takes precedence over the /autocompact command, the --autocompact flag, and the autoCompactWindow setting. The status line's used_percentage always measures against the model's full context window, so once this variable is set, that percentage no longer indicates when compaction will run
setting autoCompactWindow Set how full the context gets before Claude Code compacts
Anthropic's note
Upstream's own release notes for v2.1.223 name something this entry names, so the two are probably about the same change. Probably: the pairing is made on a shared name rather than on the words around it.
Changed CLAUDE_CODE_DISABLE_1M_CONTEXT to hold every Claude model with a native 1M window to 200K via auto-compaction, not just a fixed list; a startup warning now appears when auto-compaction isn't holding the session to 200K
Is this right?
0
0
Feedback
What's wrong with this entry?
Hard to understand Too vague Looks wrong Not relevant to me Too long Missing the detail I wanted Duplicate of another card
Clear Learned something new I can act on this Good catch
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
← Previous · 46 of 201
SDK stream emits a permission_denied system message
You'll notice SDK
In v2.1.223 What probably matters to you release-page order
Next → · 48 of 201
--resume-session-at help text clarified to chain entries
Use it now Sessions