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:
@@ -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"),
|
||||
})?;
|
||||
|
||||
Reference in New Issue
Block a user