From 4ab11b4d80df85e3315d48a195c3cd86fda403cc Mon Sep 17 00:00:00 2001 From: PJ Date: Tue, 30 Dec 2025 15:49:35 +0700 Subject: [PATCH] Update hook commands to change directory before running --- hooks/hooks.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/hooks.json b/hooks/hooks.json index ca29194..36dbe0a 100644 --- a/hooks/hooks.json +++ b/hooks/hooks.json @@ -5,7 +5,7 @@ "hooks": [ { "type": "command", - "command": "go run ${CLAUDE_PLUGIN_ROOT}/scripts/session_end/main.go" + "command": "cd ${CLAUDE_PLUGIN_ROOT} && go run ./scripts/session_end/main.go" } ] } @@ -15,7 +15,7 @@ "hooks": [ { "type": "command", - "command": "go run ${CLAUDE_PLUGIN_ROOT}/scripts/session_start/main.go" + "command": "cd ${CLAUDE_PLUGIN_ROOT} && go run ./scripts/session_start/main.go" } ] }