Gemini CLI: Smoother Windows Shell Commands with Async PowerShell Parsing

Gemini CLIView original changelog

Gemini CLI v0.71.0 now parses PowerShell commands asynchronously, off the main UI loop. This removes the spinner freezes users saw while shell commands were being inspected. A new lifecycle-scoped parse cache also avoids redundant shell process spawns during policy checks, confirmation and execution.

Key Takeaways

  • PowerShell parsing no longer blocks the UI, so the spinner stays responsive while Gemini CLI inspects shell commands.
  • The parse now runs asynchronously off the main UI loop, which removes the freezes users saw on Windows.
  • A lifecycle-scoped AST parse cache is shared across policy evaluation, confirmation building and execution.
  • Reusing parse results eliminates redundant external shell process spawns, which reduces latency before commands run.
  • The fix ships in the v0.71.0 stable release (2026-11-24), so it is available through the default npm install.
  • The same release moves development worker images to a private Artifact Registry, a build-infrastructure change with no user-facing effect.

Overview

Gemini CLI v0.71.0 targets a problem Windows and PowerShell users could see: the terminal spinner freezing while the CLI inspected a shell command. The CLI used to parse PowerShell commands in a way that blocked the main UI loop. The interface stopped updating until the parse finished.

Asynchronous parsing

Gemini CLI now runs PowerShell command parsing asynchronously. The terminal keeps rendering while a command is being inspected, so spinners and status indicators stay animated. This matters most when the model proposes several shell commands in a row.

Parse caching

The release also adds a parse cache scoped to the lifecycle of a command. The same command used to be parsed again at each stage: policy evaluation, building the confirmation prompt, and execution. Each of those parses could spawn an external shell process. Now the result of the first parse is reused across all three stages. This cuts process spawns and shortens the delay before a command runs.

Who benefits

The change is most noticeable on Windows, where PowerShell is the default shell. It matters most in sessions with frequent shell tool calls. The release also moved development worker container images to a private Artifact Registry. That affects the project's own build infrastructure, not users.