Reject changes and it deletes the file

This is still happening

Exactly!

Can confirm, still happening and we’re looking for alternatives because of it

This is definitely a bug on our end, will lift this internally again

Whenever you encounter this, could you please do Cmd+Shift+P > “Report AI Usage”? This way we’ll be able to debug it!

I’m definitely looking at alternatives based on the bugginess of the latest update. The deleted files on rejection is a catastrophic bug and I have no idea how it made it through QA. Any ETA on when this will be resolved?

1 Like

I recommended avery credible alternative in the github copilot vs cursor thread which is much better than both. You can check it out if you want

The bugs keep coming and it’s not looking good… in addition to cursor just deleting your files if you “reject” a proposed change, it also completely updates the WRONG FILE if you try and apply changes to a newly created file. Essentially if you add a new file that’s proposed, no code is actually added when created, but when you “Apply” the code changes for the new file from the chat interface, it applies the changes to whatever file you were working on before (even if that file isn’t the selected tab and you’re focused on the newly created file).

I’m almost certain this is due to cursor using VS Code’s API incorrectly. File management is a huge mess with Cursor at the moment.

For those looking to restore the deleted file

Same. Seems to happen consistently if I:

  1. open a file
  2. apply a change
  3. accept
  4. save
  5. ctrl + z to get back to the old file state
  6. click the ‘reject’ button
  7. entire file is deleted from file system

OSX Sonoma 14.7 on an Apple M2 Pro Macbook Pro

Cursor Version: 0.42.3
VSCode Version: 1.93.1

This sounds like the CTRL+Z brings all the file contents into actionable context, thus when rejeting, cursors logic thinks that all lines returned to context are rejected, in this case, the whole file. Thus deleting it.

Can you check what your Cursor Yolo BlackList is for commands (I dont know if this affect ALL agents when Yolo is enable - or if it will even respect the setting:

was this file originally created by composer / chat? if so then when you reject, to clean up your state and not leave a lingering empty file, we delete it

@ericzakariasson This continues to be a major problem for my teams and they are starting to look into competing IDEs (with the understanding that all of these tools are evolving rapidly and have growing pains).

I know the Cursor team is probably swamped right now and have many other priorities, but it would be helpful to at least have a sense of where in Cursor’s bug priority list this particular issue sits (and ideally, when the team hopes to tackle it). Is there any info you can share on that? This would help my team decide whether to stick with Cursor for now or try other options. Thanks!

we want to fix this! not sure if you saw balta’s reply here

was this file originally created by composer / chat? if so then when you reject, to clean up your state and not leave a lingering empty file, we delete it

btw, are you on latest version?

Yes, I saw balta’s reply, which was helpful but doesn’t cover the ctrl/cmd-z issue (as far as I understand). Yep, on the latest version.

i hear you, it sounds annoying! could you please share a video snippet of the bug you’re seeing? would help a lot!

i haven’t figured out how to consistently reproduce it, but will share when i have

1 Like