claude-code - 💡(How to fix) Fix [Bug] CLI freezes and becomes unresponsive during idle periods [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#48235Fetched 2026-04-15 06:29:23
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3closed ×1commented ×1

Error Message

[{"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-15T02:10:03.497Z"},{"error":"MaxFileReadTokenExceededError: File content (25472 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at cO7 (/$bunfs/root/src/entrypoints/cli.js:4537:12021)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T02:12:15.543Z"},{"error":"MaxFileReadTokenExceededError: File content (15092 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n at cO7 (/$bunfs/root/src/entrypoints/cli.js:4537:12021)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T02:12:15.557Z"}]

Code Example

[{"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-15T02:10:03.497Z"},{"error":"MaxFileReadTokenExceededError: File content (25472 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at cO7 (/$bunfs/root/src/entrypoints/cli.js:4537:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T02:12:15.543Z"},{"error":"MaxFileReadTokenExceededError: File content (15092 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at cO7 (/$bunfs/root/src/entrypoints/cli.js:4537:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T02:12:15.557Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description its getting stuck and freeze to often and dies out out of idle state

Environment Info

  • Platform: linux
  • Terminal: zed
  • Version: 2.1.108
  • Feedback ID: e35f5906-3e30-4f0b-86fb-74a490d3c0e3

Errors

[{"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-15T02:10:03.497Z"},{"error":"MaxFileReadTokenExceededError: File content (25472 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at cO7 (/$bunfs/root/src/entrypoints/cli.js:4537:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T02:12:15.543Z"},{"error":"MaxFileReadTokenExceededError: File content (15092 tokens) exceeds maximum allowed tokens (10000). Use offset and limit parameters to read specific portions of the file, or search for specific content instead of reading the whole file.\n    at cO7 (/$bunfs/root/src/entrypoints/cli.js:4537:12021)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-15T02:12:15.557Z"}]

extent analysis

TL;DR

The issue can be mitigated by implementing pagination or limiting the file content read using offset and limit parameters to avoid exceeding the maximum allowed tokens.

Guidance

  • The errors suggest that the application is trying to read large files, exceeding the maximum allowed tokens (10000), which is causing the application to freeze or crash.
  • To verify the issue, check the file sizes being read and the current token limits.
  • Consider implementing pagination or limiting the file content read to specific portions using offset and limit parameters as suggested in the error messages.
  • Review the cli.js file, specifically lines 50:3448 and 4537:12021, to understand how file reading is handled and where the token limits are being exceeded.

Example

No code example is provided as the issue does not contain sufficient information about the code structure or the specific functions being used.

Notes

The provided solution is based on the error messages and may not be the only cause of the issue. Further investigation into the application's file reading mechanisms and token limits may be necessary.

Recommendation

Apply workaround: Implement pagination or limit file content reads to avoid exceeding the maximum allowed tokens, as this directly addresses the errors reported and is a straightforward step to mitigate the 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

claude-code - 💡(How to fix) Fix [Bug] CLI freezes and becomes unresponsive during idle periods [1 comments, 2 participants]