mirror of
https://github.com/openai/codex.git
synced 2026-06-01 19:02:59 +00:00
core: preserve constrained approval/sandbox policies in TurnContext (#12473)
This commit is contained in:
@@ -38,8 +38,8 @@ pub(crate) async fn apply_patch(
|
||||
) -> InternalApplyPatchInvocation {
|
||||
match assess_patch_safety(
|
||||
&action,
|
||||
turn_context.approval_policy,
|
||||
&turn_context.sandbox_policy,
|
||||
turn_context.approval_policy.value(),
|
||||
turn_context.sandbox_policy.get(),
|
||||
&turn_context.cwd,
|
||||
turn_context.windows_sandbox_level,
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user