Gemini CLI PR fixes YOLO-mode flaw that escalated ASK_USER rules to ALLOW
adityajai119 · ghdev · 2026-11-14
PR #30295 in gemini-cli fixes a policy bypass in PolicyEngine.checkShellCommand() under ApprovalMode.YOLO.
- The bug: when parseCommandDetails() returned empty details or hasError: true, the code unconditionally returned PolicyDecision.ALLOW, escalating explicit ASKUSER rules to ALLOW, bypassing the non-interactive ASKUSER→DENY conversion, and re-upgrading rules already downgraded to ASKUSER by applyShellHeuristics() (e.g. git commands in untrusted workspaces).
- The fix: return ruleDecision instead (clearing rule when the decision came from a heuristic downgrade), keeping unrestricted ALLOW rules fast while preserving ASKUSER decisions.
- The PR includes validation steps: policy test suite, build, typecheck, lint, and bundle smoke checks.
More from coding & agent
- TestPrune: pruning regression tests to unblock AI-driven autonomous bug fixing — burkov · 2026-11-14
- Context beats model choice: Databricks benchmark shows 91% vs 58% for data agents — CautiousUse8597 · 2026-11-14
- Developer skips localhost entirely: prompts go straight to production with AI agent safeguards — marclou · 2026-11-14
- HeyGen MCP demo: one ChatGPT prompt books tickets and sends an avatar birthday video — toolstelegraph · 2026-11-14
- Plenio 2.0: open-source ComfyUI suite turns an idea into a mastered song, now with VST3 — Vivid_Promise1700 · 2026-11-14
- Hallasan Giwon: a reverse-Turing 3D Go & Chess arena you can sneak Claude into via one-line MCP — Responsible-Radio634 · 2026-11-14