fix(agent): auto-approve scoped investigation edits
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Called only for native "asked" events. Explicit denials and host isolation
|
||||
// still run before this point; the selected round mode answers pending requests.
|
||||
export function canAutomaticallyApprove(mode: string, action: string, backgroundSandboxShell = false) {
|
||||
return mode === "always" || (backgroundSandboxShell && action === "shell");
|
||||
export function canAutomaticallyApprove(mode: string, action: string, backgroundSandboxPermissions = false) {
|
||||
return mode === "always" || (backgroundSandboxPermissions && (action === "shell" || action === "edit"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user