1M context window silently removed in CC v2.1.112 — affects all cache-fix users #34
cnighswonger
announced in
Announcements
Replies: 1 comment
-
Workaround (v2.1.112 only)We found a bypass in the CC source that forces the 1M window regardless of the server-side experiment flag: export DISABLE_COMPACT=1
export CLAUDE_CODE_MAX_CONTEXT_TOKENS=1000000Set these before launching CC. Confirmed working — Tradeoffs
Context from upstream duplicatesThe bot flagged three prior reports of the same regression:
This is a recurring pattern — Anthropic keeps toggling the flag. None of those issues have an official response yet. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
CC v2.1.112 silently downgrades the context window from 1M to 200K tokens. We confirmed this on a Max 5x account that had 1M on v2.1.97 — same session, same machine, no user action.
What happened
The
[1m]tag that CC appends to the model string (e.g.claude-opus-4-6[1m]) is gone in v2.1.112. This tag is controlled by a server-side experiment flag (context-1m-2025-08-07) gated through a function calledYX()in the CC source. Either the flag was removed from accounts, or the gating logic changed.The
CLAUDE_CODE_AUTO_COMPACT_WINDOWenv var exists but cannot override this — the code doesMath.min(modelWindow, configured), so if CC thinks the window is 200K, you are capped at 200K.There is no toggle in the claude.ai settings UI. The
/autocompactslash command shows in/contextoutput but returnsUnknown command.Why this matters for cache-fix users
At 200K, auto-compaction triggers at ~167K tokens. Long sessions that previously ran for hours now compact every 15-20 exchanges. Each compaction cycle:
The interceptor's cache-stability fixes are most valuable in long sessions with large context. Cutting the window to 1/5th undermines the use case.
Filed upstream
anthropics/claude-code#50083
If you are on Max 5x (or any plan that previously had 1M), check your
/contextoutput after updating to v2.1.112. If you see200kwhere you used to see1M, you are affected.cc @fgrosswig @deafsquad @ArkNill @wadabum @thepiper18 @JEONG-JIWOO
Beta Was this translation helpful? Give feedback.
All reactions