Code deletetions?

I have a question for the group here. I notice that many a time but not all the time, cursor will just go ahead and randomly delete my code. its extremely infuriating since if i ever make a mistake then that code is gone and I now need to restart the work from the last git checkin.
However i dont think this is happening due to the model itself. I have been using roo code/cline as well and they never ever delete any code and they also use the same model.
My question is why does cursor delete code when other competing clients dont delete any code? infact nowadays when there is some major refactor of the code for example breaking a large class into multiple smaller classes, i just use cline and it just works. i dont even have to spend too much brain power on checking the code that it generates. Cursor almost always fails. I was looking to understand whats going on here and more importantly what can one do to avoid these errors. If its a user error then perhaps i can make some simple changes to fix it, but I suspect its not since many other users have reported this issue to. Also I request the cursor dev’s to shed some light onto this matter. what is cursor doing that is causing this to happen.
I also want to add that I am big cursor supporter and love this product, but some of these outstanding issues make cursor look quite bad. Ultimately it doesnt matter how amazing the UI is if cursor delete random code.