mirror of
https://github.com/openai/codex.git
synced 2026-09-17 12:23:33 +00:00
## Why The analytics test helper returned the first analytics request, which could contain unrelated events. Plugin-install assertions need to select the expected event even when it arrives in a later request or shares a batch with other events. ## What changed Update `wait_for_plugin_analytics_payload` to accept an event type, scan requests until matching events appear, and return the payload with only those events. Update callers to request `codex_plugin_installed` or `codex_plugin_install_failed` as appropriate. ## Testing Add a regression test that sends an unrelated analytics request followed by a mixed batch and verifies that the helper returns only the expected plugin-install failure event. GitOrigin-RevId: 41290c63ea1c2a3da1efa78b81222b8da76bcbff