{"version":"2.1.223","anchor":"auto-compact-enforces-an-assumed-context-window-for-unrecogn","canonical_anchor":"auto-compact-enforces-an-assumed-context-window-for-unrecogn","heading":"Auto-compact enforces an assumed context window for unrecognized models","tier":"use","area":"Compaction","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.223\/e\/auto-compact-enforces-an-assumed-context-window-for-unrecogn","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.223","markdown":"### Auto-compact enforces an assumed context window for unrecognized models\n\nUnknown model names now get an assumed context budget so auto-compact works instead of stalling.\n\n**What**\n\nWith 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.\n\n**Details**\n\n- the context-window resolver gained a new result `source: \"unknown-model\"`, which pins the window to the computed maximum\n- a notice names the model, states the assumed token budget, and points at the `modelOverrides` setting or an update\n- model overrides are consulted first via a new helper reading `eo().modelOverrides`, so an overridden model is not treated as unknown\n- `\/context` and `\/config` style output now label the figure \"default for an unrecognized model\", and \"default for this model\" for model-default sources\n- 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`\n\n**Evidence**\n\n`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 `\n\n- Area: Compaction\n- Names: `CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT`, `modelOverrides`, `DISABLE_AUTO_COMPACT`, `DISABLE_COMPACT`, `\/context`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 0\/5"}