"Apply" is overwriting the entire file

When trying to rewrite a small function, in a script with multiple other functions, clicking “Apply” now seems to overwrite everything. The result is a tiny file with just 1 corrected function. The rest of the page gets wiped out by “Apply”.

In other cases, Cursor suggests a corrected function that is extremely incomplete — leaving out many lines of additional instructions in the rewritten function. It’s also opening a new tab with the changed file — leaving me with two identically named tabs with different code.

Why is this happening now? Any insight? Cursor is useless for me today.

Hi @Bangkokian

Is this happening in other projects too? Could you check? Also, try starting a new chat session. It might fix the issue.

I’ve tried restarting the chat multiple times.

It looks like the chat responses I’m getting are "lazy’, like the ones in Claude often are. The responses tell me to finish “the rest of the function here” or “repeat this change on the rest of the elements”.

Apply doesn’t work in these cases as the code it gives me isn’t complete.

Just this project.

1 Like

Maybe two apply buttons can be implemented or apply all and one apply modified or something so it will only edit the modified functions (more deterministic, less random)