Project level hooks not working

Cursor (Auto model) has begun to finish its work with more and more broken builds. Even on smallish refactors it tends to struggle with a lot of broken JSX syntax

This wouldnt be much of a problem if the project level hooks worked - I just want this to be ran after an agent has finished its work or task as a fallback check it all compiles.

Am I doing something wrong?

are you on windows? is the script executable (chmod +x on unix)?

Hey, thanks for the report, your configuration looks correct.

Could you check a few things:

  1. Settings > Hooks: does your hook show up as registered?
  2. View > Output > Cursor > Hooks: what does it show when the agent edits a file?
  3. Is the workspace marked as Trusted?
  4. Run chmod +x .cursor/hooks/format.sh if you haven’t already

Also, please share your Cursor version (Help > About). Some 2.1.x and 2.2.x versions had a hooks regression.