From 28fd7a81928712dea26cf3b2ed555b3497764e05 Mon Sep 17 00:00:00 2001 From: YuXiang Hong <41331696+starumiQAQ@users.noreply.github.com> Date: Wed, 29 Apr 2026 02:21:59 +0800 Subject: [PATCH] fix(cursor): run SessionStart hook via run-hook.cmd on Windows Route Cursor's Windows SessionStart hook through the existing run-hook.cmd dispatcher instead of invoking the extensionless session-start script directly. This avoids Windows opening the extensionless hook file and lets Git Bash run the script as intended. Also removed an accidental UTF-8 BOM from hooks-cursor.json before merging. Verified: - hooks-cursor.json parses as JSON and has no BOM - command is ./hooks/run-hook.cmd session-start - CURSOR_PLUGIN_ROOT=/tmp/superpowers ./hooks/run-hook.cmd session-start emits valid Cursor JSON with additional_context --- hooks/hooks-cursor.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/hooks-cursor.json b/hooks/hooks-cursor.json index 6df4461f..84e6d338 100644 --- a/hooks/hooks-cursor.json +++ b/hooks/hooks-cursor.json @@ -3,7 +3,7 @@ "hooks": { "sessionStart": [ { - "command": "./hooks/session-start" + "command": "./hooks/run-hook.cmd session-start" } ] }