Gemini CLI v0.71.0 ends the Windows freeze before PowerShell commands

2 days ago

Gemini CLI v0.71.0 fixes a Windows freeze: the Thinking spinner and elapsed-time counter stopped for seconds while Gemini CLI parsed a PowerShell command. Parsing now runs in the background, and one parse is shared by the policy check, the "allow always" update and the run.

Ask about this presentation

Chapters

  1. 0:00The Windows freeze is gone
  2. 0:11Ten to fifteen seconds of frozen screen
  3. 0:23Each check waited on powershell.exe
  4. 0:35Parsing moves to the background
  5. 0:43One parse, reused
  6. 0:51Same parser, same safeguards
  7. 1:04Three screens stop re-parsing
  8. 1:16Should you upgrade?
Show transcript
  1. Gemini CLI v0.71.0 fixes a freeze on Windows. When the model was about to run a PowerShell command, the Thinking spinner and the elapsed-time counter stopped for seconds at a time. Now they keep moving.

    Slide text
    Gemini CLI

    Gemini CLI v0.71.0 ends the Windows freeze before PowerShell commands

    PS> Get-ChildItem | Sort-Object LastWriteTime -Descending | Select-Object -First 5 ✗ Thinking spinner stops, then the clock jumps ✓ spinner keeps moving while the command is checked
    releases/tag/v0.71.0 · #30334
  2. The freeze landed between the model's reasoning and the Shell tool panel. On the Windows 11 machine where it first showed up, the screen stopped for 10 to 15 seconds. Then the elapsed-time counter jumped ahead and the panel appeared.

    Slide text
    > the freeze 2026-11-24

    On one Windows 11 machine the screen stopped for 10 to 15 seconds

    1 model finishes thinking, picks run_shell_command 2 spinner and elapsed-time counter stop 3 counter jumps ahead, Shell tool panel appears
    issue #30249 · bug(windows): synchronous PowerShell command parsing
  3. Gemini CLI asks PowerShell itself to parse each command before it runs. It started powershell.exe and waited, and the whole screen stood still until it finished. One command could start it up to 14 times, each costing up to half a second.

    Slide text
    > the freeze 2026-11-24

    Every check started powershell.exe and waited for it to finish

    // packages/core/src/utils/shell-utils.ts spawnSync(executable, ['-NoLogo', '-NoProfile', …]) up to 14 starts per command · 200–500 ms each
    packages/core/src/utils/shell-utils.ts · #30334
  4. The parse now runs in the background. Gemini CLI starts PowerShell with a hidden window and goes on drawing the spinner and the clock while it waits for the answer.

    Slide text
    > the fix 2026-11-24

    PowerShell now parses in the background while the screen keeps drawing

    spawn(executable, ['-NoLogo', '-NoProfile', …], { stdio: ['ignore', 'pipe', 'pipe'], windowsHide: true, })
    packages/core/src/utils/shell-utils.ts · #30334
  5. Each answer is also saved. The policy check, the allow always update and the run itself share one parse of the command, instead of each one starting PowerShell on its own.

    Slide text
    > the fix 2026-11-24

    Each command is parsed once and the answer is reused

    → the policy check → the "allow always" update → running the command
    packages/core/src/utils/shell-parse-cache.ts · #30334
  6. The checks themselves are unchanged. The same PowerShell parser and the same command-substitution fallbacks decide what needs your approval. A saved answer lasts for one policy check or one command run, and then it is thrown away.

    Slide text
    > the fix 2026-11-24

    The parser and its safety fallbacks are the same as before

    ✓ same PowerShell syntax-tree parser ✓ same command-substitution fallbacks saved answers last one check or one run
    packages/core/src/utils/shell-parse-cache.ts · #30334
  7. Three parts of the screen used to parse while drawing. The confirmation prompt gets its redirect check ahead of time, the activity monitor runs it in the background, and shell mode, the exclamation-mark prefix, settles most commands without starting PowerShell.

    Slide text
    > the fix 2026-11-24

    Three parts of the screen stop parsing while they draw

    confirmation prompt · redirect check done ahead of time activity monitor · redirect check runs in the background ! shell mode · most commands settled without PowerShell
    packages/cli/src/ui/hooks · #30334
  8. I would say yes, if you use Gemini CLI on Windows and let the model run PowerShell commands for you. On macOS and Linux it behaves exactly as before, and this one fix is the whole release. The release notes link the pull request with the details.

    Slide text
    > should you upgrade 2026-11-24

    Upgrade if Gemini CLI runs PowerShell commands for you on Windows

    ✓ Windows, with commands run through PowerShell ✓ the model runs shell commands in your sessions ✗ macOS and Linux behave as before
    releases/tag/v0.71.0 · #30334

What happened in AI today, in your inbox

One short email each evening. Read it and you’re caught up.

Built with ❤️ in New York