From 9c1b81e3f4893d61464bbc4fe5678d93d09395fd Mon Sep 17 00:00:00 2001 From: Jake Ruth Date: Mon, 31 Aug 2026 15:16:20 -0400 Subject: [PATCH] fix: stop shipping no-op hooks to Codex and quote hook paths Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01FJrjzZB3w8B5YYrj5F8tw7 --- .codex-plugin/plugin.json | 1 + hooks/codex-hooks.json | 3 +++ hooks/hooks.json | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 hooks/codex-hooks.json diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index 375ec8e..147a75d 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -22,6 +22,7 @@ ], "skills": "./skills/", "mcpServers": "./.mcp.json", + "hooks": "./hooks/codex-hooks.json", "interface": { "displayName": "PostHog", "shortDescription": "Analytics, feature flags, experiments, and error tracking", diff --git a/hooks/codex-hooks.json b/hooks/codex-hooks.json new file mode 100644 index 0000000..deffac9 --- /dev/null +++ b/hooks/codex-hooks.json @@ -0,0 +1,3 @@ +{ + "hooks": {} +} diff --git a/hooks/hooks.json b/hooks/hooks.json index fa517ba..c642955 100644 --- a/hooks/hooks.json +++ b/hooks/hooks.json @@ -6,7 +6,7 @@ "hooks": [ { "type": "command", - "command": "python3 ${CLAUDE_PLUGIN_ROOT:-$PLUGIN_ROOT}/hooks/session-end-llma.py", + "command": "python3 \"${CLAUDE_PLUGIN_ROOT:-$PLUGIN_ROOT}/hooks/session-end-llma.py\"", "timeout": 30 } ] @@ -18,7 +18,7 @@ "hooks": [ { "type": "command", - "command": "${CLAUDE_PLUGIN_ROOT:-$PLUGIN_ROOT}/hooks/gate-exec-write.sh", + "command": "\"${CLAUDE_PLUGIN_ROOT:-$PLUGIN_ROOT}/hooks/gate-exec-write.sh\"", "timeout": 5 } ]