[Bug] Claude executing dangerous commands (rm -rf) instead of targeted file operations

Resolved 💬 3 comments Opened Nov 7, 2025 by matssun Closed Nov 10, 2025

Bug Description
Claude is totally off now. Doing all kind of error all the time and when he shall delete one file he tries to do rm -rf on a whole directory. All morning it has been like this. WHAT HAVE YOU DONE?

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.0.32
  • Feedback ID: 6c3543ea-c248-4f2d-921f-ddd4a5bfdacb

Errors

[{"error":"Error: Lock file is already being held\n    at <anonymous> (/$bunfs/root/claude:82:11767)\n    at J (/$bunfs/root/claude:81:5135)\n    at <anonymous> (node:fs:243:13)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-05T16:43:05.658Z"},{"error":"Error: Lock file is already being held\n    at <anonymous> (/$bunfs/root/claude:82:11767)\n    at J (/$bunfs/root/claude:81:5135)\n    at <anonymous> (node:fs:243:13)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-05T17:13:05.735Z"},{"error":"Error: Lock file is already being held\n    at <anonymous> (/$bunfs/root/claude:82:11767)\n    at J (/$bunfs/root/claude:81:5135)\n    at <anonymous> (node:fs:243:13)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-05T17:43:05.404Z"},{"error":"Error: Lock file is already being held\n    at <anonymous> (/$bunfs/root/claude:82:11767)\n    at J (/$bunfs/root/claude:81:5135)\n    at <anonymous> (node:fs:243:13)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-05T18:22:49.688Z"},{"error":"Error: Lock file is already being held\n    at <anonymous> (/$bunfs/root/claude:82:11767)\n    at J (/$bunfs/root/claude:81:5135)\n    at <anonymous> (node:fs:243:13)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-05T18:57:31.849Z"},{"error":"Error: Lock file is already being held\n    at <anonymous> (/$bunfs/root/claude:82:11767)\n    at J (/$bunfs/root/claude:81:5135)\n    at <anonymous> (node:fs:243:13)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-05T19:36:40.254Z"},{"error":"Error: Lock file is already being held\n    at <anonymous> (/$bunfs/root/claude:82:11767)\n    at J (/$bunfs/root/claude:81:5135)\n    at <anonymous> (node:fs:243:13)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-05T21:34:21.285Z"},{"error":"Error: Lock file is already being held\n    at <anonymous> (/$bunfs/root/claude:82:11767)\n    at J (/$bunfs/root/claude:81:5135)\n    at <anonymous> (node:fs:243:13)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-06T10:41:39.916Z"},{"error":"Error: Lock file is already being held\n    at <anonymous> (/$bunfs/root/claude:82:11767)\n    at J (/$bunfs/root/claude:81:5135)\n    at <anonymous> (node:fs:243:13)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-06T11:11:39.870Z"},{"error":"Error: Lock file is already being held\n    at <anonymous> (/$bunfs/root/claude:82:11767)\n    at J (/$bunfs/root/claude:81:5135)\n    at <anonymous> (node:fs:243:13)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-06T11:41:39.816Z"},{"error":"Error: Lock file is already being held\n    at <anonymous> (/$bunfs/root/claude:82:11767)\n    at J (/$bunfs/root/claude:81:5135)\n    at <anonymous> (node:fs:243:13)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-06T12:11:39.806Z"},{"error":"Error: Lock file is already being held\n    at <anonymous> (/$bunfs/root/claude:82:11767)\n    at J (/$bunfs/root/claude:81:5135)\n    at <anonymous> (node:fs:243:13)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-06T12:41:40.137Z"},{"error":"Error: Lock file is already being held\n    at <anonymous> (/$bunfs/root/claude:82:11767)\n    at J (/$bunfs/root/claude:81:5135)\n    at <anonymous> (node:fs:243:13)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-06T13:11:39.885Z"},{"error":"Error: Lock file is already being held\n    at <anonymous> (/$bunfs/root/claude:82:11767)\n    at J (/$bunfs/root/claude:81:5135)\n    at <anonymous> (node:fs:243:13)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-06T13:41:39.945Z"},{"error":"Error: Lock file is already being held\n    at <anonymous> (/$bunfs/root/claude:82:11767)\n    at J (/$bunfs/root/claude:81:5135)\n    at <anonymous> (node:fs:243:13)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-11-06T14:11:39.895Z"},{"error":"Error: Lock file is already being held\n    at <anonymous> (/$bunfs/root/claude:82:11767)\n    at J (/$bunfs/root/claude:81:5135)\n    at <anonymous> (node:fs:243:13)\n    at processTicks

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗