{"version":"2.1.299","anchor":"autocompact-window-correction-docs-link-for-gatewaycustom-m","canonical_anchor":"autocompact-window-correction-docs-link-for-gatewaycustom-m","heading":"Autocompact warning points gateway users to a context window fix","tier":"notice","area":"Compaction","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.299\/e\/autocompact-window-correction-docs-link-for-gatewaycustom-m","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.299","markdown":"### Autocompact warning points gateway users to a context window fix\n\nA new autocompact warning links to the docs on correcting the context window for a gateway or custom model id\n\n**What**\n\nAutocompact is the step where Claude Code summarises the conversation automatically as it gets close to the model's context window, the amount of text the model can hold at once. Claude Code has a new warning about autocompact. It is written to the log, and in headless mode, where Claude Code runs without its interactive screen, the warning text is also printed.\n\nThe warning links to the documentation section on correcting the window for a gateway or custom model id. A gateway is a service that sits between Claude Code and the model provider.\n\n**Why**\n\nIf you reach Claude through a gateway or use a custom model id, Claude Code can misjudge how large the context window is. This warning tells you where to find the fix.\n\n- Area: Compaction\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: both\n- Heads-up: no"}