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)
Hooks on windows in Version 2.2.1 are being executed, but they are not behaving as specified in your documentation - only one of them (the “stop” hook) is surfacing the hook response to the agent.