[Bug] Cache invalidation causing unexpected token usage spikes on session resume
Resolved 💬 3 comments Opened Apr 11, 2026 by JumpAttacker Closed Apr 15, 2026
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" />
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗