feat(execpolicy): add typed ask rule foundation (#2404)

* feat(execpolicy): add typed ask rule foundation

* fix(execpolicy): tighten typed ask diagnostics

---------

Co-authored-by: greyfreedom <greyfreedom@163.com>
This commit is contained in:
Hunter Bown
2026-05-31 01:37:15 -07:00
committed by GitHub
parent 3aa0a33fe2
commit 8f095b882f
4 changed files with 268 additions and 7 deletions
+2
View File
@@ -1309,6 +1309,8 @@ fn run_sandbox_command(command: SandboxCommand) -> Result<()> {
let decision = engine.check(ExecPolicyContext {
command: &command,
cwd: &cwd.display().to_string(),
tool: Some("exec_shell"),
path: None,
ask_for_approval: ask.into(),
sandbox_mode: Some("workspace-write"),
})?;