{"version":"2.1.334","anchor":"autocompact-window-default-and-one-time-notice-for-1m-models","canonical_anchor":"autocompact-window-default-and-one-time-notice-for-1m-models","heading":"Auto-compact window gets a new default, an offer dialog, a cap and a settings row","tier":"notice","area":"Compaction","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/autocompact-window-default-and-one-time-notice-for-1m-models","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Auto-compact window gets a new default, an offer dialog, a cap and a settings row\n\nThe auto-compact window gains a lower default for 1M models with a notice, a choice prompt, a cap on the threshold and a settings row\n\n**Unclear.** Which accounts and models receive the lower default is decided remotely and not stated.\n\n**What**\n\nAuto-compact is when Claude Code summarises the conversation on its own once the context window (how much of the conversation the model can see at once) gets full enough. The auto-compact window is how full it gets before that happens, set with `\/autocompact`. This release adds several pieces around it:\n\n- A default window computed for certain models, with a one-time notice: \"Autocompact now defaults to {size} tokens\" and \"Auto will now compact near {size} tokens instead of 1M.\" The notice points to `\/autocompact`.\n\n- That default applies only on a fixed list of entry points (`cli`, `sdk-cli`, `claude-vscode` and others) when no default is served remotely. Its values come from remote configuration (`windows`) and a `hostPercent` rollout.\n\n- `CLAUDE_CODE_AUTO_COMPACT_WINDOW` still overrides it.\n\n- An offer that asks about the window for models set to auto, with the choices 'auto all', 'auto model', 'keep all' and 'not now'. The answer is saved to `autoCompactWindow` under `modelSettings`, and Claude Code keeps per-user lists of who was asked, tried it or was told.\n\n- Result messages include \"Autocompact settings kept\" and \"Autocompact unchanged \u00b7 \/autocompact to set a size\".\n\n- A new settings row, 'Auto-compact window', to pick auto or a fixed token size. It is locked when `CLAUDE_CODE_AUTO_COMPACT_WINDOW` is set (\"Set by CLAUDE_CODE_AUTO_COMPACT_WINDOW. Unset it to change this setting here.\") or when policy settings manage it.\n\n- The point at which compaction fires can now be capped by a limit (`compactAtMost`); before it had no cap. The percentage override can also be raised by a computed value, and `tengu_peppy_gosling` is still read with a fallback of 0.\n\nNothing has been read about `tengu_peppy_gosling` or the gate around the offer, so whether they are active is unknown.\n\n**Why**\n\nOn models with a 1M-token context window, a lower default means compaction can happen much earlier in a long session than before, which changes how much history stays in view and what long sessions cost. Look out for the notice, and use `\/autocompact` or the settings row if you prefer a different size.\n\n- Area: Compaction\n- Tier: You'll notice\n- Useful: 4\/5\n- Signal: 4\/5\n- Scope: individual\n- Heads-up: yes"}