From 321c8cd24ce558fbaa26004af3b68bddfb343b63 Mon Sep 17 00:00:00 2001 From: Ada Sen Date: Tue, 23 Jun 2026 22:57:31 +0000 Subject: [PATCH] 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" --- hooks/hooks-codex.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/hooks-codex.json b/hooks/hooks-codex.json index 5c357fcc..0719e534 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",