Cursor Overwriting Entire File Instead of Applying Patches

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I’m experiencing an issue where the AI code suggestions are overwriting the entire file rather than applying specific fixes. Every time a change is suggested, the tool deletes all existing code and replaces it with a new block, leading to massive line deletions and additions (e.g., +490 -490) even for minor edits.

Steps to Reproduce

Use Sonnet 4.6
planning
executed

Expected Behavior

It should be possible to review specific logic changes.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Version: 2.6.11 (user setup)
VSCode Version: 1.105.1
Commit: 8c95649f251a168cc4bb34c89531fae7db4bd990
Date: 2026-03-03T18:57:48.001Z
Build Type: Stable
Release Track: Default
Electron: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.22000

For AI issues: which model did you use?

Sonnet 4.6

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

8 posts were merged into an existing topic: Laggy agent chat