Claude Code v2.1.311 · 26 Oct 2026
DISABLE_COMPACT now covers teammates and gets special settings handling
Teammates now respect DISABLE_COMPACT , and the settings environment filter treats DISABLE_COMPACT specially
Use it now Tier: how much it should matter to you
3 Useful: my rating, 1 to 5
2 Signal: worth watching, 1 to 5
Compaction Area: what it touches
Improvements Kind: in v2.1.311, 26 Oct 26
What probably matters to you Section of the release
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.
DISABLE_COMPACT is added to a list that already holds CLAUDE_CODE_DISABLE_PROACTIVITY , CLAUDE_CODE_DISABLE_FILE_MENTIONS and CLAUDE_CODE_DISABLE_WEB_FETCH .
Why
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.
How sure we are
One source agrees One thing we can check says the same as this entry.
Anthropic's release notes agree Fixed agent teammates compacting their history when DISABLE_COMPACT is set
See this entry in the whole of v2.1.311 →
26 Oct 2026 · 425 entries, this one is #44.
Use it now29 You'll notice242 Nothing to try yet10 Under the hood144
Open the release →
Names in this entry
env DISABLE_COMPACT Unknown model names now get an assumed context budget so auto-compact works instead of stalling.
env CLAUDE_CODE_DISABLE_PROACTIVITY A --proactivity flag picks the proactivity level when Claude Code starts, and CLAUDE_CODE_DISABLE_PROACTIVITY turns the selector off
env CLAUDE_CODE_DISABLE_FILE_MENTIONS Claude Code now recognises a CLAUDE_CODE_DISABLE_FILE_MENTIONS environment variable, listed with other variables that turn features off
env CLAUDE_CODE_DISABLE_WEB_FETCH Setting the environment variable CLAUDE_CODE_DISABLE_WEB_FETCH turns off WebFetch, the tool Claude uses to download web pages
Anthropic's notes
Upstream's own release notes for v2.1.311 name something this entry names, so the two are probably about the same change. Probably: the pairing is made on a shared name rather than on the words around it.
Fixed agent teammates compacting their history when DISABLE_COMPACT is set
Fixed the rewind menu offering "Summarize from here" and "Summarize up to here" when DISABLE_COMPACT is set
Changed DISABLE_COMPACT in settings files and in a mod's $.env.set so they can only turn compaction off, not back on
Is this right?
0
0
Feedback
What's wrong with this entry?
Hard to understand Too vague Looks wrong Not relevant to me Too long Missing the detail I wanted Duplicate of another card
Clear Learned something new I can act on this Good catch
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
← Previous · 43 of 425
Typing ultrathink in a prompt can raise reasoning effort to xhigh
Use it now Effort
In v2.1.311 What probably matters to you release-page order
Next → · 45 of 425
Shell detection reworked, CLAUDE_CODE_SHELL validated, login shell reported
Use it now Shell