Gemini CLI P1 fix: shell mode could spawn recursive interactive sessions

jvargassanchez-dot · ghdev · 2026-11-07

google-gemini/gemini-cli PR #30185 (P1, 17 files, +819 lines) prevents recursive interactive sessions: running gemini inside ! shell mode or the [Shell] tool spawned a second interactive TUI in the embedded PTY, causing terminal redraw jitter and nested modal loops.

The fix adds isInteractiveGeminiCommand to detect interactive invocations (including chained commands via &&/;/|, env prefixes, and bash -c wrappers), rejects unsupported subcommands like gemini config set, allows legit non-interactive uses (--version, headless -p prompts, --list-models), and isolates queued LLM prompts from shell mode.

Original post →

More from coding & agent

coding & agent channel →