This commit is contained in:
kevin zhao
2025-10-31 17:27:35 -04:00
parent d609dfa2fc
commit c7a3428986
2 changed files with 2 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ impl SessionTask for UserShellCommandTask {
command: shell_invocation,
workdir: None,
timeout_ms: None,
with_escalated_permissions: Some(true),
with_escalated_permissions: None,
justification: None,
};

View File

@@ -150,7 +150,7 @@ impl Approvable<ShellRequest> for ShellRuntime {
}
fn wants_escalated_first_attempt(&self, req: &ShellRequest) -> bool {
req.with_escalated_permissions.unwrap_or(false)
req.is_user_shell_command || req.with_escalated_permissions.unwrap_or(false)
}
}