mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-14 13:53:02 -07:00
feat(plan): require user confirmation for activate_skill in Plan Mode (#24946)
This commit is contained in:
@@ -80,13 +80,6 @@ priority = 40
|
|||||||
modes = ["plan"]
|
modes = ["plan"]
|
||||||
denyMessage = "You are in Plan Mode with access to read-only tools. Execution of scripts (including those from skills) is blocked."
|
denyMessage = "You are in Plan Mode with access to read-only tools. Execution of scripts (including those from skills) is blocked."
|
||||||
|
|
||||||
# Explicitly Allow Read-Only Tools in Plan mode.
|
|
||||||
[[rule]]
|
|
||||||
toolName = ["activate_skill"]
|
|
||||||
decision = "allow"
|
|
||||||
priority = 50
|
|
||||||
modes = ["plan"]
|
|
||||||
|
|
||||||
[[rule]]
|
[[rule]]
|
||||||
toolName = "*"
|
toolName = "*"
|
||||||
mcpName = "*"
|
mcpName = "*"
|
||||||
@@ -106,14 +99,14 @@ modes = ["plan"]
|
|||||||
interactive = false
|
interactive = false
|
||||||
|
|
||||||
[[rule]]
|
[[rule]]
|
||||||
toolName = ["ask_user", "save_memory", "web_fetch"]
|
toolName = ["ask_user", "save_memory", "web_fetch", "activate_skill"]
|
||||||
decision = "ask_user"
|
decision = "ask_user"
|
||||||
priority = 50
|
priority = 50
|
||||||
modes = ["plan"]
|
modes = ["plan"]
|
||||||
interactive = true
|
interactive = true
|
||||||
|
|
||||||
[[rule]]
|
[[rule]]
|
||||||
toolName = ["ask_user", "save_memory", "web_fetch"]
|
toolName = ["ask_user", "save_memory", "web_fetch", "activate_skill"]
|
||||||
decision = "deny"
|
decision = "deny"
|
||||||
priority = 50
|
priority = 50
|
||||||
modes = ["plan"]
|
modes = ["plan"]
|
||||||
|
|||||||
Reference in New Issue
Block a user