Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Fix active-turn environment selection lookup (#46557)

sayan-oaicd2f9ca69239
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 {