[Bug] Repeated Failed File Update Attempts on Single File

Status Closed — not planned
Maintainer reply None cached
Activity 14 comments · opened Oct 2, 2025 · closed Jan 8, 2026

Bug Description
After updating to v2.0.1 I've seen the model attempt multiple Update calls unsuccessfully:

 ● Update(scratch-pad-aws-training.md)
  ⎿  Error editing file

● Update(scratch-pad-aws-training.md)
  ⎿  Error editing file

● Update(scratch-pad-aws-training.md)
  ⎿  Error editing file

● Update(scratch-pad-aws-training.md)
  ⎿  Error editing file

● Update(scratch-pad-aws-training.md)
  ⎿  Error editing file

● Update(scratch-pad-aws-training.md)
  ⎿  Error editing file

● Read(scratch-pad-aws-training.md)
  ⎿  Read 40 lines (ctrl+o to expand)

● Update(scratch-pad-aws-training.md)
  ⎿  Error editing file

● Update(scratch-pad-aws-training.md)
  ⎿  Error editing file

Furthermore, I'm confused by the Update queuing behavior: meaning, the model will run multiple Update calls before prompting me to accept them. This is likely a waste of tokens, and it is certainly a waste of time (this problem is arguably separate from the current GitHub Issue, but I figured that they might be related).

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 2.0.1
  • Feedback ID: db1aa21f-9334-45ad-aa4c-fe915cd6df25

P.S. I am loving the update otherwise. Good work!

View original on GitHub ↗

14 Comments

rootdrew27 · 11 months ago

I believe the issue is caused by the file being included in my .gitignore file. If this is the desired behavior, then there is no bug.

JoMiPeCa · 10 months ago

Im having this issue since 2.0.5 after long hours sessions (after couple of compact)

Im on Windows 11 using PowerShell.

Its very annoying and even Claude is complaining and doing workaround to edit files because something has the file open when nothing has it opened.

JoMiPeCa · 10 months ago

Es commons-beanutils que viene como dependencia transitiva de opencsv el que trae commons-logging. Ahora sí, excluyámoslo correctamente:

● Update(WCS\build.gradle)
⎿  Error: File has been unexpectedly modified. Read it again before attempting to write it.

● Read(WCS\build.gradle)
⎿  Read 10 lines (ctrl+o to expand)

● Update(WCS\build.gradle)
⎿  Error: File has been unexpectedly modified. Read it again before attempting to write it.

● Déjame leer de nuevo el archivo completo:

● Read(WCS\build.gradle)
⎿  Read 103 lines (ctrl+o to expand)

● Update(WCS\build.gradle)
⎿  Error: File has been unexpectedly modified. Read it again before attempting to write it.

● Parece que el archivo está siendo modificado constantemente. Déjame usar Write en lugar de Edit para asegurarme de que se aplique el cambio:

● Bash(cat C:/Users/User/WCS/build.gradle)
⎿  plugins {
id 'java'
id 'org.springframework.boot' version '3.5.6'
… +99 lines (ctrl+o to expand)

● Ahora sí puedo ver el contenido completo. Voy a escribir el archivo con la exclusión:

● Write(WCS\build.gradle)
⎿  Error writing file

● Read(WCS\build.gradle)
⎿  Read 103 lines (ctrl+o to expand)

● Update(WCS\build.gradle)
⎿  Error: File has been unexpectedly modified. Read it again before attempting to write it.

● Parece que hay algo modificando el archivo constantemente (posiblemente un IDE o linter). Déjame intentar con sed directamente:

● Bash(cd C:/Users/User/WCS/

Perfect! with sed worked as expected.

neifgmbh · 10 months ago

Same issue here on Windows 11, Claude code version 2.0.9. It fails unexpectedly often with editing files. I never had such problems in previous versions.

jasonswearingen · 10 months ago

I am also seeing this. it makes claude extremely unreliable.

<img width="1099" height="567" alt="Image" src="https://github.com/user-attachments/assets/1c802006-0d36-4240-8806-b43e3b429d09" />

itavero · 10 months ago

Also seeing this on Windows 11 with Claude Code v2.0.24 in both Git Bash and Powershell.

github-actions[bot] · 8 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

itavero · 8 months ago

For me it usually helps if I tell it to use different slashes and/or relative paths instead of absolute paths (or vice versa).
Again, I do use Git Bash on Windows 11 most of the time, so it might have something todo with the "MSYS" path formatting, but I've also seen it happen in PowerShell.

jasonswearingen · 8 months ago

still issue, but obviously it will never be resolved. I wrote my own file-edit-mcp and claude switches to use that when the issue occurs, which is every session I peek on.

JoMiPeCa · 8 months ago

Yeah, still happens in Powershell... but sometimes is more randomly...

Sometimes I need to restart computer because closing all Powershell is not enough. others, Claude can be compacted 5 times and no issues at all.

Btw... Someone else has issues with "Yes. and dont ask again for similar commands in..." ??? I usually tell Claude that option and he kept popping out asking for permissions... mostly for Reading or listing files...

Also. When happens that Claude cant edit a file, it's the whole pack... "I need to read it... I need to read it again... Oh I will use other tool... Seems like something has it open... Im going to use other tool... Im going to use Python... Im going to use Bash... Im going to use SED...." I ended telling claude to "Create a new file with all editions and replace the file please!"

github-actions[bot] · 7 months ago

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

itavero · 7 months ago

For my reference, what more information is needed for Anthropic to act on this? I still get this almost every day I use Claude Code.

JoMiPeCa · 7 months ago

Some days I see Claude works good (in some versions Update and Write works good after Reading the file), and others, nothing works and Claude need to use SED/CAT with bash otherwise wont do anything...

So yeah, no sure what Anthropic need to act on this...

github-actions[bot] · 7 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.