Unintended Code Duplication and Deletion During Refactoring
Bug Description
Since yesterday I can see randomly deleted huge portion of my code. Today I saw big chunks of it copied with the same folder name followed by "2" at the end. In the IDE local history it's clearly visible that claude code added it. It's labaled as "external change" while I was not doing anything today and only claude code was doing the changes. Plus the time when these folders appered is exactly when claude code was doing some refactoring. When confronted with the topic it will not admit it did it and start checking for git staged changes or stash claiming it did nothing wrong. Yesterday I had the same with missing folder, today with coppied folders.
Environment Info
- Platform: darwin
- Terminal: webstorm
- Version: 1.0.84
- Feedback ID: b7ddb3f7-52ee-4379-b16d-7468f24fa808
Errors
[{"error":"SyntaxError: Unexpected token 'H', \"Here's a p\"... is not valid JSON\n at JSON.parse (<anonymous>)\n at file:///Users/yovoyovchev/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:718:9932\n at Q (file:///Users/yovoyovchev/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:677:13339)\n at jPB (file:///Users/yovoyovchev/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1875:29738)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-20T10:07:08.343Z"},{"error":"Error: Request was aborted.\n at aP.makeRequest (file:///Users/yovoyovchev/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:959:3840)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at runNextTicks (node:internal/process/task_queues:69:3)\n at process.processTimers (node:internal/timers:546:9)","timestamp":"2025-08-20T10:25:52.674Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗