claude-code - 💡(How to fix) Fix [Bug] Claude Code not retaining task list items and skipping tasks during execution [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#54795Fetched 2026-04-30 06:35:47
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×3commented ×1

Error Message

[{"error":"MaxFileReadTokenExceededError: File content (48282 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-29T12:03:06.082Z"},{"error":"Error: File does not exist. Note: your current working directory is C:\Users\jacque.trahan\Documents\TechneauxModuleScripts\ImportExportTool.\n at call (B:/~BUN/root/src/entrypoints/cli.js:4858:7647)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T14:33:03.531Z"}]

Code Example

[{"error":"MaxFileReadTokenExceededError: File content (48282 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-29T12:03:06.082Z"},{"error":"Error: File does not exist. Note: your current working directory is C:\\Users\\jacque.trahan\\Documents\\TechneauxModuleScripts\\ImportExportTool.\n    at call (B:/~BUN/root/src/entrypoints/cli.js:4858:7647)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T14:33:03.531Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description absolutly horrible today. it keeps coding when i tell it now to at all. We have a list built for thing that need to be done and when i ask for the calude full list to match mine it refuses to give it to me. I had to make a side list beacseu claude is not retaining the item that need to be done and jsut skips stuff so i constantly compare my list to caldue to be sure we are on the same page. 9/10 claude leaves stuff out

Environment Info

  • Platform: win32
  • Terminal: pycharm
  • Version: 2.1.119
  • Feedback ID: 0e554544-e223-47c5-bccf-c7cf71f94715

Errors

[{"error":"MaxFileReadTokenExceededError: File content (48282 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-29T12:03:06.082Z"},{"error":"Error: File does not exist. Note: your current working directory is C:\\Users\\jacque.trahan\\Documents\\TechneauxModuleScripts\\ImportExportTool.\n    at call (B:/~BUN/root/src/entrypoints/cli.js:4858:7647)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-29T14:33:03.531Z"}]

extent analysis

TL;DR

The issue can likely be mitigated by adjusting the file reading approach to use offset and limit parameters or searching for specific content instead of reading the entire file.

Guidance

  • The MaxFileReadTokenExceededError suggests that the file being read exceeds the maximum allowed tokens, so consider implementing pagination or partial file reads.
  • Verify the file path and existence before attempting to read it, as indicated by the File does not exist error.
  • Check the current working directory (C:\\Users\\jacque.trahan\\Documents\\TechneauxModuleScripts\\ImportExportTool) to ensure it's correct and the file is located there.
  • Review the cli.js file (specifically lines 4845 and 4858) for potential issues with file handling.

Example

No specific code example can be provided without more context, but consider using parameters like offset and limit when reading files to avoid exceeding token limits.

Notes

The provided errors and environment information suggest a potential issue with file handling in the cli.js file, but without more details about the code or the specific use case, it's difficult to provide a more targeted solution.

Recommendation

Apply a workaround by adjusting the file reading approach to avoid exceeding the maximum allowed tokens, as this seems to be the most direct way to address the MaxFileReadTokenExceededError.

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