After a few too many surprises, I set a rule with Cursor today: "We won't submit a PR unless I explicitly ask you to." Every change gets checked by me, in the browser, before anyone else sees it. In a repository other people depend on, I want to be the one deciding when my work is ready, not the AI.
Another lesson learned the hard way. I never thought I'd have to say "don't do something I didn't ask you to," but an AI is just trying to be helpful, and sometimes it gets it wrong. New rule for the AI rulebook!