Steps:
- Put the text caret somewhere in code
- Click Edit
- Enter the prompt and press Enter
- Click Apply on the code suggestion block
- Your code in some other recently edited files is a completely broken mess, like removed indentation, removed line breaks, etc. Using Undo results in a Frankenstein code where the text strings are a weird merge of your original code and broken code introduced by Cursor bug, so it breaks the editing history as well.
- The IDE is in a broken state, for example when you open any file and scroll the code, it can have multiple lines sticked to the top.
Unfortunately, I haven’t made any screenshots, as I was focused on trying to salvage the situation, recover my work and migrate to another tool.
I had the same “broken code in another unrelated file” situation before in Cursor, and I think it happened after I clicked Apply in the Chat panel.
It was after my premium requests quota has expired as well.
Free version with expired premium requests quota.
Google Gemini 1206 configured as the single AI model available in the settings.
Windows 11, latest Cursor version (0.44.11).
The issue makes Cursor unusable for me, since now I know there are bugs that can destroy my work, and I’m not completely sure they are isolated in the Apply functionality and won’t be triggered by something else as well.