permissions: migrate approval and sandbox consumers to profiles

This commit is contained in:
Michael Bolin
2026-04-25 09:08:06 -07:00
parent c8335d27f2
commit 66783f3e8f
25 changed files with 330 additions and 167 deletions
+1 -2
View File
@@ -35,11 +35,10 @@ pub(crate) async fn apply_patch(
file_system_sandbox_policy: &FileSystemSandboxPolicy,
action: ApplyPatchAction,
) -> InternalApplyPatchInvocation {
let sandbox_policy = turn_context.sandbox_policy();
match assess_patch_safety(
&action,
turn_context.approval_policy.value(),
&sandbox_policy,
&turn_context.permission_profile(),
file_system_sandbox_policy,
&turn_context.cwd,
turn_context.windows_sandbox_level,