Skip to content

Disable hooks in guardian review sessions#17872

Merged
abhinav-oai merged 1 commit intomainfrom
abhinav/guardian-disable-hooks
Apr 15, 2026
Merged

Disable hooks in guardian review sessions#17872
abhinav-oai merged 1 commit intomainfrom
abhinav/guardian-disable-hooks

Conversation

@abhinav-oai
Copy link
Copy Markdown
Contributor

What

Disable Feature::CodexHooks when building guardian review session config

Why

Guardian review sessions were respecting the Stop hook and could ingest synthetic <hook_prompt> user turns Guardian should ignore hooks, while the main session and regular subagents continue to respect them

In other words Guardian was getting ralph-looped

Guardian review sessions should not inherit Codex hooks from the parent config. Disable the hooks feature when building the spawned guardian config and add a regression test covering a parent config with hooks enabled.

Co-authored-by: Codex <noreply@openai.com>
@abhinav-oai abhinav-oai enabled auto-merge (squash) April 15, 2026 02:47
@abhinav-oai abhinav-oai merged commit 130b047 into main Apr 15, 2026
38 of 47 checks passed
@abhinav-oai abhinav-oai deleted the abhinav/guardian-disable-hooks branch April 15, 2026 02:47
@github-actions github-actions bot locked and limited conversation to collaborators Apr 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants