Skip to content

[codex] Stabilize subagent start hook test#23882

Merged
jif-oai merged 1 commit into
mainfrom
jif/subagent-start-test-flake
May 21, 2026
Merged

[codex] Stabilize subagent start hook test#23882
jif-oai merged 1 commit into
mainfrom
jif/subagent-start-test-flake

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

@jif-oai jif-oai commented May 21, 2026

What

Remove the exact captured request-count assertion from the SubagentStart hook integration test while still waiting for the child request that matches the injected hook context.

Why

The test owns the start-hook behavior and already verifies that the child request reaches the context matcher plus that the start/session hook logs have the expected invocations. Counting every request captured by the response mock makes the test sensitive to lifecycle timing outside that contract and has been flaky in CI.

Testing

  • cargo test -p codex-core --test all suite::subagent_notifications::subagent_start_replaces_session_start_and_injects_context -- --exact

@jif-oai jif-oai marked this pull request as ready for review May 21, 2026 13:54
@jif-oai jif-oai requested a review from a team as a code owner May 21, 2026 13:54
@jif-oai jif-oai merged commit 2a25602 into main May 21, 2026
29 checks passed
@jif-oai jif-oai deleted the jif/subagent-start-test-flake branch May 21, 2026 13:54
@github-actions github-actions Bot locked and limited conversation to collaborators May 21, 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.

1 participant