Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Cursor IDE shows a false warning (red text with warning icon) in the hooks configuration UI when the hook script path points to a file inside the .cursor/ directory, even though the script executes successfully.
Steps to Reproduce
- Create a hook script at
.cursor/hooks/format.shwith executable permissions - Configure
hooks.jsonwith the path./.cursor/hooks/format.sh:{ "version": 1, "hooks": { "afterFileEdit": [{ "command": "./.cursor/hooks/format.sh" }] } } - Observe the hooks configuration UI showing a red warning icon next to the path
Screenshots / Screen Recordings
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
- Cursor Version: 2.1.50
Does this stop you from using Cursor
No - Cursor works, but with this issue
