Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
The hooks feature is not working anymore after updating to version 2.1.46 on Windows
Steps to Reproduce
Create a simple hooks.json file containing a hook to test:
beforeSubmitPrompt”: [ { “command”: “node ./path_to_hook/check-prompt.js” }
place hooks.json and check-prompt.js under C:\ProgramData\Cursor
The script will not be executed and nothing to notice in the hooks output:
Command: node ./hooks/log-prompt.js (306ms) exit code: 0
INPUT: { ...}
OUTPUT: (empty)
Expected Behavior
The hook is fired, and the checks on the prompt are performed
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.1.46
VSCode: 1.105.1
For AI issues: which model did you use?
Claude sonnet 4.5
Does this stop you from using Cursor
No - Cursor works, but with this issue