diff options
| author | jesse <jesse@magic-kingdom> | 2026-03-15 18:28:55 +0000 |
|---|---|---|
| committer | jesse <jesse@magic-kingdom> | 2026-03-15 18:28:55 +0000 |
| commit | d19703b0a19608df0261fdc5e24bc6891ec2dac9 (patch) | |
| tree | 012fe9547892075bc91dde77a1789b20519fc4fc | |
| parent | 363923f74aa9cd7b470c0aaa73dee629a8bfdc90 (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>
| -rw-r--r-- | RELEASE-NOTES.md | 6 | ||||
| -rw-r--r-- | hooks/hooks.json | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 629ce38..282bea6 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,5 +1,11 @@ # Superpowers Release Notes +## v5.0.3 (2026-03-15) + +### Bug Fixes + +- **Stop firing SessionStart hook on `--resume`** — the startup hook was re-injecting context on resumed sessions, which already have the context in their conversation history. The hook now fires only on `startup`, `clear`, and `compact`. + ## v5.0.2 (2026-03-11) ### Zero-Dependency Brainstorm Server 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", |
