feat: introduce Reject variant of AskForApproval

This commit is contained in:
Michael Bolin
2026-02-17 21:38:13 -08:00
parent 31cbebd3c2
commit 85bfc03f33
33 changed files with 1180 additions and 96 deletions
+13
View File
@@ -255,6 +255,19 @@ impl DeveloperInstructions {
None => APPROVAL_POLICY_ON_REQUEST_RULE.to_string(),
}
}
AskForApproval::Reject {
sandbox_approval,
rules,
mcp_elicitations,
} => {
format!(
"Approval policy is `reject`.\n\
- `sandbox_approval`: {sandbox_approval}\n\
- `rules`: {rules}\n\
- `mcp_elicitations`: {mcp_elicitations}\n\
When a category is `true`, requests in that category are auto-rejected instead of prompting the user."
)
}
};
DeveloperInstructions::new(text)