claude-code - 💡(How to fix) Fix [Feature Request] Add configurable cache threshold for auto-clear behavior [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#51901Fetched 2026-04-23 07:41:53
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Error Message

[{"error":"AxiosError: Request failed with status code 401\n at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\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 ot1 (/$bunfs/root/src/entrypoints/cli.js:3090:14589)\n at async v97 (/$bunfs/root/src/entrypoints/cli.js:3090:15128)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T08:59:26.176Z"},{"error":"AxiosError: Request failed with status code 401\n at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\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 ot1 (/$bunfs/root/src/entrypoints/cli.js:3090:14589)\n at async v97 (/$bunfs/root/src/entrypoints/cli.js:3090:15128)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T08:59:26.177Z"}]

Code Example

[{"error":"AxiosError: Request failed with status code 401\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\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 ot1 (/$bunfs/root/src/entrypoints/cli.js:3090:14589)\n    at async v97 (/$bunfs/root/src/entrypoints/cli.js:3090:15128)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T08:59:26.176Z"},{"error":"AxiosError: Request failed with status code 401\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\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 ot1 (/$bunfs/root/src/entrypoints/cli.js:3090:14589)\n    at async v97 (/$bunfs/root/src/entrypoints/cli.js:3090:15128)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T08:59:26.177Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description claude code auto clear at 40% cache - I need to be able to do that

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.116
  • Feedback ID: e1cd23bf-ffa1-4959-94b1-b78bb32cafd6

Errors

[{"error":"AxiosError: Request failed with status code 401\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\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 ot1 (/$bunfs/root/src/entrypoints/cli.js:3090:14589)\n    at async v97 (/$bunfs/root/src/entrypoints/cli.js:3090:15128)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T08:59:26.176Z"},{"error":"AxiosError: Request failed with status code 401\n    at zd (/$bunfs/root/src/entrypoints/cli.js:110:1194)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:12712)\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 ot1 (/$bunfs/root/src/entrypoints/cli.js:3090:14589)\n    at async v97 (/$bunfs/root/src/entrypoints/cli.js:3090:15128)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T08:59:26.177Z"}]

extent analysis

TL;DR

The issue is likely related to authentication, as indicated by the 401 status code in the error messages, and may require re-authentication or adjusting authentication settings.

Guidance

  • Verify that the authentication credentials are correct and not expired.
  • Check the documentation for the claude code and Axios library to see if there are any specific authentication requirements or troubleshooting steps.
  • Consider clearing the cache and retrying the request to see if it resolves the issue.
  • Review the error messages to see if there are any other clues about the cause of the authentication failure.

Notes

The provided information does not include specific details about the authentication mechanism or the claude code, so it is difficult to provide a more specific solution.

Recommendation

Apply workaround: Re-authenticate and adjust authentication settings as needed, as the 401 status code suggests an authentication 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