claude-code - 💡(How to fix) Fix [Bug] Compaction fails intermittently with extra usage requirement error [2 comments, 2 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#48721Fetched 2026-04-16 06:52:51
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×4commented ×2

Error Message

[{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"Extra usage is required for long context requests."},"request_id":"req_011Ca64t89BR91agyAEJhbor"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52736)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T18:56:59.862Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"Extra usage is required for long context requests."},"request_id":"req_011Ca64tAgDzDoPXA5Wgvrvo"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:11:52736)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T18:57:00.182Z"},{"error":"Error: API Error: Extra usage is required for 1M context · run /extra-usage to enable, or /model to switch to standard context\n at bEH (/$bunfs/root/src/entrypoints/cli.js:4527:1565)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T18:57:00.184Z"},{"error":"Error: Error during compaction: API Error: Extra usage is required for 1M context · run /extra-usage to enable, or /model to switch to standard context\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5432:1199)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T18:57:00.184Z"}]

Code Example

[{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Extra usage is required for long context requests.\"},\"request_id\":\"req_011Ca64t89BR91agyAEJhbor\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52736)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T18:56:59.862Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Extra usage is required for long context requests.\"},\"request_id\":\"req_011Ca64tAgDzDoPXA5Wgvrvo\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52736)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T18:57:00.182Z"},{"error":"Error: API Error: Extra usage is required for 1M context · run /extra-usage to enable, or /model to switch to standard context\n    at bEH (/$bunfs/root/src/entrypoints/cli.js:4527:1565)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T18:57:00.184Z"},{"error":"Error: Error during compaction: API Error: Extra usage is required for 1M context · run /extra-usage to enable, or /model to switch to standard context\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5432:1199)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T18:57:00.184Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description /compact ⎿ Error: Error during compaction: API Error: Extra usage is required for 1M context · run /extra-usage to enable, or /model to switch to standard context but if I run /compact again it works.

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.109
  • Feedback ID: 0d89f5b1-ff18-4159-b1c2-2a654530d240

Errors

[{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Extra usage is required for long context requests.\"},\"request_id\":\"req_011Ca64t89BR91agyAEJhbor\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52736)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T18:56:59.862Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Extra usage is required for long context requests.\"},\"request_id\":\"req_011Ca64tAgDzDoPXA5Wgvrvo\"}\n    at generate (/$bunfs/root/src/entrypoints/cli.js:11:52736)\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T18:57:00.182Z"},{"error":"Error: API Error: Extra usage is required for 1M context · run /extra-usage to enable, or /model to switch to standard context\n    at bEH (/$bunfs/root/src/entrypoints/cli.js:4527:1565)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T18:57:00.184Z"},{"error":"Error: Error during compaction: API Error: Extra usage is required for 1M context · run /extra-usage to enable, or /model to switch to standard context\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5432:1199)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T18:57:00.184Z"}]

well actually I am under my limit by a wide margin. running /compact again works.

extent analysis

TL;DR

Run /extra-usage to enable extra usage for 1M context or switch to standard context using /model to resolve the compaction error.

Guidance

  • The error message indicates a rate limit error due to the requirement of extra usage for long context requests, despite the user being under their limit.
  • Running /compact again works, suggesting a potential temporary issue or a need for enabling extra usage.
  • To mitigate the issue, try running /extra-usage to enable extra usage for 1M context as suggested by the error message.
  • If the issue persists, consider switching to standard context using /model to avoid the need for extra usage.

Example

No code snippet is provided as the issue seems to be related to command-line interface interactions rather than code.

Notes

The fact that running /compact again works suggests that the issue might be intermittent or related to a specific condition that is temporarily resolved by re-running the command. The user's claim of being under their limit by a wide margin also introduces uncertainty about the root cause.

Recommendation

Apply workaround: Run /extra-usage to enable extra usage for 1M context, as this directly addresses the error message's suggestion and may resolve the compaction error without needing to switch contexts.

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