gemini-cli - 💡(How to fix) Fix bug: Shell execution hangs or drops output for Windows executables on WSL [1 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

What happened?

When running Windows binaries (.exe) inside the Gemini CLI on a Windows Subsystem for Linux (WSL) environment with standard PTY mode enabled (shouldUseNodePty = true), the shell execution often hangs, loses/drops output, or fails to terminate cleanly due to terminal/PTY interop limitations between Linux PTY (like node-pty) and Windows binaries.

What did you expect to happen?

Windows binaries (such as adb.exe, git.exe, etc.) executed from Gemini CLI running inside WSL should execute cleanly and capture stdout/stderr successfully without hanging or dropping process exit events.

Client information

Platform: WSL (Linux on Windows) Gemini CLI: 0.44.0

Anything else we need to know?

WSL has known terminal/PTY interop issues when running Windows binaries within a Linux PTY (like node-pty), which can lead to hangs, lost/missing output, or indefinite waiting for process exit. A fix should detect when running on WSL and executing a .exe command, and bypass node-pty in favor of standard Node.js child_process execution.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

gemini-cli - 💡(How to fix) Fix bug: Shell execution hangs or drops output for Windows executables on WSL [1 pull requests]