Hey @yaireo, thanks for the report and the screenshot!
Cursor 3.22 started running your repository’s git hooks (Husky, pre-commit, post-commit and so on) again for commits made from the Source Control panel. They were being skipped in earlier versions. The panel only marks the commit as done once git and everything a hook started have finished. So if a hook is slow, or starts something in the background, the button keeps spinning even though the commit is already created.
Could you try this and tell me what you see?
In the integrated terminal, in this repo, run git config core.hooksPath and ls .husky .git/hooks, and paste the output (ignore any *.sample files).
Make a small change, stage it, and run git commit -m "test" in the terminal. Does it return right away, or does it also take a while?
Make another small change and commit it from the Source Control panel.
Once it finishes, open View > Output, pick “Git” in the dropdown, and paste the git commit line (it shows how long it took).
In the meantime, committing from the terminal works as before. If you’re OK skipping the pre-commit and commit-msg hooks for a commit, you can also enable the git.allowNoVerifyCommit setting and use “Commit (No Verify)” from the Commit button dropdown.