mirror of
https://github.com/openai/codex.git
synced 2026-10-18 17:18:52 +00:00
## Why Tokio's paused clock can auto-advance while tests await the V8 thread. The service tests need explicit control over time when checking yield limits and grace periods. ## What changed - Hold virtual time with a blocking-task guard that is released when dropped. - Replace bounded polling loops with tool-start notifications and direct awaits of response tasks. - Return an error from the test helper if the cell closes before a nested tool starts. ## Testing Add tests covering tool-start acknowledgement when a cell throws or is terminated before invoking a nested tool, including assertions on the resulting cell responses. GitOrigin-RevId: c221c0501ec0354052102c0211cc651008babff3