mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-20 18:14:29 -07:00
fix(core): conditionally expose additional_permissions in shell tool (#23729)
Co-authored-by: Sandy Tao <sandytao520@icloud.com>
This commit is contained in:
@@ -702,15 +702,6 @@ export class PolicyEngine {
|
||||
}
|
||||
}
|
||||
|
||||
// Sandbox Expansion requests MUST always be confirmed by the user,
|
||||
// even if the base command is otherwise ALLOWED by the policy engine.
|
||||
if (
|
||||
decision === PolicyDecision.ALLOW &&
|
||||
toolCall.args?.['additional_permissions']
|
||||
) {
|
||||
decision = PolicyDecision.ASK_USER;
|
||||
}
|
||||
|
||||
return {
|
||||
decision: this.applyNonInteractiveMode(decision),
|
||||
rule: matchedRule,
|
||||
|
||||
Reference in New Issue
Block a user