fix(plan): allow plan mode writes on Windows and fix prompt paths (#19658)

This commit is contained in:
Adib234
2026-02-23 12:48:50 -05:00
committed by GitHub
parent fa9aee2bf0
commit 8b1dc15182
3 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -48,13 +48,13 @@ decision = "ask_user"
priority = 70
modes = ["plan"]
# Allow write_file and replace for .md files in plans directory
# Allow write_file and replace for .md files in the plans directory (cross-platform)
[[rule]]
toolName = ["write_file", "replace"]
decision = "allow"
priority = 70
modes = ["plan"]
argsPattern = "\"file_path\":\"[^\"]+/\\.gemini/tmp/[a-zA-Z0-9_-]+/[a-zA-Z0-9_-]+/plans/[a-zA-Z0-9_-]+\\.md\""
argsPattern = "\"file_path\":\"[^\"]+[\\\\/]+\\.gemini[\\\\/]+tmp[\\\\/]+[\\w-]+[\\\\/]+[\\w-]+[\\\\/]+plans[\\\\/]+[\\w-]+\\.md\""
# Explicitly Deny other write operations in Plan mode with a clear message.
[[rule]]