[BUG] MODEL KEEPS LOCKING ITSELF OUT OF THE FILE ITS EDDITING.

Resolved 💬 3 comments Opened Jan 7, 2026 by EVE-INC Closed Jan 10, 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?

I literally restart VS Code, Claude makes a file change and pushed for device over metro, i tell it ineed a correction, second file edit attempt it tells me file is locked and being edited (its not, only claude code is working with a local file). Then claude code proceeds using SED, Bash scripts, overwriting entire files, creating new files ,restoring back-ups, overwriting progress and burns through tokens for NO REASON). Have to restart VS code every 20 minutes a this point

What Should Happen?

I literally restart VS Code, Claude makes a file change and pushed for device over metro, i tell it ineed a correction, second file edit attempt it tells me file is locked and being edited (its not, only claude code is working with a local file). Then claude code proceeds using SED, Bash scripts, overwriting entire files, creating new files ,restoring back-ups, overwriting progress and burns through tokens for NO REASON). Have to restart VS code every 20 minutes a this point

Error Messages/Logs

Steps to Reproduce

I literally restart VS Code, Claude makes a file change and pushed for device over metro, i tell it ineed a correction, second file edit attempt it tells me file is locked and being edited (its not, only claude code is working with a local file). Then claude code proceeds using SED, Bash scripts, overwriting entire files, creating new files ,restoring back-ups, overwriting progress and burns through tokens for NO REASON). Have to restart VS code every 20 minutes a this point

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

current

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

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