summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorjesse <jesse@magic-kingdom>2026-03-15 18:28:55 +0000
committerjesse <jesse@magic-kingdom>2026-03-15 18:28:55 +0000
commitd19703b0a19608df0261fdc5e24bc6891ec2dac9 (patch)
tree012fe9547892075bc91dde77a1789b20519fc4fc /hooks
parent363923f74aa9cd7b470c0aaa73dee629a8bfdc90 (diff)
fix: stop firing SessionStart hook on --resume
Resumed sessions already have injected context in their conversation history. Re-firing the hook was redundant and could cause issues. The hook now fires only on startup, clear, and compact. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'hooks')
-rw-r--r--hooks/hooks.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/hooks.json b/hooks/hooks.json
index 7e3d30d..79d8cee 100644
--- a/hooks/hooks.json
+++ b/hooks/hooks.json
@@ -2,7 +2,7 @@
"hooks": {
"SessionStart": [
{
- "matcher": "startup|resume|clear|compact",
+ "matcher": "startup|clear|compact",
"hooks": [
{
"type": "command",