From a741f885ea1a7f06afc14b47d93727eb530150d1 Mon Sep 17 00:00:00 2001 From: Felipe Coury Date: Wed, 3 Jun 2026 15:50:42 -0300 Subject: [PATCH] fix(core): target primary environment for workspace approvals --- codex-rs/core/src/tools/handlers/workspace_mutation.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/codex-rs/core/src/tools/handlers/workspace_mutation.rs b/codex-rs/core/src/tools/handlers/workspace_mutation.rs index 6e351605c1..67a563509a 100644 --- a/codex-rs/core/src/tools/handlers/workspace_mutation.rs +++ b/codex-rs/core/src/tools/handlers/workspace_mutation.rs @@ -222,6 +222,7 @@ impl ToolExecutor for WorkspaceMutationHandler { &turn, call_id, RequestPermissionsArgs { + environment_id: None, reason: Some(match self.mutation { WorkspaceMutation::SetWorkingDirectory => format!( "switch this session's working directory to `{}`",