{"version":"2.1.248","anchor":"disable-compact-now-takes-effect-mid-session","canonical_anchor":"disable-compact-now-takes-effect-mid-session","heading":"DISABLE_COMPACT now takes effect mid-session","tier":"use","area":"Compaction","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248\/e\/disable-compact-now-takes-effect-mid-session","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248","markdown":"### DISABLE_COMPACT now takes effect mid-session\n\nSetting or clearing DISABLE_COMPACT now takes effect immediately, not just at startup.\n\n**What**\n\nThe auto-compact suggestion and the `\/compact` command read `DISABLE_COMPACT` from the environment each time they are checked, instead of a snapshot taken at startup. Setting or clearing it during a session now changes behaviour immediately.\n\n**Details**\n\n- Decides whether the context-limit banner offers \"\/clear to continue\" or \"\/compact or \/clear to continue\".\n- The value goes through a truthiness helper at the point of use.\n- Separately, a startup check that read `CI` now passes a literal false.\n\n**Evidence**\n\n`\/compact or \/clear to continue`, `Context exceeds the ${l}-token limit by ${t} tokens`, `Free up context by summarizing the conversation so far`, `process.env.DISABLE_COMPACT`\n\n- Area: Compaction\n- Names: `DISABLE_COMPACT`, `\/compact`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 2\/5"}