mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why `active_turn_environment_selections()` returns the selections captured at turn start, so it does not reflect later environment settings updates. ## What changed Add `CodexThread::current_turn_environment_selections(expected_turn_id)` to read the running turn's current selections, including environments that are still starting or have failed. Return `None` when the requested turn is no longer active or has been cancelled. ## Testing Add a regression test covering selection updates, mismatched turn IDs, and completed turns, while verifying that the initial selection snapshot remains unchanged. GitOrigin-RevId: bb526a686d549209142150ffde99ad1444add205