MAJOR Issue: lost files on commit + composer

I’m having a serious issue when trying to commit changes made by composer (and some by me). My workflow was like this:

  • working on a medium-sized git repo
  • made some changes iteratively with composer, saved changes in between
  • after some time, I notice that Cursor switched to some new branch, with some random generated name made of numbers and chars. I suspected this to be related to composer checkpointing mechanisms
  • accepted all changes finally
  • created a new branch from local workspace to not interfere with this other new branch created by cursor
  • commited and pushed

But then, after merging into main (!), I noticed that many changes were not committed actually, and I have no idea how that happened.

This is a major ‘game-breaking’ bug for me. Please tell me a way I can make sure this doesnt happen.

I’m on the currently newest version (not sure how to check specific one in cursor).

EDIT: I have NOT rejected any changes, as in this related issue