superpowers/tests
Drew Ritter 7d8d3d4b06 fix(codex): suppress SessionStart hook auto-discovery with empty hooks object
Codex auto-discovers a plugin's hooks/hooks.json whenever the Codex
manifest has no `hooks` field: load_plugin_hooks falls back to a
hardcoded DEFAULT_HOOKS_CONFIG_FILE = "hooks/hooks.json" and registers
it. hooks/hooks.json is the Claude Code SessionStart hook, it is tracked
in this repo, and the Codex marketplace installs the whole repo root
(source url "./"), so the fallback re-registered the SessionStart hook
and its install-time trust prompt on Codex.

Removing the Codex hook file and the manifest `hooks` pointer (commit
"Remove Codex hooks") did not disable the hook on Codex — it removed the
explicit declaration that was overriding the fallback, so the fallback
took over and found the Claude hooks/hooks.json.

Declare an empty inline hooks object ({}) in .codex-plugin/plugin.json.
It parses as an empty inline hook set and stops Codex reaching the
auto-discovery fallback. An absent field, an empty array ([]), and an
empty inline list all collapse back to the fallback, so the value must
be exactly {}.

Update the test to assert the manifest declares hooks: {} (and that
hooks/hooks.json exists, which is what makes the declaration necessary),
replacing the prior assertion that the field was absent — which passed
while the hook was still being auto-discovered.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-02 14:56:55 -07:00
..
antigravity feat: add Antigravity CLI (agy) support 2026-06-16 10:09:44 -07:00
brainstorm-server test(deps): bump ws to ^8.21.0 in brainstorm-server tests 2026-06-18 15:44:22 -07:00
claude-code test(sdd): wire test-sdd-workspace.sh into the runner; note git clean -fdx 2026-06-18 15:44:22 -07:00
codex fix(codex): suppress SessionStart hook auto-discovery with empty hooks object 2026-07-02 14:56:55 -07:00
codex-plugin-sync fix: exclude repo metadata from Codex sync (PRI-1168) 2026-06-16 17:02:33 -07:00
explicit-skill-requests Tighten cross-platform tool references 2026-06-16 10:09:43 -07:00
hooks [codex] support native Codex plugin hooks (#1540) 2026-06-16 10:09:44 -07:00
kimi Tighten Kimi plugin porting coverage 2026-06-16 10:09:44 -07:00
opencode Tighten cross-platform tool references 2026-06-16 10:09:43 -07:00
pi chore: keep pi extension under .pi 2026-06-16 10:09:44 -07:00
shell-lint Add shell lint script 2026-06-16 10:09:45 -07:00