Unknown model names now get an assumed context budget so auto-compact works instead of stalling.
What's wrong with this entry?
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.
- 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
modelOverridessetting or an update - model overrides are consulted first via a new helper reading
eo().modelOverrides, so an overridden model is not treated as unknown /contextand/configstyle 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=1to restore the previous wait-for-the-API behaviour; enforcement is also skipped when auto-compact is off viaDISABLE_AUTO_COMPACTorDISABLE_COMPACT
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.