Hey, thanks for the report. We’re seeing a few similar posts about hooks on Windows in 2.1.x: Hooks are not working anymore, Hooks still not working properly in 2.1.6. We need details to lock down the bug and pass it to engineering.
Please send:
- The contents of your hooks.json and where it’s located:
C:\ProgramData\Cursor\hooks.json,~/.cursor/hooks.json, or<project>/.cursor/hooks.json - Which events you use and the exact commands you run (include full paths, try an absolute path for testing)
- Script type on Windows (.ps1/.bat/bash via WSL) and whether it runs when executed directly from the built-in terminal in the same cwd
- Logs: View > Output > select “Hooks”, and Help > Toggle Developer Tools > Console
- A minimal reproducible example following the docs: Hooks | Cursor Docs
Quick checks:
- Restart Cursor
- Make sure relative paths are relative to the hooks.json file
- Try absolute paths in the command
Once I have this info, I can forward the case to the team right away.