summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAda Sen <ada@sen.dev>2026-06-23 22:57:31 +0000
committerJesse Vincent <jesse@fsck.com>2026-06-23 16:15:56 -0700
commit321c8cd24ce558fbaa26004af3b68bddfb343b63 (patch)
treeef353b88a2e2a13448872897179023fd9372eaf5
parentbfa3e4137a287602ff7c928e5d4ed99ab1d5e9dd (diff)
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"
-rw-r--r--hooks/hooks-codex.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/hooks-codex.json b/hooks/hooks-codex.json
index 5c357fc..0719e53 100644
--- a/hooks/hooks-codex.json
+++ b/hooks/hooks-codex.json
@@ -2,7 +2,7 @@
"hooks": {
"SessionStart": [
{
- "matcher": "startup|resume|clear",
+ "matcher": "startup|clear|compact",
"hooks": [
{
"type": "command",