claude-code - 💡(How to fix) Fix [BUG] Claude Code stuck in 1M context mode after model switch, blocking Pro user

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

  • I received the error: "API Error: Extra usage is required for 1M context"

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Hi Anthropic Support,

I'm a Pro plan user and encountered a bug in Claude Code (VS Code extension) that forced me to clear my entire conversation, resulting in lost context and wasted usage.

What happened:

  • I started a session using Opus with high effort mode
  • I switched to Sonnet mid-session
  • After switching, Claude Code appeared to inherit a 1M context window, which Pro users should not have access to
  • I received the error: "API Error: Extra usage is required for 1M context"
  • The compact option was also not showing, leaving me with no way to manage context
  • The only fix was to clear the entire conversation, losing all context and wasting significant usage to get back to the same point

This appears related to GitHub issues #42616, #45390, and #45847.

I'd also appreciate a review of whether my usage was fairly consumed given the bug forced me to restart.

Thank you

What Should Happen?

Expected behavior:

  • Switching models mid-session should not cause the session to inherit a 1M context window on a Pro plan
  • The compact option should remain available as a fallback
  • Users should not be forced to clear their conversation to recover from this state

Error Messages/Logs

Steps to Reproduce

Environment:

  • Plan: Pro
  • Interface: Claude Code (VS Code extension)
  • Trigger: Switching from Opus (high effort) to Sonnet mid-session

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

don't know

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Claude Code stuck in 1M context mode after model switch, blocking Pro user