claude-code - 💡(How to fix) Fix [Bug] Claude Code repeats responses excessively consuming token quota [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#54581Fetched 2026-04-30 06:41:44
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×3closed ×1commented ×1

Error Message

[{"error":"Error: ENOENT: no such file or directory, unlink 'C:\Users\DIETRI~1\AppData\Local\Temp\claude\C--Users-DietrichSchrag-Projects-CampComm\d4ccbb47-3e90-437f-a41c-51c887982b2a\tasks\abc96828a034b065e.output'\n at async <anonymous> (B:/BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:41:15.302Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\Users\DIETRI1\AppData\Local\Temp\claude\C--Users-DietrichSchrag-Projects-CampComm\d4ccbb47-3e90-437f-a41c-51c887982b2a\tasks\a06fae4850ed79308.output'\n at async <anonymous> (B:/BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:42:03.347Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\Users\DIETRI1\AppData\Local\Temp\claude\C--Users-DietrichSchrag-Projects-CampComm\d4ccbb47-3e90-437f-a41c-51c887982b2a\tasks\acdd444cf49f4a762.output'\n at async <anonymous> (B:/BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:42:34.260Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\Users\DIETRI1\AppData\Local\Temp\claude\C--Users-DietrichSchrag-Projects-CampComm\d4ccbb47-3e90-437f-a41c-51c887982b2a\tasks\adfac8e9360ce9bff.output'\n at async <anonymous> (B:/BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:44:21.251Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\Users\DIETRI1\AppData\Local\Temp\claude\C--Users-DietrichSchrag-Projects-CampComm\d4ccbb47-3e90-437f-a41c-51c887982b2a\tasks\a31b7be6eeb98235d.output'\n at async <anonymous> (B:/BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:45:00.350Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\Users\DIETRI1\AppData\Local\Temp\claude\C--Users-DietrichSchrag-Projects-CampComm\d4ccbb47-3e90-437f-a41c-51c887982b2a\tasks\a352351bbd0897792.output'\n at async <anonymous> (B:/BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:45:20.553Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\Users\DIETRI1\AppData\Local\Temp\claude\C--Users-DietrichSchrag-Projects-CampComm\d4ccbb47-3e90-437f-a41c-51c887982b2a\tasks\a019caac266fe81d9.output'\n at async <anonymous> (B:/BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:46:13.148Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\Users\DIETRI1\AppData\Local\Temp\claude\C--Users-DietrichSchrag-Projects-CampComm\d4ccbb47-3e90-437f-a41c-51c887982b2a\tasks\afcd49916645c79fc.output'\n at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:54:25.953Z"},{"error":"MaxFileReadTokenExceededError: File content (88358 tokens) exceeds maximum allowed tokens (25000). 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 yR_ (B:/BUN/root/src/entrypoints/cli.js:4845:12722)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-25T19:54:36.371Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\Users\DIETRI1\AppData\Local\Temp\claude\C--Users-DietrichSchrag-Projects-CampComm\d4ccbb47-3e90-437f-a41c-51c887982b2a\tasks\a12422eff94acfe82.output'\n at async <anonymous> (B:/BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:56:01.837Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\Users\DIETRI1\AppData\Local\Temp\claude\C--Users-DietrichSchrag-Projects-CampComm\d4ccbb47-3e90-437f-a41c-51c887982b2a\tasks\a12bac625049ac6a6.output'\n at async <anonymous> (B:/BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:57:24.186Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\Users\DIETRI1\AppData\Local\Temp\claude\C--Users-DietrichSchrag-Projects-CampComm\d4ccbb47-3e90-437f-a41c-51c887982b2a\tasks\a4091fb058ebb93df.output'\n at async <anonymous> (B:/BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T20:02:56.446Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\Users\DIETRI1\AppData\Local\Temp\claude\C--Users-DietrichSchrag-Projects-CampComm\d4ccbb47-3e90-437f-a41c-51c887982b2a\tasks\aa8fb15ccf610060e.output'\n at async <anonymous> (B:/BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T20:03:36.769Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\Users\DIETRI1\AppData\Local\Temp\claude\C--Users-DietrichSchrag-Projects-CampComm\d4ccbb47-3e90-437f-a41c-51c887982b2a\tasks\ab0cdc19eebf130bc.output'\n …

Code Example

[{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\abc96828a034b065e.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:41:15.302Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\a06fae4850ed79308.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:42:03.347Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\acdd444cf49f4a762.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:42:34.260Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\adfac8e9360ce9bff.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:44:21.251Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\a31b7be6eeb98235d.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:45:00.350Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\a352351bbd0897792.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:45:20.553Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\a019caac266fe81d9.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:46:13.148Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\afcd49916645c79fc.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:54:25.953Z"},{"error":"MaxFileReadTokenExceededError: File content (88358 tokens) exceeds maximum allowed tokens (25000). 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 yR_ (B:/~BUN/root/src/entrypoints/cli.js:4845:12722)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-25T19:54:36.371Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\a12422eff94acfe82.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:56:01.837Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\a12bac625049ac6a6.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:57:24.186Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\a4091fb058ebb93df.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T20:02:56.446Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\aa8fb15ccf610060e.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T20:03:36.769Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\ab0cdc19eebf130bc.output'\n …
RAW_BUFFERClick to expand / collapse

Bug Description Ckaude Code repeats answers again and again based on my Tokens - this is not acceptable. This happens now for three days and was also experienced by other users

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 2.1.119
  • Feedback ID: 1fbb8d38-805d-4dd5-bf57-469c0458519e

Errors

[{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\abc96828a034b065e.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:41:15.302Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\a06fae4850ed79308.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:42:03.347Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\acdd444cf49f4a762.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:42:34.260Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\adfac8e9360ce9bff.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:44:21.251Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\a31b7be6eeb98235d.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:45:00.350Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\a352351bbd0897792.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:45:20.553Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\a019caac266fe81d9.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:46:13.148Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\afcd49916645c79fc.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:54:25.953Z"},{"error":"MaxFileReadTokenExceededError: File content (88358 tokens) exceeds maximum allowed tokens (25000). 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 yR_ (B:/~BUN/root/src/entrypoints/cli.js:4845:12722)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-25T19:54:36.371Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\a12422eff94acfe82.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:56:01.837Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\a12bac625049ac6a6.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T19:57:24.186Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\a4091fb058ebb93df.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T20:02:56.446Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\aa8fb15ccf610060e.output'\n    at async <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:8696:299)","timestamp":"2026-04-25T20:03:36.769Z"},{"error":"Error: ENOENT: no such file or directory, unlink 'C:\\Users\\DIETRI~1\\AppData\\Local\\Temp\\claude\\C--Users-DietrichSchrag-Projects-CampComm\\d4ccbb47-3e90-437f-a41c-51c887982b2a\\tasks\\ab0cdc19eebf130bc.output'\n …

Note: Content was truncated.

extent analysis

TL;DR

The issue is likely caused by the MaxFileReadTokenExceededError due to exceeding the maximum allowed tokens, and the repeated errors are a result of the system attempting to unlink non-existent files.

Guidance

  • The MaxFileReadTokenExceededError suggests that the file content exceeds the maximum allowed tokens (25000), so consider using offset and limit parameters to read specific portions of the file.
  • The repeated ENOENT errors may be a result of the system attempting to unlink files that do not exist, potentially due to a previous error or issue with the file system.
  • Check the file system and temporary directory for any issues or corruption that may be causing the errors.
  • Consider increasing the maximum allowed tokens or optimizing the file reading process to reduce the number of tokens being read.

Example

No code example is provided as the issue is related to a specific error and file system issue, rather than a code snippet.

Notes

The content of the issue was truncated, so it is possible that there may be additional information or errors that are not visible. The provided guidance is based on the available information and may not be comprehensive.

Recommendation

Apply a workaround by using offset and limit parameters to read specific portions of the file, or optimize the file reading process to reduce the number of tokens being read, as the MaxFileReadTokenExceededError is the most likely cause of 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