[... rest of the file remains unchanged ...]

Describe the Bug

Composer keeps deleting the existing code entirely, displaying the message ‘[… rest of the file remains unchanged …]’, and it does not work."

Steps to Reproduce

allways

Expected Behavior

[… rest of the file remains unchanged …]

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

버전: 0.43.6
커밋: 1.93.1
날짜: a846435528b4b760494a836f96f0739889253530
Electron: 2024-12-06T05:11:55.168Z
ElectronBuildId: 30.5.1
Chromium: undefined
Node.js: 124.0.6367.243
V8: 20.16.0
OS: 12.4.254.20-electron.0

Additional Information

Whenever I add a command, only a very short portion of the code gets reflected with the message ‘[… rest of the file remains unchanged …]’, and it seems like the changes are not being applied. Despite requesting a minor modification in a 1600-line code, it drastically reduced to 300 lines.

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. Are you using any rules for the Cursor? Additionally, could you let us know which model you’re using?

1 Like

bende de aynı sorun var ne kadar kural eklesemde composer agent modunda dosyayı geliştirmeye devam etmiyor. Mevcut kodları silip yenilerini ekliyor. Pro kullanıcıyım hiç memnun değilim.

1 Like

getting this error all the time

Eventually, I removed the code and started anew.

i got the same problem , My feeling is that a combination of claude 3.5 sonnet (no 200k version) context limitations and multi-agent communication from the official team caused this error,After all, claude 3.5 -200K is too expensive. Officials may have to cancel it in favor of the cheaper claude 3.5 + multi-agent coalition

I’m also having this happen quite frequently. The edit is incomplete (for my React component) and it completely breaks the file by deleting a bunch of unchanged code, including the default export of the component.