Ok, so I’ve come against a really nasty problem multiple times when trying to resubmit prompts. Entire projects get deleted from the codebase.
Before explaining the issue in detail let me go over the reasons for resubmitting prompts - as they are many and I can’t pinpoint which exactly triggers this problem (in all instances, I am connecting to a server machine through SSH with Cursor):
- The connection to the server dies and for whatever reason only reloading the window works - so I have to resubmit the prompt.
- Prompt is stuck for a very long time and I don’t see any “thinking” or some other signs of life. I stop and resubmit.
- Flat out connection error that gets reported to me in the prompt window and then I resubmit.
- I didn’t like the prompt, so I stop it, change and resubmit.
In some of all these instances, a new option appears:
- Revert to last prompt and continue.
- Continue without reverting.
I have tried “Revert to last prompt and continue” without experiencing any problems, but I think that sometimes it is this option that deletes the entire codebase. And it’s not like it reverts to the last git commit. I noticed it actually delete files that had edits - not just newly created ones - because git changes reports deleted file.
This tells me that I should never use the “Revert” option lest I lose days of work. Well I don’t mind that, but then what does option 2 do? This is both confusing and extremely harmful. This should be promptly addressed or please simply remove cursor’s DELETE EVERYTHING feature - because this is clearly a bug and not a feature and an extremely harmful one.