mirror of
https://github.com/openai/codex.git
synced 2026-09-03 14:59:03 +00:00
## Why `subagent_usage_draws_from_the_shared_budget` intermittently fails even when the shared-budget behavior is correct. `ResponseMock` records a request before the custom Wiremock predicate is checked, so the follow-up mock can also contain unrelated requests. In a [recent Windows ARM64 run](https://github.com/openai/codex/actions/runs/28916285431), `single_request()` saw all seven requests from the scenario. ## What changed Select the request containing the follow-up user prompt before making assertions. The test still requires exactly one matching follow-up request and still checks that the root sees 50 tokens remaining after the child uses its share. This is test-only. Shared-budget behavior and the common response-mock helper are unchanged.