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:
jif authored and copyberry committed 2026-08-03 12:03:33 +00:00
1 parent 62839fec5d
commit 7750465934
4 files changed
+107 -197

No files matched your search

+1 -4
View File
@@ -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
);
}