claude-code - 💡(How to fix) Fix [BUG] Error: Extra usage is required for 1M context · run /extra-usage to enable, or /model to switch to standard context [1 participants]

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…
GitHub stats
anthropics/claude-code#51745Fetched 2026-04-22 07:53:58
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Author
Participants
Timeline (top)
labeled ×4subscribed ×1

Error Message

Error: Extra usage is required for 1M context · run /extra-usage to enable, or /model to switch to standard context

Code Example

Error: Extra usage is required for 1M context · run /extra-usage to enable, or /model to switch to standard context
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?

It forces me to start a new session; it won't let me continue it, merge it, or do anything else.

What Should Happen?

/compact should work

Error Messages/Logs

Error: Extra usage is required for 1M context · run /extra-usage to enable, or /model to switch to standard context

Steps to Reproduce

Have a long enough conversation with Claude Code

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.116

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

No response

extent analysis

TL;DR

The issue can likely be resolved by running the /extra-usage command to enable extra usage for the 1M context.

Guidance

  • The error message suggests that the issue is due to the context size limit, and running /extra-usage may resolve the issue.
  • To verify, try running /extra-usage and then attempt to use the /compact command again.
  • If the issue persists, try switching to the standard context using the /model command to see if the problem is specific to the 1M context.
  • Check the documentation for any specific requirements or limitations for the /compact command and the 1M context.

Example

No code snippet is provided as it is not necessary for this issue.

Notes

The issue is reported as a regression, which suggests that the problem may be due to a change in the Claude Code version. However, without more information on the previous working version, it is difficult to determine the exact cause.

Recommendation

Apply workaround: Run the /extra-usage command to enable extra usage for the 1M context, as this is the most straightforward solution based on the error message.

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