tldr: accepting changes should automatically trigger
→ autogenerate commit message → commit
As you understand, for testing AI-proposed code changes, we HAVE to accept them.
As they may be across multiple files etc, it is hard to roll back if proper version control is not used.
So the natural solution is: make cursor use git without human supervision after each block of changes. My supervision should end with accepting changes. The grunt work of git mgmt should be done by cursor itself.
If out of all files proposed to update in a specific round of work, at least one is accepted, that should trigger a commit.