mirror of
https://github.com/openai/codex.git
synced 2026-09-20 12:47:38 +00:00
## Why App-server callers that only need the active turn ID or its presence currently create a full turn snapshot, unnecessarily cloning its items. ## What changed Expose `ThreadState::active_turn_id()` and use it for interrupt validation, elicitation turn ID fallback, and teardown and shutdown logging, preserving the existing turn selection behavior. ## Testing Update the interrupt integration test to wait for `turn/started` instead of a fixed delay and verify that an incorrect turn ID is rejected before successfully interrupting the active turn. GitOrigin-RevId: 4a030655fbc4d229809cf13f80c3d7f788f19c13