Agent rewrites entire file every time

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Agent is rewriting full file every time. At least so does it look in UI, may be only display issue.

Steps to Reproduce

This is new file created by this agent.
May be random, but already happened to me twice in a row.

Expected Behavior

Agent only edits lines relevant to issue to reduce noise and save tokens.

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

For AI issues: which model did you use?

Composer 1.5

For AI issues: add Request ID with privacy disabled

da084045-68dc-4a9e-ac32-fa5ef0d2d297

Does this stop you from using Cursor

No - Cursor works, but with this issue

1 Like

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

I believe this has been reported many times in this thread