claude-code - 💡(How to fix) Fix [Bug] File overwrite without confirmation loses user changes

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…

Error Message

[{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/jon/Documents/GitHub/loxation-sw'\n at oYH (/$bunfs/root/src/entrypoints/cli.js:1648:144)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T16:24:08.636Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (39396 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 UHK (/$bunfs/root/src/entrypoints/cli.js:4946:13303)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T19:01:29.619Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (63154 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 UHK (/$bunfs/root/src/entrypoints/cli.js:4946:13303)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T20:06:27.803Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (31911 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 UHK (/$bunfs/root/src/entrypoints/cli.js:4946:13303)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T22:44:07.337Z"},{"error":"SyntaxError: JSON Parse error: Property name must be a string literal\n at <parse> (:0)\n at parse (unknown)\n at owq (/$bunfs/root/src/entrypoints/cli.js:182:10088)\n at O (/$bunfs/root/src/entrypoints/cli.js:138:18426)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:184:1658)\n at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5267:743)\n at map (native:1:11)\n at N2_ (/$bunfs/root/src/entrypoints/cli.js:5267:561)\n at DSK (/$bunfs/root/src/entrypoints/cli.js:9089:11780)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T22:46:05.197Z"}]

Code Example

[{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/jon/Documents/GitHub/loxation-sw'\n    at oYH (/$bunfs/root/src/entrypoints/cli.js:1648:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T16:24:08.636Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (39396 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 UHK (/$bunfs/root/src/entrypoints/cli.js:4946:13303)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T19:01:29.619Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (63154 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 UHK (/$bunfs/root/src/entrypoints/cli.js:4946:13303)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T20:06:27.803Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (31911 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 UHK (/$bunfs/root/src/entrypoints/cli.js:4946:13303)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T22:44:07.337Z"},{"error":"SyntaxError: JSON Parse error: Property name must be a string literal\n    at <parse> (:0)\n    at parse (unknown)\n    at owq (/$bunfs/root/src/entrypoints/cli.js:182:10088)\n    at O (/$bunfs/root/src/entrypoints/cli.js:138:18426)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:184:1658)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5267:743)\n    at map (native:1:11)\n    at N2_ (/$bunfs/root/src/entrypoints/cli.js:5267:561)\n    at DSK (/$bunfs/root/src/entrypoints/cli.js:9089:11780)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T22:46:05.197Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description claude overwrote my project, loosing changes i made

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.143
  • Feedback ID: f452c5dd-2878-4bd0-8d8f-b46fa5ea6fd1

Errors

[{"error":"Error: EISDIR: illegal operation on a directory, read '/Users/jon/Documents/GitHub/loxation-sw'\n    at oYH (/$bunfs/root/src/entrypoints/cli.js:1648:144)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T16:24:08.636Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (39396 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 UHK (/$bunfs/root/src/entrypoints/cli.js:4946:13303)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T19:01:29.619Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (63154 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 UHK (/$bunfs/root/src/entrypoints/cli.js:4946:13303)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T20:06:27.803Z"},{"error":"MaxFileReadTokenExceededError: [REDACTED] content (31911 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 UHK (/$bunfs/root/src/entrypoints/cli.js:4946:13303)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T22:44:07.337Z"},{"error":"SyntaxError: JSON Parse error: Property name must be a string literal\n    at <parse> (:0)\n    at parse (unknown)\n    at owq (/$bunfs/root/src/entrypoints/cli.js:182:10088)\n    at O (/$bunfs/root/src/entrypoints/cli.js:138:18426)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:184:1658)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:5267:743)\n    at map (native:1:11)\n    at N2_ (/$bunfs/root/src/entrypoints/cli.js:5267:561)\n    at DSK (/$bunfs/root/src/entrypoints/cli.js:9089:11780)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-17T22:46:05.197Z"}]

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] File overwrite without confirmation loses user changes