claude-code - 💡(How to fix) Fix [Bug] Cache invalidation causing unexpected token usage spikes on session resume [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#46750Fetched 2026-04-12 13:34:02
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Error Message

[{"error":"Error: unknown certificate verification error\n at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n at emitError (node:events:43:23)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n at emitError (node:events:43:23)\n at <anonymous> (node:http_client:253:22)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n at async wo (B:/~BUN/root/src/entrypoints/cli.js:437:3607)\n at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2818:190)\n at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:6508:22654)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:28.404Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:13352)\n at emit (node:events:92:22)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:3321)\n at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8308:20718)\n at async wo (unknown)\n at async bp1 (B:/~BUN/root/src/entrypoints/cli.js:8308:20475)\n at async Gs (B:/~BUN/root/src/entrypoints/cli.js:8308:21110)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:33.407Z"},{"error":"Error: unknown certificate verification error\n at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n at emitError (node:events:43:23)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n at emitError (node:events:43:23)\n at <anonymous> (node:http_client:253:22)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n at async xi4 (B:/~BUN/root/src/entrypoints/cli.js:2965:14018)\n at async I$ (B:/~BUN/root/src/entrypoints/cli.js:2965:14557)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:33.521Z"},{"error":"Error: unknown certificate verification error\n at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n at emitError (node:events:43:23)\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n at emitError (node:events:43:23)\n at <anonymous> (node:http_client:253:22)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n at async xi4 (B:/~BUN/root/src/entrypoints/cli.js:2965:14018)\n at async I$ (B:/~BUN/root/src/entrypoints/cli.js:2965:14557)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:33.523Z"},{"error":"Error: 1P event logging: 234 events failed to export (code=UNKNOWN_CERTIFICATE_VERIFICATION_ERROR, unknown certificate verification error)\n at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:38.327Z"},{"error":"Error: 1P event logging: 34 events failed to export (code=UNKNOWN_CERTIFICATE_VERIFICATION_ERROR, unknown certificate verification error)\n at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:53.335Z"},{"error":"Error: 1P event logging: 18 events failed to export (code=UNKNOWN_CERTIFICATE_VERIFICATION_ERROR, unknown certificate verification error)\n at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:14:08.352Z"},{"error":"Error: Failed to create shell snapshot: Command failed: C:\Program Files\Git\bin\bash.exe -c -l SNAPSHOT_FILE='C:\Users\JumpA\.claude\shell-snapshots\snapshot-bash-1775913533324-i8n11c.sh'\n # No user config file to source\n\n # First, create/clear the snapshot file\n echo "# Snapshot file" >| "$SNAPSHOT_FILE"\n\n # When this file is sourced, we first unalias to avoid conflicts\n # This is necessary because aliases get "frozen" inside function definitions at definition time,\n …

Root Cause

Errors

[{"error":"Error: unknown certificate verification error\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at async wo (B:/~BUN/root/src/entrypoints/cli.js:437:3607)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2818:190)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:6508:22654)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:28.404Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:13352)\n    at emit (node:events:92:22)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:3321)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8308:20718)\n    at async wo (unknown)\n    at async bp1 (B:/~BUN/root/src/entrypoints/cli.js:8308:20475)\n    at async Gs_ (B:/~BUN/root/src/entrypoints/cli.js:8308:21110)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:33.407Z"},{"error":"Error: unknown certificate verification error\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at async xi4 (B:/~BUN/root/src/entrypoints/cli.js:2965:14018)\n    at async I$_ (B:/~BUN/root/src/entrypoints/cli.js:2965:14557)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:33.521Z"},{"error":"Error: unknown certificate verification error\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at async xi4 (B:/~BUN/root/src/entrypoints/cli.js:2965:14018)\n    at async I$_ (B:/~BUN/root/src/entrypoints/cli.js:2965:14557)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:33.523Z"},{"error":"Error: 1P event logging: 234 events failed to export (code=UNKNOWN_CERTIFICATE_VERIFICATION_ERROR, unknown certificate verification error)\n    at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n    at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:38.327Z"},{"error":"Error: 1P event logging: 34 events failed to export (code=UNKNOWN_CERTIFICATE_VERIFICATION_ERROR, unknown certificate verification error)\n    at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n    at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:53.335Z"},{"error":"Error: 1P event logging: 18 events failed to export (code=UNKNOWN_CERTIFICATE_VERIFICATION_ERROR, unknown certificate verification error)\n    at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n    at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:14:08.352Z"},{"error":"Error: Failed to create shell snapshot: Command failed: C:\\Program Files\\Git\\bin\\bash.exe -c -l SNAPSHOT_FILE='C:\\Users\\JumpA\\.claude\\shell-snapshots\\snapshot-bash-1775913533324-i8n11c.sh'\n      # No user config file to source\n\n      # First, create/clear the snapshot file\n      echo \"# Snapshot file\" >| \"$SNAPSHOT_FILE\"\n\n      # When this file is sourced, we first unalias to avoid conflicts\n      # This is necessary because aliases get \"frozen\" inside function definitions at definition time,\n  …

Code Example

[{"error":"Error: unknown certificate verification error\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at async wo (B:/~BUN/root/src/entrypoints/cli.js:437:3607)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2818:190)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:6508:22654)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:28.404Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:13352)\n    at emit (node:events:92:22)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:3321)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8308:20718)\n    at async wo (unknown)\n    at async bp1 (B:/~BUN/root/src/entrypoints/cli.js:8308:20475)\n    at async Gs_ (B:/~BUN/root/src/entrypoints/cli.js:8308:21110)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:33.407Z"},{"error":"Error: unknown certificate verification error\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at async xi4 (B:/~BUN/root/src/entrypoints/cli.js:2965:14018)\n    at async I$_ (B:/~BUN/root/src/entrypoints/cli.js:2965:14557)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:33.521Z"},{"error":"Error: unknown certificate verification error\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at async xi4 (B:/~BUN/root/src/entrypoints/cli.js:2965:14018)\n    at async I$_ (B:/~BUN/root/src/entrypoints/cli.js:2965:14557)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:33.523Z"},{"error":"Error: 1P event logging: 234 events failed to export (code=UNKNOWN_CERTIFICATE_VERIFICATION_ERROR, unknown certificate verification error)\n    at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n    at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:38.327Z"},{"error":"Error: 1P event logging: 34 events failed to export (code=UNKNOWN_CERTIFICATE_VERIFICATION_ERROR, unknown certificate verification error)\n    at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n    at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:53.335Z"},{"error":"Error: 1P event logging: 18 events failed to export (code=UNKNOWN_CERTIFICATE_VERIFICATION_ERROR, unknown certificate verification error)\n    at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n    at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:14:08.352Z"},{"error":"Error: Failed to create shell snapshot: Command failed: C:\\Program Files\\Git\\bin\\bash.exe -c -l SNAPSHOT_FILE='C:\\Users\\JumpA\\.claude\\shell-snapshots\\snapshot-bash-1775913533324-i8n11c.sh'\n      # No user config file to source\n\n      # First, create/clear the snapshot file\n      echo \"# Snapshot file\" >| \"$SNAPSHOT_FILE\"\n\n      # When this file is sourced, we first unalias to avoid conflicts\n      # This is necessary because aliases get \"frozen\" inside function definitions at definition time,\n  …
RAW_BUFFERClick to expand / collapse

Bug Description Max 20x, weekly jumped ~50% in 2 days, no heavy usage, suspected cache invalidation on session resume

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.101
  • Feedback ID: 7e910418-767e-496f-9b89-691a5f1568d5

Errors

[{"error":"Error: unknown certificate verification error\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at async wo (B:/~BUN/root/src/entrypoints/cli.js:437:3607)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:2818:190)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:6508:22654)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:28.404Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:13352)\n    at emit (node:events:92:22)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:3321)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8308:20718)\n    at async wo (unknown)\n    at async bp1 (B:/~BUN/root/src/entrypoints/cli.js:8308:20475)\n    at async Gs_ (B:/~BUN/root/src/entrypoints/cli.js:8308:21110)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:33.407Z"},{"error":"Error: unknown certificate verification error\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at async xi4 (B:/~BUN/root/src/entrypoints/cli.js:2965:14018)\n    at async I$_ (B:/~BUN/root/src/entrypoints/cli.js:2965:14557)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:33.521Z"},{"error":"Error: unknown certificate verification error\n    at from (B:/~BUN/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (B:/~BUN/root/src/entrypoints/cli.js:115:2467)\n    at async xi4 (B:/~BUN/root/src/entrypoints/cli.js:2965:14018)\n    at async I$_ (B:/~BUN/root/src/entrypoints/cli.js:2965:14557)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:33.523Z"},{"error":"Error: 1P event logging: 234 events failed to export (code=UNKNOWN_CERTIFICATE_VERIFICATION_ERROR, unknown certificate verification error)\n    at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n    at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:38.327Z"},{"error":"Error: 1P event logging: 34 events failed to export (code=UNKNOWN_CERTIFICATE_VERIFICATION_ERROR, unknown certificate verification error)\n    at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n    at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:13:53.335Z"},{"error":"Error: 1P event logging: 18 events failed to export (code=UNKNOWN_CERTIFICATE_VERIFICATION_ERROR, unknown certificate verification error)\n    at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n    at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T13:14:08.352Z"},{"error":"Error: Failed to create shell snapshot: Command failed: C:\\Program Files\\Git\\bin\\bash.exe -c -l SNAPSHOT_FILE='C:\\Users\\JumpA\\.claude\\shell-snapshots\\snapshot-bash-1775913533324-i8n11c.sh'\n      # No user config file to source\n\n      # First, create/clear the snapshot file\n      echo \"# Snapshot file\" >| \"$SNAPSHOT_FILE\"\n\n      # When this file is sourced, we first unalias to avoid conflicts\n      # This is necessary because aliases get \"frozen\" inside function definitions at definition time,\n  …

Note: Content was truncated.

<img width="1041" height="566" alt="Image" src="https://github.com/user-attachments/assets/bfb595c7-28df-4d7a-a585-7a6fc99a48aa" />

extent analysis

TL;DR

The issue is likely related to certificate verification errors, and a potential fix could be to update the certificate configuration or check the system's certificate store.

Guidance

  • Investigate the certificate verification errors by checking the system's certificate store and the application's certificate configuration.
  • Look for any recent changes to the system's certificate store or the application's certificate configuration that may be causing the errors.
  • Check the application's logs for any other errors or warnings that may be related to the certificate verification errors.
  • Consider updating the application to the latest version or checking for any available patches that may address the certificate verification errors.

Example

No code example is provided as the issue is related to certificate verification errors and does not require a code change.

Notes

The issue is truncated, and some information may be missing. The guidance provided is based on the available information and may not be comprehensive.

Recommendation

Apply a workaround by checking the system's certificate store and the application's certificate configuration to identify any potential issues. This may involve updating the certificate configuration or checking for any recent changes to the system's certificate store.

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