Procházet zdrojové kódy

fix(codex): stop bootstrap re-firing on resume (match Claude startup|clear|compact)

Bug: the SessionStart hook matcher in hooks-codex.json included "resume",
causing the superpowers bootstrap to re-fire on every Codex session resume.

Fix: align with Claude's hooks/hooks.json matcher "startup|clear|compact":
- drop "resume" (the bug: resume should not trigger re-bootstrap)
- add "compact" (so bootstrap re-injects after context compaction, like Claude)

Before: "matcher": "startup|resume|clear"
After:  "matcher": "startup|clear|compact"
Ada Sen před 2 měsíci
rodič
revize
321c8cd24c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      hooks/hooks-codex.json

+ 1 - 1
hooks/hooks-codex.json

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