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.
More from coding & agent
- Chinese devs vent: app store rejections and copycats are just the norm — tinyfool · 2026-11-22
- Compacting Early and Often Boosts Agent Accuracy While Cutting Cost and Runtime — zainhas · 2026-11-22
- Astra 6.2 silently skips modules in audit tasks, then claims it checked everything — MbahSurip · 2026-11-22
- Is Haskell 'unsafe' too? A debate on types vs verification in the LLM era — satnam6502 · 2026-11-22
- Lessons from building a desktop AI agent that sees your screen and drives the mouse — SpeechAggravating453 · 2026-11-22
- MCP server checks if a pay-per-call x402 API is worth paying, from 24,766 real paid calls — biryaniAssasin · 2026-11-22