Hook on Windows STOPPED WORKING back around 2.1.25 - PLEASE FIX

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Hooks on windows ARE NEVER CALLED anymore

Steps to Reproduce

add a hook

Expected Behavior

should get called

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.49 (system setup)
VSCode Version: 1.105.1
Commit: 21a2ed198584d56a91c0b996d1a09c93f8538440
Date: 2025-12-05T07:49:06.016Z
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.17763

Additional Information

Your regression has ruined my workflow

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. We’re seeing a few similar posts about hooks on Windows in 2.1.x: Hooks are not working anymore, Hooks still not working properly in 2.1.6. We need details to lock down the bug and pass it to engineering.

Please send:

  • The contents of your hooks.json and where it’s located: C:\ProgramData\Cursor\hooks.json, ~/.cursor/hooks.json, or <project>/.cursor/hooks.json
  • Which events you use and the exact commands you run (include full paths, try an absolute path for testing)
  • Script type on Windows (.ps1/.bat/bash via WSL) and whether it runs when executed directly from the built-in terminal in the same cwd
  • Logs: View > Output > select “Hooks”, and Help > Toggle Developer Tools > Console
  • A minimal reproducible example following the docs: Hooks | Cursor Docs

Quick checks:

  • Restart Cursor
  • Make sure relative paths are relative to the hooks.json file
  • Try absolute paths in the command

Once I have this info, I can forward the case to the team right away.

Please send this to engineering immediately - it makes NO DIFFERENCE what is put inside the hooks.json file - it was working PERFECLTY in 2.1.25 and suddenly stopped working - the logs show NO CALLS are even being attempted at all (and tried over a dozen different things and logged them in other bug reports already)

Your engineering team do not need any extra info about this - it only takes < 1 minute to verify this, and they should already have a test for hooks on windows - they just need to know to check it!

1 Like

To be clear - I have ALREADY PROVIDED everything you’re asking for.

I’ve already passed this to the team. They’re working on a fix. Thanks!

1 Like

I added some more info about this here: Hooks are not working anymore - #5 by Chris_Drake

1 Like

啥时候解决啊,我的钩子在2.1.26版本执行正常。新版本执行异常

If you just want the hooks to start being called again, a mystery version 2.2.1 seems to fix it.

If you copy the homepage link to download, you get something like this:-

https://api2.cursor.sh/updates/download/golden/win32-x64/cursor/2.1
and if you change that to 2.2 on the end, the version you get calls hooks again - it still does not return the hook response to the model, but at least it makes the call!

下面是自然、忠实、不改变含义的中文表述:

如果你只是想让 hooks 再次被触发,神秘的 2.2.1 版本似乎能解决这个问题。

如果你从主页复制下载链接,会得到类似这样的网址:

https://api2.cursor.sh/updates/download/golden/win32-x64/cursor/2.1

把最后的版本号改成 2.2 后,你下载到的版本会再次调用 hooks —— 虽然它仍然不会把 hook 的返回结果传回给模型,但至少会发起调用了。

https://api2.cursor.sh/updates/download/golden/win32-x64/cursor/2.2

https://api2.cursor.sh/updates/download/golden/win32-x64/cursor/2.2

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