What probably matters to youSection of the release
Unclear It is not stated what the condition is, so it is unclear when DISABLE_COMPACT set in settings takes effect.
What
DISABLE_COMPACT is an environment variable that turns off compaction, which is summarising the conversation to free space. It is now handled in two more places:
Teammates that run inside the same process now check that DISABLE_COMPACT is not set before compacting their history. Before, they compacted whenever the conversation passed the auto-compact size limit.
The filter that sorts environment variables supplied through settings now treats DISABLE_COMPACT specially, depending on a condition that was not resolved. It also checks against a new set of names.
If you set DISABLE_COMPACT to stop compaction, teammates now respect it too. Whether a DISABLE_COMPACT set in your settings takes effect may depend on the new condition.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed sinceAnthropic's documentation has since written up DISABLE_COMPACT, on Model configuration.* If the ID resolves to a model Claude Code recognizes, the variable takes effect only when you also set [`DISABLE_COMPACT`](https://code.claude.com/docs/en/env-vars), which disables all compaction.model-configsee the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not stated what the condition is, so it is unclear when `DISABLE_COMPACT` set in settings takes effect.
Anthropic's documentation agreesAnthropic's documentation has since written up DISABLE_COMPACT, on Model configuration.
Anthropic's release notes agreeFixed agent teammates compacting their history when DISABLE_COMPACT is set