From cd2f9ca692397e3092315f5b6d39273383e882c9 Mon Sep 17 00:00:00 2001 From: sayan-oai Date: Fri, 18 Sep 2026 22:16:55 +0000 Subject: [PATCH] Fix active-turn environment selection lookup (#46557) Read `initial_environments` in `active_turn_environment_selections` to return the environment selections captured at turn start. GitOrigin-RevId: 445b52508733ef971eb6d2d7eea2b2f019542d5f --- codex-rs/core/src/codex_thread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/core/src/codex_thread.rs b/codex-rs/core/src/codex_thread.rs index 2f1d5323c3..88ced2da01 100644 --- a/codex-rs/core/src/codex_thread.rs +++ b/codex-rs/core/src/codex_thread.rs @@ -528,7 +528,7 @@ impl CodexThread { let task = active.as_ref()?.task.as_ref()?; Some( task.turn_context - .environments + .initial_environments .environments .iter() .map(|environment| match environment {