Skip to content

Avoid rerunning stop review on blocked retries#549

Open
hogeheer499-commits wants to merge 1 commit into
openai:mainfrom
hogeheer499-commits:agent/guard-stop-hook-retry-548
Open

Avoid rerunning stop review on blocked retries#549
hogeheer499-commits wants to merge 1 commit into
openai:mainfrom
hogeheer499-commits:agent/guard-stop-hook-retry-548

Conversation

@hogeheer499-commits

Copy link
Copy Markdown

Fixes #548.

After a Stop hook blocks, Claude Code invokes it again with stop_hook_active: true. The review gate currently ignores that flag, so a failed or blocking Codex review can run and block repeatedly until the harness cap is reached.

This allows the retry to finish without starting another review, while still reporting any running Codex task on stderr. The regression test enables the review gate and verifies that an active stop retry produces no blocking decision.

Tests:

  • npm test (92 passed)
  • npm run build

@hogeheer499-commits
hogeheer499-commits marked this pull request as ready for review July 24, 2026 12:56
@hogeheer499-commits
hogeheer499-commits requested a review from a team July 24, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop-review gate hook loops until CLAUDE_CODE_STOP_HOOK_BLOCK_CAP (missing stop_hook_active guard)

1 participant