Gemini CLI Fix: Prevents Terminal Freeze from Background Git Ops

DavidAPierce · ghdev · 2026-09-01

This PR resolves a critical issue in Google Gemini CLI where background Git extension updates or clones caused the terminal TUI to freeze by hijacking stdin for credential prompts. The fix implements a createNonInteractiveGit helper, configuring simple-git with GITTERMINALPROMPT=0 and GITSSHCOMMAND flags, and adds a 15s timeout for background network checks. This ensures the CLI remains responsive, especially with slow or authenticated private remotes.

Original post →

More from Infra

Infra channel →