[BUG] Opus 4.7 [1M] context capped at 500K on Max x20 — server-side enforcement persists across fresh install (org_level_disabled stale flag)
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
On my Max x20 plan, Opus 4.7 [1M] context window is capped at exactly
500K tokens instead of the documented 1M, while Sonnet 4.6 (1M) and
Haiku 4.5 (200K) are correctly applied on the same machine and same
login. The 500K is not a documented tier for Max plans.
The cap persists across all of the following remediation attempts:
/extra-usageactivation (no effect; this command targets billing
overflow, not context cap restoration)
/logout→/login(no effect)- Manual deletion of
cachedExtraUsageDisabledReasonline in
~/.claude.json (server immediately re-writes the line on next
launch — matches Issue #47019 pattern)
- Fresh install on a separate PC with a new login (same 500K cap
applied, conclusively confirming the issue is bound to my account
at the server side, not client-side cache)
~/.claude.json shows cachedExtraUsageDisabledReason: "org_level_disabled",
which is incorrect — my Max x20 subscription is verified active at
claude.ai/settings/billing (next renewal 2026-05-08).
Anthropic Help Center chatbot (Fin AI Agent) confirmed this is an
entitlement sync bug requiring backend reset, but cannot perform the
action and only refers ban appeals which do not apply to my case.
What Should Happen?
Opus 4.7 [1M] should provide the full 1M context window as included
in the Max x20 plan per the 1M context GA announcement:
https://claude.com/blog/1m-context-ga
Expected /context output for Opus 4.7 [1M]: xxx / 1m tokens
Actual: xxx / 500k tokens
Error Messages/Logs
/context output (Opus 4.7 [1M]):
230.7k / 500k tokens (46%) ← should be 230.7k / 1m
/context output (Sonnet 4.6, same machine, same session):
102.2k / 1m tokens ← correct (1M applied)
/context output (Haiku 4.5):
102.2k / 200k tokens ← correct (200K applied)
/usage output (current week):
Current week (all models): 50% used ← no quota exhaustion
Current session: 55% used ← within 5h window
Resets Apr 30, 3pm KST
~/.claude.json flags found:
cachedExtraUsageDisabledReason: "org_level_disabled"
opusProMigrationComplete: true
sonnet1m45MigrationComplete: true
unpinOpus47LaunchEffort: true
migrationVersion: 12
lastReleaseNotesSeen: 2.1.119
~/.claude/backups/.claude.json.backup.* (5 files) contain:
tengu_amber_redwood2: "500000"
(now reset to empty string in current ~/.claude.json body — suggests
prior Statsig cohort variant push, matches `tengu_amber_*` naming
convention; see Issue #33580 for `tengu_amber_quartz` precedent)
Steps to Reproduce
- Sign in with a Max x20 plan account (verified active at
claude.ai/settings/billing)
- Run
claudein the terminal - Run
/model claude-opus-4-7[1m]to select Opus 4.7 [1M] - Run
/context— cap shown as 500k instead of 1m - Switch to Sonnet 4.6 with
/model claude-sonnet-4-6 - Run
/context— correctly shows 1m - Switch to Haiku 4.5
- Run
/context— correctly shows 200k
Reproducibility: 100% on this account.
Also reproduced on a separate Windows PC with a fresh Claude Code
install and a new login session — same 500K cap, confirming
server-side account-bound enforcement.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
Same version (2.1.119) was working with 1M context until 2026-04-26 ~22:00 KST. Issue is server-side, not version-related.
Claude Code Version
2.1.119
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
Account: Max x20 ($200/month), verified active at https://claude.ai/settings/billing
(next renewal 2026-05-08).
Duration: 36+ hours since 2026-04-26 late-night KST.
Anthropic Help Center chatbot (Fin AI Agent) transcript confirmed
the diagnosis (verbatim quotes):
- "on Max plans, Opus is automatically upgraded to 1M context with
no additional configuration needed"
- "The 500K cap... isn't a documented tier for Max plans"
- "The org_level_disabled flag... suggests an entitlement sync issue
between our systems"
- "the problem likely requires backend investigation to reset the
incorrect org_level_disabled flag on your account"
The chatbot stated it cannot escalate to backend or generate a ticket
number, and referred me to the Account Ban Appeal form, which is not
applicable to my case (account is not disabled — only the entitlement
flag is incorrectly cached server-side).
Related Issues (same/similar entitlement sync pattern):
- #43872 — Max x20 blocked from Opus 1M
- #45449 — Max plan rejected from opus[1m]
- #47019 — hasExtraUsageEnabled stale, server overwrites manual edits
- #46780 — 1M billed as Extra Usage; refunds issued
- #41930 — Widespread regression since 2026-03-23, no formal communication
- #49931 — Opus 4.7 [1M] /context shows incorrect denominator
- #34178 — 1M context gated by Statsig feature flag (DISABLE_TELEMETRY
side effect)
- #33580 —
tengu_amber_*Statsig feature-gate naming convention
reference
Reference: Anthropic April 23 Postmortem
(https://www.anthropic.com/engineering/april-23-postmortem)
Request:
- Investigate the
org_level_disabledflag cached against my account
and reset it. The flag is incorrect for an active Max x20 subscription.
- Check whether my account is enrolled in any A/B test cohort
(e.g., tengu_amber_redwood2 Statsig variant) that imposes a 500K
cap, and opt me out.
- If applicable, refund any extra-usage charges incurred during this
period (since the cap reduction may have forced workflows that
should have been covered under the Max plan).
I can provide additional logs, full /context screenshots, redacted
~/.claude.json snippets, and the chatbot transcript upon request via
private channel.
Showing cached comments. Read the full discussion on GitHub ↗
14 Comments
+1 having same issue
+1 — reproducing the exact same bug.
Environment
Symptom
/contextforclaude-opus-4-7[1m]showsxxx / 500k tokensinstead of the documented 1M.Same flags present in
~/.claude.json:```json
"cachedGrowthBookFeatures": {
...
"tengu_amber_redwood2": "500000",
...
},
"cachedExtraUsageDisabledReason": "org_level_disabled",
"opusProMigrationComplete": true,
"unpinOpus47LaunchEffort": true,
"migrationVersion": 12
This confirms the bug is OS-independent (Linux + Windows both reproduced) and account-bound on the server side, as described by the OP.
Please escalate the backend reset for affected Max accounts.
Update: the workaround does work on Linux, contrary to what the OP observed on Windows.
Steps:
/exitfrom Claude Code.~/.claude.json— removecachedGrowthBookFeatures.tengu_amber_redwood2and root-levelcachedExtraUsageDisabledReason.claude./contextimmediately reportsxxx / 1m tokensforclaude-opus-4-7[1m].This suggests the server-side enforcement might not be strictly account-bound, or the rewrite happens on a longer interval than the OP's reproduction window. Will report back if the cap returns on next launch.
A backend reset of the
org_level_disabledflag is still needed — manual JSON edits are not a sustainable fix for end users.Reproducing on Max 5x / Windows 11 Pro / Claude Code 2.1.119.
/context reports 500k despite model showing "Opus 4.7 (1M context)".
~/.claude.json contains:
"cachedGrowthBookFeatures": {
...
"tengu_amber_redwood2": "500000",
...
}
cachedExtraUsageDisabledReason is already null on my account.
Tried the Hobbit233 fix:
The server rewrote tengu_amber_redwood2: "500000" back into the file on launch (file size grew 29897 → 31080 bytes, mtime updated). Same Windows failure mode the OP described — local edit doesn't hold.
Adding Max 5x to the confirmed-affected list (OP: Max x20, Hobbit233: Max). Affects all Max tiers, not just x20.
Update: tried the full Hobbit233 fix on Windows 11 / Max 5x / Claude Code 2.1.119 — removing both cachedGrowthBookFeatures.tengu_amber_redwood2 AND root-level cachedExtraUsageDisabledReason (the latter was
already null, removed the key entirely).
After /exit + restart, the server rewrote both keys back into ~/.claude.json. File grew 31109 → 31350 bytes. /context still reports 500k.
Confirms the full procedure (not just the partial) fails on Windows.
+1 — reproducing on macOS / Max plan / Claude Code 2.1.121.
Environment
claude-opus-4-7[1m]Symptom
Effective auto-compact window measured at ~100k via threshold backsolving from compaction event logs (
compactMetadatain session JSONL). Compactions fire at ~67-72kpreTokens, which back-solves to a 100k window using the binary's threshold formula:threshold = min(0.95 * (window - 20000), (window - 20000) - 13000).Flags in
~/.claude.json:Note my
tengu_amber_redwood2value is"400000"(different from OP's"500000"and other reporters) — suggesting per-account Statsig cohort assignment rather than a single broken value.Workaround found: Switching to
claude-opus-4-6[1m]bypasses the gate entirely — the binary'sea_function only checkstengu_amber_redwood2forclaude-opus-4-7. Opus 4.6 withCLAUDE_CODE_AUTO_COMPACT_WINDOW=1mcorrectly provides the full 1M window.Confirming Elusive7733's workaround
Max 5x / Windows 11 Pro / Claude Code 2.1.121 (it had silently auto-updated)
Fresh session still showed 500k max context.
After setting /model claude-opus-4-6[1m], /context correctly shows 1M max context.
Note: within the same session, when switching from "claude-opus-4-6[1m]" (with correct 1M max context) then using command /model opus[1m], it reverts back to model "claude-opus-4-7[1m]" (still with incorrect 500k context)
Demonstrating Elusive7733's workaround does not work as a workaround for Opus 4.7.
hey 👋 please use the
/autocompactcommand to configure the larger context window in these cases (there should be a notification on compaction about this new command when it happens)Update from OP —
/autocompactworkaround confirmedFollowing @hackyon-anthropic's suggestion,
/autocompact 1min a fresh session restores the full 1M window:/contextnow reports135.1k / 1m tokens (14%)onclaude-opus-4-7[1m].Env: Claude Code 2.1.121 / Win11 Pro / Max x20.
This is a client-side workaround, not a fix.
~/.claude.jsonstill containscachedExtraUsageDisabledReason: "org_level_disabled"andcachedGrowthBookFeatures.tengu_amber_redwood2: "500000"after the workaround — both are re-written by the server on launch.Cohort values reported in this thread vary per account (
"500000"for OP and @Hobbit233,"400000"for @Elusive7733), and the gate is scoped toclaude-opus-4-7only — consistent with a per-account Statsig cohort assignment rather than a uniform default.Workaround for affected Max users (cc @arrev-dev @Hobbit233 @melanthius99 @Elusive7733):
Still outstanding:
org_level_disabledon affected accountstengu_amber_redwood2Keeping this issue open until those land.
Thanks @hackyon-anthropic for the immediate workaround.
+1, reproducing this on Max 5x ($100/mo) plan, not just Max 20x.
no ANTHROPIC_BETAS or ANTHROPIC_MODEL env vars, no project-level overrides.
Same symptom as the original report — confirms this isn't limited to Max 20x.
Per the docs, "On Max, Team, and Enterprise plans, Opus is automatically
upgraded to 1M context with no additional configuration" — Max 5x should
qualify.
Happy to share a redacted ~/.claude.json or full /context screenshot if useful.
+1, same issue on Max x20 since 2026-04-27.
Environment
/contextdenominators~/.claude.jsonflags---
Update: After having the 500K bug for 10 days it now became 700K
Adding another reproduction: Windows Desktop + mobile, logout/login resolves it
Same issue here on Claude Desktop for Windows (v2.1.121) and the Claude mobile app.
Symptom: "Out of extra usage" error blocks all usage entirely, despite plan limits showing capacity remaining (5-hour: 16%, Weekly all-models: 80%). The only way to recover is to log out and log back in — this clears the stale state and restores access to remaining plan allocation immediately.
What the logs show:
config.json contains "cachedExtraUsageDisabledReason": "org_level_disabled" persisting between sessions
Repeated IndexedDB: Internal error opening backing store errors in the web log, preventing fresh entitlement fetches
When the app can't fetch a fresh usage state and falls back to the stale cached flag, it blocks all usage — not just extra usage
What differs from OP: Logout/login does resolve it for me (temporarily), whereas OP reports it had no effect. But it recurs and requires another logout/login cycle each time.
Platform: Windows 11, Claude Desktop 2.1.121 + Claude mobile (same account)
Core bug: org_level_disabled (extra usage exhausted) is being treated as "block all usage" rather than "block only extra usage spend, fall back to remaining plan allocation." These should be independent.
Having the same issue
Same issue yet different limit.
Environment
Issue
Exact same issue except I am capped at 600k tokens instead of 500k
Closing for now — inactive for too long. Please open a new issue if this is still relevant.