mirror of
https://github.com/openai/codex.git
synced 2026-11-23 07:17:11 +00:00
Consolidate apply_patch runtime execution (#36745)
## What changed - Route verified patches from both direct tool calls and intercepted shell commands through a shared execution helper. - Simplify patch safety preparation to return either a runtime invocation or a rejection directly. - Keep permission resolution, approval handling, event emission, runtime execution, and diff tracking in the common path. GitOrigin-RevId: e16aae8e91d96b8108aefac7f3fbf2da2cbac016
This commit is contained in:
1 parent
62839fec5d
commit
7750465934
4 files changed
+107
-197
No files matched your search
@@ -88,10 +88,7 @@ fn external_sandbox_auto_approves_in_on_request() {
|
||||
&cwd_uri,
|
||||
WindowsSandboxLevel::Disabled
|
||||
),
|
||||
SafetyCheck::AutoApprove {
|
||||
sandbox_type: SandboxType::None,
|
||||
user_explicitly_approved: false,
|
||||
}
|
||||
SafetyCheck::AutoApprove
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user