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 {