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+.

Hello Dean, any news please? is there a fix?

Hey, thanks for the ping. Update with the fix is already in progress, planning to release soon.

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.

Version: 2.2.1 (system setup)
VSCode Version: 1.105.1
Commit: da7d015bb36ac403cb47ce878bffd5d7bc735e40
Date: 2025-12-09T16:08:10.218Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26100

According to your spec, other hooks can return information which should be delivered to the AI, but it’s not going in.

1 Like

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.