[BUG] Claude overwrites diff editor changes made in VS Code

Status Closed — not planned
Maintainer reply None cached
Activity 9 comments · opened Sep 26, 2025 · closed Feb 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?

While in manual approval mode, Claude disregards the code edits that a developer makes against Claude's suggested code changes.

What Should Happen?

Claude should preserve user code edits made to its suggested code changes.

Error Messages/Logs

Steps to Reproduce

  • Connect Claude Code to VS Code, have it suggest a file edit, make manual changes in the diff editor, save the editor, then approve the edit in the terminal.
  • Expected: Your modified version is applied.
  • Actual: Manual changes are discarded, and Claude's original suggestion is written.

--
UX audit trail show in screenshots.

Claude suggests:
"Sprig App Homepage" should change to "Sprig Commerce"

Before saying "Yes" to the changes, I make the minor edit:
"Sprig Commerce Homepage"

Click "Yes" to have Claude write the mixed user + LLM code changes.

Claude writes "Sprig Commerce", which is its original suggested code change rather than the expected string "Sprig Commerce Homepage"

  • Verified in 1.0.126

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.126

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

<img width="2650" height="3220" alt="Image" src="https://github.com/user-attachments/assets/07bb7b18-0b90-4c24-a11c-3a16fc9713b5" />
<img width="2656" height="3224" alt="Image" src="https://github.com/user-attachments/assets/8b622110-8db0-44ba-a9c7-5411a0497e82" />
<img width="2680" height="1648" alt="Image" src="https://github.com/user-attachments/assets/f2b7df6f-48f2-4e29-8ee1-bc4aa542967e" />

View original on GitHub ↗

9 Comments

github-actions[bot] · 1 year ago

Found 1 possible duplicate issue:

  1. https://github.com/anthropics/claude-code/issues/1317

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

dklanac · 1 year ago

The linked #1317 describes a new feature proposal that overlaps somewhat with this bug report. But I would say that this bug stands on its own as a regression that should be fixed. The behavior materially degrades the intended developer experience where the user collaborates with the agent.

dklanac · 1 year ago

Confirming that this is still an issue with the rewritten VS Code extension that comes with 2.0.1

github-actions[bot] · 10 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.

EdDanileyko · 9 months ago

Can confirm this is still a problem and is EXTREMELY frustrating

maritiren · 9 months ago

I just realized that all my manual changes to the Claude suggestions in my docs today where not added 😿. This is still an issue, I've tested for both the latest version and the version I was on.

My env:

  • Claude Code version: 2.0.76 and 2.1.3 (bug confirmed)
  • OS: Linux 6.14.0-37-generic (Ubuntu 24.04)
  • IDE: VSCode Extension

I'm excited about Claude Code's potential! However, I've noticed the UX gap between Claude Code and tools like GitHub Copilot is creating friction for users. I came across this tweet suggesting Claude Code might be a side project. If accurate, I'd suggest Anthropic consider adding more dedicated resources - given Claude's exceptional capabilities, many users expect the tooling to match that quality. The technical foundation is great, but the UX polish could benefit from more focused development. I genuinely want Claude Code to be my primary tool, so sharing this feedback as someone rooting for its success! Thanks for all the great work!

github-actions[bot] · 8 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.

marcindulak · 8 months ago

This issue was closed incorrectly despite recent human comments. This behavior of the bot is reported at https://github.com/anthropics/claude-code/issues/16497. Please upvote that issue, so maybe it gets noticed.

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.