Hooks are not working anymore

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

Hey, thanks for the report. This is a known critical regression on Windows, starting from version 2.1.25+.

Similar report: Project-Level Hooks Fail to Execute on Windows (also Windows, hooks worked in 2.1.15, broke in 2.1.42).

I’ll pass it to the team - this issue affects all Windows users of hooks. Regression from 2.1.25+.