Composer deltes good code

I’m having issues with composer deleting good code.
I’m working on an app and asked composer to help me create a edit field so my users could rename a device on the page.
Composer implememted the code for that and now the title can be edited and saved, however it deleted 30% of the good working code.
it’s not the first time this happend, white troubleshooting with composer, I’ve copyed some errors I was getting, and very ofthen it would fix the error but brake somehting else that was already working.
Has anyone experiecend issues like that?

3 Likes

The Composer feature often leads to a situation where some code is implemented and all the existing methods are deleted. This issue occurs frequently.

If you generate some files and then go in and change some things about them manually Cursor currently doesn’t (!) automatically become aware of your changes. And on next iteration it will rollback all of your changes!

I consider this a bug (I posted about it here) and believe it should on a priority list from Cursor team, since many of the reports in this forum might easily be coming from it.

2 Likes