[BUG] Opus 4.7 [1M] context capped at 500K on Max x20 — server-side enforcement persists across fresh install (org_level_disabled stale flag)

Status Closed — not planned
Reported on v2.1.119
Maintainer reply ✓ Yes — hackyon-anthropic
Activity 15 comments · opened Apr 27, 2026 · closed Jun 8, 2026
💡 Likely answer: A maintainer (hackyon-anthropic, collaborator) responded on this thread — see the highlighted reply below.

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-usage activation (no effect; this command targets billing

overflow, not context cap restoration)

  • /logout/login (no effect)
  • Manual deletion of cachedExtraUsageDisabledReason line 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

  1. Sign in with a Max x20 plan account (verified active at

claude.ai/settings/billing)

  1. Run claude in the terminal
  2. Run /model claude-opus-4-7[1m] to select Opus 4.7 [1M]
  3. Run /context — cap shown as 500k instead of 1m
  4. Switch to Sonnet 4.6 with /model claude-sonnet-4-6
  5. Run /context — correctly shows 1m
  6. Switch to Haiku 4.5
  7. 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:

  1. Investigate the org_level_disabled flag cached against my account

and reset it. The flag is incorrect for an active Max x20 subscription.

  1. 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.

  1. 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.

View original on GitHub ↗

14 Comments

arrev-dev · 4 months ago

+1 having same issue

Hobbit233 · 4 months ago

+1 — reproducing the exact same bug.

Environment

  • Claude Code: 2.1.119
  • OS: Linux (WSL2)
  • Plan: Max

Symptom
/context for claude-opus-4-7[1m] shows xxx / 500k tokens instead 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.

Hobbit233 · 4 months ago

Update: the workaround does work on Linux, contrary to what the OP observed on Windows.

Steps:

  1. /exit from Claude Code.
  2. Edit ~/.claude.json — remove cachedGrowthBookFeatures.tengu_amber_redwood2 and root-level cachedExtraUsageDisabledReason.
  3. Restart claude.
  4. /context immediately reports xxx / 1m tokens for claude-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_disabled flag is still needed — manual JSON edits are not a sustainable fix for end users.

melanthius99 · 4 months ago

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:

  1. /exit
  2. Backed up ~/.claude.json
  3. Removed the tengu_amber_redwood2 line, validated JSON
  4. Restarted Claude Code
  5. /context → still 500k

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.

Elusive7733 · 4 months ago

+1 — reproducing on macOS / Max plan / Claude Code 2.1.121.

Environment

  • Claude Code: 2.1.121
  • OS: macOS (Darwin 25.4.0, arm64)
  • Plan: Max ($200/mo)
  • Model: claude-opus-4-7[1m]

Symptom
Effective auto-compact window measured at ~100k via threshold backsolving from compaction event logs (compactMetadata in session JSONL). Compactions fire at ~67-72k preTokens, 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:

"cachedGrowthBookFeatures": {
  "tengu_amber_redwood2": "400000"
},
"cachedExtraUsageDisabledReason": "org_level_disabled"

Note my tengu_amber_redwood2 value 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's ea_ function only checks tengu_amber_redwood2 for claude-opus-4-7. Opus 4.6 with CLAUDE_CODE_AUTO_COMPACT_WINDOW=1m correctly provides the full 1M window.

melanthius99 · 4 months ago

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.

hackyon-anthropic collaborator · 4 months ago

hey 👋 please use the /autocompact command to configure the larger context window in these cases (there should be a notification on compaction about this new command when it happens)

lachisis02 · 4 months ago

Update from OP — /autocompact workaround confirmed

Following @hackyon-anthropic's suggestion, /autocompact 1m in a fresh session restores the full 1M window: /context now reports
135.1k / 1m tokens (14%) on claude-opus-4-7[1m].

Env: Claude Code 2.1.121 / Win11 Pro / Max x20.

This is a client-side workaround, not a fix. ~/.claude.json still contains cachedExtraUsageDisabledReason: "org_level_disabled" and cachedGrowthBookFeatures.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 to claude-opus-4-7 only — consistent with a per-account Statsig cohort assignment rather than a uniform default.

Workaround for affected Max users (cc @arrev-dev @Hobbit233 @melanthius99 @Elusive7733):

/autocompact 1m

Still outstanding:

  • [ ] Backend reset of org_level_disabled on affected accounts
  • [ ] Documented opt-out from tengu_amber_redwood2
  • [ ] Clarification on whether server-side context capping is an intentional rollout for Max plans, and how it is disclosed

Keeping this issue open until those land.

Thanks @hackyon-anthropic for the immediate workaround.

kpscool12 · 4 months ago

+1, reproducing this on Max 5x ($100/mo) plan, not just Max 20x.

  • Plan: Claude Max 5x ($100/mo, verified active at claude.ai/settings/billing)
  • Claude Code version: 2.1.123
  • OS: Windows 11
  • Model: claude-opus-4-7[1m] (startup header shows "Opus 4.7 (1M context)")
  • /context output: 35.4k / 500k tokens — capped at 500k instead of 1M
  • Local config is clean: no model override in ~/.claude/settings.json,

no ANTHROPIC_BETAS or ANTHROPIC_MODEL env vars, no project-level overrides.

  • Sonnet 4.6 and Haiku 4.5 appear unaffected on the same machine.

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.

HaikAsatryan · 4 months ago

+1, same issue on Max x20 since 2026-04-27.

Environment

  • Plan: Max x20 (active, billing verified)
  • Claude Code: 2.1.123
  • Region: Yerevan, AM

/context denominators

  • Opus 4.7: 1m displayed, but effective cap is 500k (matches OP)
  • Sonnet 4.6: 200k
  • Haiku 4.5: 200k
  • Model versions all correct.

~/.claude.json flags

"cachedExtraUsageDisabledReason": "org_level_disabled",
"migrationVersion": 12

---
Update: After having the 500K bug for 10 days it now became 700K

solidsnakex37 · 4 months ago

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.

rosaboyle · 3 months ago

Having the same issue

SeidSmatti · 3 months ago

Same issue yet different limit.

Environment

  • Claude Code: 2.1.
  • OS: Fedora
  • Plan: Max (x5)
  • Model: claude-opus-4-7[1m]

Issue
Exact same issue except I am capped at 600k tokens instead of 500k

github-actions[bot] · 2 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

Showing cached comments. Read the full discussion on GitHub ↗