claude-code - 💡(How to fix) Fix [Bug] Claude Code incorrectly routes requests to Extra Usage despite plan allocation remaining [1 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#45204Fetched 2026-04-09 08:10:51
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
cross-referenced ×2commented ×1labeled ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/kengo/.local/share/claude/versions/2.0.57 (expected in multi-process scenarios)\n at Iw0 (/$bunfs/root/claude:2682:1622)\n at GCA (/$bunfs/root/claude:2682:1300)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:12:12.545Z"},{"error":"Error: 1: 1 \n at VU8 (/$bunfs/root/claude:1506:4022)\n at async KU8 (/$bunfs/root/claude:1506:1623)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:12:41.751Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"You're out of extra usage. Add more at claude.ai/settings/usage and keep going."},"request_id":"req_011CZrMyAWdBJUPnWhKN8xFr"}\n at generate (/$bunfs/root/claude:415:9395)\n at makeRequest (/$bunfs/root/claude:1269:5434)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:12:45.090Z"},{"error":"Error\n at cU (/$bunfs/root/claude:27:1143)\n at <anonymous> (/$bunfs/root/claude:32:10084)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:34:2147)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:12:48.669Z"},{"error":"Error\n at cU (/$bunfs/root/claude:27:1143)\n at <anonymous> (/$bunfs/root/claude:32:10084)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:34:2147)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:13:11.174Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/kengo/.local/share/claude/versions/2.0.57 (expected in multi-process scenarios)\n    at Iw0 (/$bunfs/root/claude:2682:1622)\n    at GCA (/$bunfs/root/claude:2682:1300)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:12:12.545Z"},{"error":"Error: 1: 1 \n    at VU8 (/$bunfs/root/claude:1506:4022)\n    at async KU8 (/$bunfs/root/claude:1506:1623)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:12:41.751Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"You're out of extra usage. Add more at claude.ai/settings/usage and keep going.\"},\"request_id\":\"req_011CZrMyAWdBJUPnWhKN8xFr\"}\n    at generate (/$bunfs/root/claude:415:9395)\n    at makeRequest (/$bunfs/root/claude:1269:5434)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:12:45.090Z"},{"error":"Error\n    at cU (/$bunfs/root/claude:27:1143)\n    at <anonymous> (/$bunfs/root/claude:32:10084)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:12:48.669Z"},{"error":"Error\n    at cU (/$bunfs/root/claude:27:1143)\n    at <anonymous> (/$bunfs/root/claude:32:10084)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:13:11.174Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Bug: Extra Usage charged despite plan limits not reached (Max 20x)

Plan: Max 20x ($200/month) Claude Code version: latest (updated today) OS: macOS

Issue: Claude Code returns the error "You're out of extra usage. Add more at claude.ai/settings/usage and keep going" even though my plan usage is well below the limit.

Dashboard at the time of error:

  • Current session: 3% used
  • Weekly limit (All models): 78% used
  • Weekly limit (Sonnet only): 18% used

I tried switching the model from Opus to Sonnet via /model — same error. I updated Claude Code to the latest version — same error.

When I enabled the Extra Usage toggle in Settings > Usage, credits were immediately consumed ($194.51 → $194.00) despite having plenty of plan usage remaining. This confirms Claude Code is bypassing the Max plan allocation and routing requests through Extra Usage billing incorrectly.

This appears to be the same usage tracking mismatch reported in GitHub Issues #24727 and #38335.

Requested actions:

  1. Investigate whye Code is not recognizing my Max 20x plan allocation
  2. Refund the Extra Usage credits consumed during this bug ($5.99 charged so far this month, of which a portion was due to this mismatch)
  3. Fix the billing routing so Max plan usage is consumed before Extra Usage

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.0.57
  • Feedback ID: 62def813-2cb2-4d19-bb68-08d8c1805062

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/kengo/.local/share/claude/versions/2.0.57 (expected in multi-process scenarios)\n    at Iw0 (/$bunfs/root/claude:2682:1622)\n    at GCA (/$bunfs/root/claude:2682:1300)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:12:12.545Z"},{"error":"Error: 1: 1 \n    at VU8 (/$bunfs/root/claude:1506:4022)\n    at async KU8 (/$bunfs/root/claude:1506:1623)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:12:41.751Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"You're out of extra usage. Add more at claude.ai/settings/usage and keep going.\"},\"request_id\":\"req_011CZrMyAWdBJUPnWhKN8xFr\"}\n    at generate (/$bunfs/root/claude:415:9395)\n    at makeRequest (/$bunfs/root/claude:1269:5434)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:12:45.090Z"},{"error":"Error\n    at cU (/$bunfs/root/claude:27:1143)\n    at <anonymous> (/$bunfs/root/claude:32:10084)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:12:48.669Z"},{"error":"Error\n    at cU (/$bunfs/root/claude:27:1143)\n    at <anonymous> (/$bunfs/root/claude:32:10084)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:861:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:34:2147)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-08T13:13:11.174Z"}]

extent analysis

TL;DR

The issue is likely due to a billing routing mismatch, causing Max plan usage to be bypassed and Extra Usage credits to be consumed incorrectly, and a fix would involve updating the billing logic to prioritize Max plan allocation.

Guidance

  • Investigate the billing logic to ensure that Max plan usage is being consumed before Extra Usage credits, as the current behavior seems to be incorrect.
  • Review the usage tracking and billing routing code to identify the root cause of the mismatch, potentially related to the issues reported in GitHub Issues #24727 and #38335.
  • Temporarily disable Extra Usage to prevent further incorrect charges until the issue is resolved.
  • Verify that the Max plan allocation is correctly recognized and consumed by the Claude Code, potentially by testing with a new session or model.

Example

No specific code snippet can be provided without more information on the billing logic and usage tracking implementation.

Notes

The provided error logs do not seem to directly point to the cause of the billing routing mismatch, and further investigation into the code and logic is necessary to resolve the issue.

Recommendation

Apply a workaround by temporarily disabling Extra Usage until the billing logic can be updated to correctly prioritize Max plan allocation, to prevent further incorrect charges.

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