claude-code - 💡(How to fix) Fix [Bug] Plan mode not exiting after accepting all edits in session [1 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#49029Fetched 2026-04-17 08:52:50
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/timmydhooghe/.local/share/claude/versions/2.1.109 (expected in multi-process scenarios)\n at yU_ (/$bunfs/root/src/entrypoints/cli.js:2342:2153)\n at Vs6 (/$bunfs/root/src/entrypoints/cli.js:2342:1233)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T06:28:09.844Z"},{"error":"FileTooLargeError: File content (278KB) exceeds maximum allowed size (256KB). 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 C1H (/$bunfs/root/src/entrypoints/cli.js:4438:15525)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T06:57:34.835Z"},{"error":"Error: Request was aborted.\n at JC_ (/$bunfs/root/src/entrypoints/cli.js:1290:12508)\n at next (native:1:11)\n at Pp7 (/$bunfs/root/src/entrypoints/cli.js:8037:4335)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T07:12:52.782Z"}]

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/timmydhooghe/.local/share/claude/versions/2.1.109 (expected in multi-process scenarios)\n    at yU_ (/$bunfs/root/src/entrypoints/cli.js:2342:2153)\n    at Vs6 (/$bunfs/root/src/entrypoints/cli.js:2342:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T06:28:09.844Z"},{"error":"FileTooLargeError: File content (278KB) exceeds maximum allowed size (256KB). 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 C1H (/$bunfs/root/src/entrypoints/cli.js:4438:15525)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T06:57:34.835Z"},{"error":"Error: Request was aborted.\n    at JC_ (/$bunfs/root/src/entrypoints/cli.js:1290:12508)\n    at next (native:1:11)\n    at Pp7 (/$bunfs/root/src/entrypoints/cli.js:8037:4335)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T07:12:52.782Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description When in plan mode, and when accepting an edit (phpStorm mcp enabled) by choosing 'yes, allow all edits in this session', claude code stays in plan mode and keeps asking for permission to change files, while it should exit plan mode and go into 'accept edits on' mode

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.1.109
  • Feedback ID: baf6d877-00bb-4d5a-a9f1-3694922930fe

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/timmydhooghe/.local/share/claude/versions/2.1.109 (expected in multi-process scenarios)\n    at yU_ (/$bunfs/root/src/entrypoints/cli.js:2342:2153)\n    at Vs6 (/$bunfs/root/src/entrypoints/cli.js:2342:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T06:28:09.844Z"},{"error":"FileTooLargeError: File content (278KB) exceeds maximum allowed size (256KB). 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 C1H (/$bunfs/root/src/entrypoints/cli.js:4438:15525)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T06:57:34.835Z"},{"error":"Error: Request was aborted.\n    at JC_ (/$bunfs/root/src/entrypoints/cli.js:1290:12508)\n    at next (native:1:11)\n    at Pp7 (/$bunfs/root/src/entrypoints/cli.js:8037:4335)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-16T07:12:52.782Z"}]

extent analysis

TL;DR

The issue may be resolved by adjusting the file size limits or handling the FileTooLargeError exception, as the error messages suggest issues with file sizes and lock acquisition.

Guidance

  • Investigate the FileTooLargeError and consider implementing a solution to handle large files, such as using offset and limit parameters to read specific portions of the file.
  • Review the lock acquisition mechanism to ensure it is properly handling multi-process scenarios, as indicated by the NON-FATAL: Lock acquisition failed error.
  • Check the version of the software and dependencies to ensure they are up-to-date, as the issue may be related to a known bug that has been fixed in a later version.
  • Consider testing the application with a smaller file size to isolate the issue and determine if it is related to the file size or another factor.

Example

No code example is provided as the issue does not contain sufficient information to create a specific code snippet.

Notes

The issue may be related to a combination of factors, including file size limits, lock acquisition, and version compatibility. Further investigation is needed to determine the root cause of the issue.

Recommendation

Apply workaround: The FileTooLargeError exception suggests that the issue may be related to file size limits, so adjusting these limits or implementing a solution to handle large files may resolve 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