mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
Remove legacy turn context environment fields
Switch TurnContext to carry only the selected environment list and explicit-selection marker. Preserve the no-list rollout path by representing the default environment internally with no environment id while keeping multi-environment tool rendering disabled unless explicit selections are present. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -32,10 +32,10 @@ pub(crate) struct ApplyPatchRuntimeInvocation {
|
||||
|
||||
pub(crate) async fn apply_patch(
|
||||
turn_context: &TurnContext,
|
||||
cwd: &codex_utils_absolute_path::AbsolutePathBuf,
|
||||
file_system_sandbox_policy: &FileSystemSandboxPolicy,
|
||||
action: ApplyPatchAction,
|
||||
) -> InternalApplyPatchInvocation {
|
||||
let cwd = &action.cwd;
|
||||
match assess_patch_safety(
|
||||
&action,
|
||||
turn_context.approval_policy.value(),
|
||||
|
||||
Reference in New Issue
Block a user