claude-code - 💡(How to fix) Fix [Feature Request] Cache and rerender `/usage` endpoint responses to handle rate limiting [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#48449Fetched 2026-04-16 06:59:50
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/andrsj/.local/share/claude/versions/2.1.109 (expected in multi-process scenarios)\n at yU_ (/$bunfs/root/src/entrypoints/cli.js:2342:2153)\n at Vs6 (/$bunfs/root/src/entrypoints/cli.js:2342:1233)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T09:39:02.225Z"},{"error":"Error: Request was aborted.\n at JC_ (/$bunfs/root/src/entrypoints/cli.js:1290:12508)\n at next (native:1:11)\n at Dp7 (/$bunfs/root/src/entrypoints/cli.js:8032:9307)\n at next (native:1:11)\n at Pp7 (/$bunfs/root/src/entrypoints/cli.js:8037:12450)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T09:49:23.335Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T09:54:07.593Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T09:56:29.275Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:07:42.896Z"},{"error":"Error: Request was aborted.\n at JC_ (/$bunfs/root/src/entrypoints/cli.js:1290:12508)\n at next (native:1:11)\n at Dp7 (/$bunfs/root/src/entrypoints/cli.js:8032:9307)\n at next (native:1:11)\n at Pp7 (/$bunfs/root/src/entrypoints/cli.js:8037:12450)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:16:51.226Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:23:03.068Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:26:49.167Z"},{"error":"AxiosError: Request failed with status code 429\n at tF (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12744)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n at async Wc_ (/$bunfs/root/src/entrypoints/cli.js:2410:15497)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5438:10819)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:49:37.906Z"},{"error":"AxiosError: Request failed with status code 429\n at tF (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12744)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n at async Wc_ (/$bunfs/root/src/entrypoints/cli.js:2410:15497)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5438:10819)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:49:43.350Z"},{"error":"AxiosError: Request failed with status code 429\n at tF (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12744)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n at async Wc_ (/$bunfs/root/src/entrypoints/cli.js:2410:15497)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5438:10819)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:49:46.852Z"},{"error":"AxiosError: Request failed with status code 429\n at tF (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12744)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:865:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n at async Wc_ (/$bunfs/root/src/entrypoints/cli.js:2410:15497)\n at async <a…

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/andrsj/.local/share/claude/versions/2.1.109 (expected in multi-process scenarios)\n    at yU_ (/$bunfs/root/src/entrypoints/cli.js:2342:2153)\n    at Vs6 (/$bunfs/root/src/entrypoints/cli.js:2342:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T09:39:02.225Z"},{"error":"Error: Request was aborted.\n    at JC_ (/$bunfs/root/src/entrypoints/cli.js:1290:12508)\n    at next (native:1:11)\n    at Dp7 (/$bunfs/root/src/entrypoints/cli.js:8032:9307)\n    at next (native:1:11)\n    at Pp7 (/$bunfs/root/src/entrypoints/cli.js:8037:12450)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T09:49:23.335Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T09:54:07.593Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T09:56:29.275Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:07:42.896Z"},{"error":"Error: Request was aborted.\n    at JC_ (/$bunfs/root/src/entrypoints/cli.js:1290:12508)\n    at next (native:1:11)\n    at Dp7 (/$bunfs/root/src/entrypoints/cli.js:8032:9307)\n    at next (native:1:11)\n    at Pp7 (/$bunfs/root/src/entrypoints/cli.js:8037:12450)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:16:51.226Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:23:03.068Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:26:49.167Z"},{"error":"AxiosError: Request failed with status code 429\n    at tF (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12744)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async Wc_ (/$bunfs/root/src/entrypoints/cli.js:2410:15497)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5438:10819)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:49:37.906Z"},{"error":"AxiosError: Request failed with status code 429\n    at tF (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12744)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async Wc_ (/$bunfs/root/src/entrypoints/cli.js:2410:15497)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5438:10819)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:49:43.350Z"},{"error":"AxiosError: Request failed with status code 429\n    at tF (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12744)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async Wc_ (/$bunfs/root/src/entrypoints/cli.js:2410:15497)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5438:10819)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:49:46.852Z"},{"error":"AxiosError: Request failed with status code 429\n    at tF (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12744)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async Wc_ (/$bunfs/root/src/entrypoints/cli.js:2410:15497)\n    at async <a…
RAW_BUFFERClick to expand / collapse

Bug Description I tried to get /usage information and it was rendered with mess. The content of the bar was replaced with text and it was hard to read

After some requests got error with rate limited

<img width="913" height="337" alt="Image" src="https://github.com/user-attachments/assets/9f593131-6cc3-4931-96f7-7f59a0380848" />

... Maybe cache first 2XX response and rerender it when user explicitly open this menu again?

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.109
  • Feedback ID: b983f7c3-c3bc-4aa6-a8e8-b5bd254dd4ff

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/andrsj/.local/share/claude/versions/2.1.109 (expected in multi-process scenarios)\n    at yU_ (/$bunfs/root/src/entrypoints/cli.js:2342:2153)\n    at Vs6 (/$bunfs/root/src/entrypoints/cli.js:2342:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T09:39:02.225Z"},{"error":"Error: Request was aborted.\n    at JC_ (/$bunfs/root/src/entrypoints/cli.js:1290:12508)\n    at next (native:1:11)\n    at Dp7 (/$bunfs/root/src/entrypoints/cli.js:8032:9307)\n    at next (native:1:11)\n    at Pp7 (/$bunfs/root/src/entrypoints/cli.js:8037:12450)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T09:49:23.335Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T09:54:07.593Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T09:56:29.275Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:07:42.896Z"},{"error":"Error: Request was aborted.\n    at JC_ (/$bunfs/root/src/entrypoints/cli.js:1290:12508)\n    at next (native:1:11)\n    at Dp7 (/$bunfs/root/src/entrypoints/cli.js:8032:9307)\n    at next (native:1:11)\n    at Pp7 (/$bunfs/root/src/entrypoints/cli.js:8037:12450)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:16:51.226Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:23:03.068Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:26:49.167Z"},{"error":"AxiosError: Request failed with status code 429\n    at tF (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12744)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async Wc_ (/$bunfs/root/src/entrypoints/cli.js:2410:15497)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5438:10819)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:49:37.906Z"},{"error":"AxiosError: Request failed with status code 429\n    at tF (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12744)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async Wc_ (/$bunfs/root/src/entrypoints/cli.js:2410:15497)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5438:10819)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:49:43.350Z"},{"error":"AxiosError: Request failed with status code 429\n    at tF (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12744)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async Wc_ (/$bunfs/root/src/entrypoints/cli.js:2410:15497)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5438:10819)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T10:49:46.852Z"},{"error":"AxiosError: Request failed with status code 429\n    at tF (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12744)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:865:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at async Wc_ (/$bunfs/root/src/entrypoints/cli.js:2410:15497)\n    at async <a…

Note: Content was truncated.

extent analysis

TL;DR

Caching the first successful response to the /usage request and re-rendering it when the user explicitly opens the menu again may help mitigate the issue.

Guidance

  • The error messages indicate that the requests are being aborted, possibly due to rate limiting (status code 429).
  • The suggestion to cache the first 2XX response and re-render it when the user opens the menu again could help reduce the number of requests and avoid rate limiting.
  • Investigate the rate limiting policy of the API being called to understand the limits and how to handle them.
  • Consider implementing a retry mechanism with exponential backoff to handle temporary rate limiting errors.

Example

No code example can be provided without more context, but the idea would be to store the response from the /usage request in a cache and reuse it when the menu is opened again, rather than making a new request.

Notes

The provided error messages and description do not give enough information about the specific implementation or the API being called, so a more detailed solution cannot be provided.

Recommendation

Apply a workaround by caching the first successful response to the /usage request and re-rendering it when the user explicitly opens the menu again, as this may help mitigate the rate limiting issue.

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