Cursor adding 4k lines (claude 3.7 thinking) for a simple delete task

Hi.
Im working on a Drag Racing game whuch uses three.js and webgl.
I have been working with cursor intensively for over a week now and i have never had such issues.
The issue is: im giving it a simple task like delete something and it adds over 4k new lines. I try to change up the prompts and use different settings (not LLMs and its still the same). It somehow used up 13 prompt doing this.


Check the image (i made a new chat). also happens when i select the index.html. i also selected the part of the code that need to be deleted as a test and it deleted it for a couple seconds and add the 4k lines again.

pls help


It deleted it correctly now. But i stopped it just in time before it managed to add +4k lines. I tell it to delete anything and it adds 4k lines

ask it to break apart the file into smaller more manageable chunks. it can’t delete what it’s not working on

No matter what prompt i give it, it still adds these thousands of lines.

I believe you; i would suggest to include the following:
‘If a section is going to be more than 400 lines of code, can you please break it apart into separate files and import those sections’