[BUG] File has been unexpectedly modified

Resolved 💬 8 comments Opened Sep 11, 2025 by FabioSimoDev Closed Jan 9, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

when claude try to edit a file it fails with the error File has been unexpectedly modified. claude then proceed to re-read the file and retry, but the same error appear. this is CRUCIAL, because my claude subscription is useless now.

What Should Happen?

it should be able to edit the file

Error Messages/Logs

Steps to Reproduce

open claude code
try to edit a file (even files that are not generate by claude get this error)

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

1.0.111

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

THIS IS NOT a duplicate, this error needs to be seen.

View original on GitHub ↗

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