Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.223 ·

Auto-compact enforces an assumed context window for unrecognized models

Unknown model names now get an assumed context budget so auto-compact works instead of stalling.

Use it now Notable New Features
JSON All of v2.1.223
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
CompactionArea: what it touches
New FeaturesKind: in v2.1.223,
What probably matters to youSection of the release
What

With auto-compact on and a model name Claude Code does not know, the session is now kept within an assumed token budget instead of waiting for the API to report a window.

Details
  • the context-window resolver gained a new result source: "unknown-model", which pins the window to the computed maximum
  • a notice names the model, states the assumed token budget, and points at the modelOverrides setting or an update
  • model overrides are consulted first via a new helper reading eo().modelOverrides, so an overridden model is not treated as unknown
  • /context and /config style output now label the figure "default for an unrecognized model", and "default for this model" for model-default sources
  • set CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT=1 to restore the previous wait-for-the-API behaviour; enforcement is also skipped when auto-compact is off via DISABLE_AUTO_COMPACT or DISABLE_COMPACT
Evidence

CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT=1 restores the previous wait-for-the-API behavior., CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT, is not a model this version of Claude Code recognizes, so auto-compact will keep this session within

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Read from
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's release notes agreeFixed modelOverrides keys that aren't Anthropic model IDs being treated as the session's canonical model ID; unknown keys are now ignored as…
The name it cites is new in this buildNew in this build: CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT

See this entry in the whole of v2.1.223 →

Feedback