gemini-cli PR keeps ASK_USER for shell commands with unresolved bash expansions

luisfelipe-alt · ghdev · 2026-11-18

gemini-cli PR #30338 fixes a policy-engine issue where read-only shell commands auto-escalate from ASKUSER to ALLOW, even when brace/parameter/arithmetic expansions, command substitutions, or unquoted globs mean bash runs different arguments than were classified. A new hasUnresolvedShellExpansion() helper walks the tree-sitter-bash AST to detect such nodes (including $"..."), keeping the confirmation prompt while avoiding false positives on quoted literals and leaving PowerShell behavior unchanged.

Original post →

More from coding & agent

coding & agent channel →