Error: File has been unexpectedly modified. Read it again before attempting to write it
Resolved 💬 11 comments Opened Nov 25, 2025 by luizrossetti Closed Feb 27, 2026
I'm having the issue 'Error: File has been unexpectedly modified. Read it again before attempting to write it' persistently after updating to version 2.0.52, making it impossible to use the tool properly.
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 2.0.52
- Feedback ID: f8492b10-1fa5-414d-80b9-9e7db08ee6c8
Errors
[{"error":"Error: File has been unexpectedly modified. Read it again before attempting to write it.\n at Object.call (file:///C:/Users/luizr/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2106:754)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Gh5 (file:///C:/Users/luizr/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2219:20784)","timestamp":"2025-11-25T01:43:39.119Z"}]This issue has 11 comments on GitHub. Read the full discussion on GitHub ↗