Skip to content

Conversation

@ibetitsmike
Copy link
Contributor

Fixes #1697.

What changed

  • Treat any wsl.exe path (e.g. C:\\Program Files\\WSL\\wsl.exe) as a WSL launcher in Windows shell detection.
  • Add windowsHide: true to where git / where bash probes to prevent console flash/focus steal.
  • Add short negative-caching for Git Bash resolution failures to avoid tight retry loops when the toolchain is missing.

Why

Mux doesn’t support WSL on Windows, but certain configurations can cause us to repeatedly invoke a WSL launcher (or repeatedly probe for Git Bash) which steals focus and triggers a focus-refresh feedback loop.

Testing

  • bun test src/node/utils/main/bashPath.test.ts src/node/utils/main/resolveLocalPtyShell.test.ts
  • make static-check

Generated with mux • Model: openai:gpt-5.2 • Thinking: xhigh • Cost: $5.88

@github-actions github-actions bot added the community issue from community member label Jan 19, 2026
@ibetitsmike ibetitsmike added this pull request to the merge queue Jan 20, 2026
Merged via the queue into main with commit 9cf2c0b Jan 20, 2026
22 checks passed
@ibetitsmike ibetitsmike deleted the mike/fix-windows-wsl-loop-1697 branch January 20, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community issue from community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

windows : when prompted it does not start but opens and closes terminal .

1 participant