Quellcode durchsuchen

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>
jesse vor 5 Monaten
Ursprung
Commit
d19703b0a1
2 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen
  1. 6 0
      RELEASE-NOTES.md
  2. 1 1
      hooks/hooks.json

+ 6 - 0
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

+ 1 - 1
hooks/hooks.json

@@ -2,7 +2,7 @@
   "hooks": {
     "SessionStart": [
       {
-        "matcher": "startup|resume|clear|compact",
+        "matcher": "startup|clear|compact",
         "hooks": [
           {
             "type": "command",