[Feature Request] Cache and rerender `/usage` endpoint responses to handle rate limiting

Resolved 💬 2 comments Opened Apr 15, 2026 by andriiderkachcherry Closed Apr 17, 2026

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.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗