claude-code - 💡(How to fix) Fix [Bug] Session Usage Data Disappears After New Session Initialization [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#48790Fetched 2026-04-16 06:50:52
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1

Error Message

[{"error":"Error: EISDIR: illegal operation on a directory, read\n at readSync (unknown)\n at readSync (/$bunfs/root/src/entrypoints/cli.js:53:1553)\n at hUH (/$bunfs/root/src/entrypoints/cli.js:126:5400)\n at dC (/$bunfs/root/src/entrypoints/cli.js:127:181)\n at UL (/$bunfs/root/src/entrypoints/cli.js:129:54)\n at aV5 (/$bunfs/root/src/entrypoints/cli.js:8220:8927)\n at j (/$bunfs/root/src/entrypoints/cli.js:8220:8144)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8220:8474)\n at fF (/$bunfs/root/src/entrypoints/cli.js:476:63166)\n at X3H (/$bunfs/root/src/entrypoints/cli.js:476:76219)","timestamp":"2026-04-15T07:12:25.070Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/wesh/Documents/Anthropic Workspace/Playground/Remote IDE test/claude-ide-bridge.\n at call (/$bunfs/root/src/entrypoints/cli.js:4544:7630)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:13:48.680Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:13344)\n at emit (node:events:92:22)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:114:3321)\n at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:21:29.239Z"},{"error":"Error: 1P event logging: 2 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:425:2574)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:21:44.068Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n at DI1 (/$bunfs/root/src/entrypoints/cli.js:2340:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:23:35.584Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n at DI1 (/$bunfs/root/src/entrypoints/cli.js:2340:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:23:35.584Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n at DI1 (/$bunfs/root/src/entrypoints/cli.js:2340:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:23:35.584Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n at DI1 (/$bunfs/root/src/entrypoints/cli.js:2340:5253)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:23:35.584Z"},{"error":"Error: 1P event logging: 1 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:425:2574)\n at async doExport (/$bunfs/root/src/entrypoints/cli.js:425:1516)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:31:46.307Z"},{"error":"McpToolCallError: {"error":"Command must not contain shell metacharacters (;&|`$()<>{}!\\~). These could chain additional commands beyond the allowlist."}\n at xh9 (/$bunfs/root/src/entrypoints/cli.js:1772:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:40:18.401Z"},{"error":"McpToolCallError: {"error":"Terminal index-based lookup is not supported when multiple agent sessions are active. Use terminal name instead (from listTerminals). Index 0 in your session refers to a different global index than in VS Code."}\n at xh9 (/$bunfs/root/src/entrypoints/cli.js:1772:63)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:42:02.229Z"},{"error":"Error: Tool mcp__claude-ide-bridge__runInTerminal not found\n at cs9 (/$bunfs/root/src/entrypoints/cli.js:2410:30176)\n at XJ (/$bunfs/root/src/entrypoints/cli.js:476:21016)\n at aw (/$bunfs/root/src/entrypoints/cli.js:476:39566)\n at Sn (/$bunfs/root/src/entrypoints/cli.js:476:50275)\n at UPH (/$bunfs/root/src/entrypoints/cli.js:476:86959)\n at ZmH (/$bunfs/root/src/entrypoints/cli.js:476:85921)\n at Fn (/$bunfs/root/src/entrypoints/cli.js:476:85742)\n at RHH (/$bunfs/root/src/entrypoints/cli.js:476:82101)\n at WH (/$bunfs/root/src/entrypoints/cli.js:476:…

Code Example

[{"error":"Error: EISDIR: illegal operation on a directory, read\n    at readSync (unknown)\n    at readSync (/$bunfs/root/src/entrypoints/cli.js:53:1553)\n    at hUH (/$bunfs/root/src/entrypoints/cli.js:126:5400)\n    at dC (/$bunfs/root/src/entrypoints/cli.js:127:181)\n    at UL (/$bunfs/root/src/entrypoints/cli.js:129:54)\n    at aV5 (/$bunfs/root/src/entrypoints/cli.js:8220:8927)\n    at j (/$bunfs/root/src/entrypoints/cli.js:8220:8144)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8220:8474)\n    at fF (/$bunfs/root/src/entrypoints/cli.js:476:63166)\n    at X3H (/$bunfs/root/src/entrypoints/cli.js:476:76219)","timestamp":"2026-04-15T07:12:25.070Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/wesh/Documents/Anthropic Workspace/Playground/Remote IDE test/claude-ide-bridge.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4544:7630)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:13:48.680Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:13344)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:114:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:21:29.239Z"},{"error":"Error: 1P event logging: 2 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:425:2574)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:21:44.068Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at DI1 (/$bunfs/root/src/entrypoints/cli.js:2340:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:23:35.584Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at DI1 (/$bunfs/root/src/entrypoints/cli.js:2340:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:23:35.584Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at DI1 (/$bunfs/root/src/entrypoints/cli.js:2340:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:23:35.584Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at DI1 (/$bunfs/root/src/entrypoints/cli.js:2340:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:23:35.584Z"},{"error":"Error: 1P event logging: 1 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:425:2574)\n    at async doExport (/$bunfs/root/src/entrypoints/cli.js:425:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:31:46.307Z"},{"error":"McpToolCallError: {\"error\":\"Command must not contain shell metacharacters (;&|`$()<>{}!\\\\~). These could chain additional commands beyond the allowlist.\"}\n    at xh9 (/$bunfs/root/src/entrypoints/cli.js:1772:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:40:18.401Z"},{"error":"McpToolCallError: {\"error\":\"Terminal index-based lookup is not supported when multiple agent sessions are active. Use terminal name instead (from listTerminals). Index 0 in your session refers to a different global index than in VS Code.\"}\n    at xh9 (/$bunfs/root/src/entrypoints/cli.js:1772:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:42:02.229Z"},{"error":"Error: Tool mcp__claude-ide-bridge__runInTerminal not found\n    at cs9 (/$bunfs/root/src/entrypoints/cli.js:2410:30176)\n    at XJ (/$bunfs/root/src/entrypoints/cli.js:476:21016)\n    at aw (/$bunfs/root/src/entrypoints/cli.js:476:39566)\n    at Sn (/$bunfs/root/src/entrypoints/cli.js:476:50275)\n    at UPH (/$bunfs/root/src/entrypoints/cli.js:476:86959)\n    at ZmH (/$bunfs/root/src/entrypoints/cli.js:476:85921)\n    at Fn (/$bunfs/root/src/entrypoints/cli.js:476:85742)\n    at RHH (/$bunfs/root/src/entrypoints/cli.js:476:82101)\n    at WH (/$bunfs/root/src/entrypoints/cli.js:476:
RAW_BUFFERClick to expand / collapse
<img width="498" height="528" alt="Image" src="https://github.com/user-attachments/assets/21cbae29-b56e-49ee-b061-62a49d8c598f" />

Bug Description 20% of my usage has disappeared within less than 10 minutes of the new session

Environment Info

  • Platform: darwin
  • Terminal: windsurf
  • Version: 2.1.109
  • Feedback ID: ac7e2e5a-f92a-4485-bfd2-cdeff8fc1b9a

Errors

[{"error":"Error: EISDIR: illegal operation on a directory, read\n    at readSync (unknown)\n    at readSync (/$bunfs/root/src/entrypoints/cli.js:53:1553)\n    at hUH (/$bunfs/root/src/entrypoints/cli.js:126:5400)\n    at dC (/$bunfs/root/src/entrypoints/cli.js:127:181)\n    at UL (/$bunfs/root/src/entrypoints/cli.js:129:54)\n    at aV5 (/$bunfs/root/src/entrypoints/cli.js:8220:8927)\n    at j (/$bunfs/root/src/entrypoints/cli.js:8220:8144)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8220:8474)\n    at fF (/$bunfs/root/src/entrypoints/cli.js:476:63166)\n    at X3H (/$bunfs/root/src/entrypoints/cli.js:476:76219)","timestamp":"2026-04-15T07:12:25.070Z"},{"error":"Error: File does not exist. Note: your current working directory is /Users/wesh/Documents/Anthropic Workspace/Playground/Remote IDE test/claude-ide-bridge.\n    at call (/$bunfs/root/src/entrypoints/cli.js:4544:7630)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:13:48.680Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:115:13344)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:114:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:117:2467)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:21:29.239Z"},{"error":"Error: 1P event logging: 2 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:425:2574)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:21:44.068Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at DI1 (/$bunfs/root/src/entrypoints/cli.js:2340:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:23:35.584Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at DI1 (/$bunfs/root/src/entrypoints/cli.js:2340:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:23:35.584Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at DI1 (/$bunfs/root/src/entrypoints/cli.js:2340:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:23:35.584Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: timeout of 30000ms exceeded\n    at DI1 (/$bunfs/root/src/entrypoints/cli.js:2340:5253)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:23:35.584Z"},{"error":"Error: 1P event logging: 1 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:425:2574)\n    at async doExport (/$bunfs/root/src/entrypoints/cli.js:425:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:31:46.307Z"},{"error":"McpToolCallError: {\"error\":\"Command must not contain shell metacharacters (;&|`$()<>{}!\\\\~). These could chain additional commands beyond the allowlist.\"}\n    at xh9 (/$bunfs/root/src/entrypoints/cli.js:1772:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:40:18.401Z"},{"error":"McpToolCallError: {\"error\":\"Terminal index-based lookup is not supported when multiple agent sessions are active. Use terminal name instead (from listTerminals). Index 0 in your session refers to a different global index than in VS Code.\"}\n    at xh9 (/$bunfs/root/src/entrypoints/cli.js:1772:63)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T07:42:02.229Z"},{"error":"Error: Tool mcp__claude-ide-bridge__runInTerminal not found\n    at cs9 (/$bunfs/root/src/entrypoints/cli.js:2410:30176)\n    at XJ (/$bunfs/root/src/entrypoints/cli.js:476:21016)\n    at aw (/$bunfs/root/src/entrypoints/cli.js:476:39566)\n    at Sn (/$bunfs/root/src/entrypoints/cli.js:476:50275)\n    at UPH (/$bunfs/root/src/entrypoints/cli.js:476:86959)\n    at ZmH (/$bunfs/root/src/entrypoints/cli.js:476:85921)\n    at Fn (/$bunfs/root/src/entrypoints/cli.js:476:85742)\n    at RHH (/$bunfs/root/src/entrypoints/cli.js:476:82101)\n    at WH (/$bunfs/root/src/entrypoints/cli.js:476:

Note: Content was truncated.

extent analysis

TL;DR

The issue is likely related to timeouts and connection errors, and increasing the timeout values or checking the network connection may help resolve the problem.

Guidance

  • Check the network connection to ensure it is stable and not causing the timeouts.
  • Consider increasing the timeout values (e.g., 5000ms, 10000ms, 30000ms) to allow for more time to complete the operations.
  • Verify that the URLs being accessed (e.g., https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest) are correct and accessible.
  • Review the error messages for any specific clues about the cause of the issue, such as the McpToolCallError messages indicating issues with terminal index-based lookup or command validation.

Example

No specific code snippet can be provided without more context, but reviewing the cli.js file at the mentioned lines (e.g., 53, 126, 2340) may help identify the source of the errors.

Notes

The provided content was truncated, so it is possible that additional error messages or context are missing. The guidance provided is based on the available information and may not fully address the issue.

Recommendation

Apply a workaround by increasing the timeout values or checking the network connection, as the root cause of the issue is not entirely clear from the provided information.

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

claude-code - 💡(How to fix) Fix [Bug] Session Usage Data Disappears After New Session Initialization [1 comments, 2 participants]