8000 Default shell preference has no effect: panes keep launching pwsh regardless · Issue #252 · amirlehmam/wmux · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Default shell preference has no effect: panes keep launching pwsh regardless #252

Closed

Description

@javierguevara-habi

Summary

Setting Settings → Workspace → Default shell to Git Bash has no effect. Panes keep
launching pwsh.exe. The preference is persisted correctly and the binary resolves fine —
it just never reaches the pty.

wmux 2.13.1, Windows 11 Pro 10.0.26200.

What I checked

stored preference defaultShell": "bash.exe" (read back from the app's Local Storage)
does bash.exe resolve? yes — C:\Program Files\Git\usr\bin\bash.exe, on PATH
new surface in the current workspace pwsh.exe
brand-new workspace pwsh.exe
after a full app restart pwsh.exe

wmux tree reports resolvedShell as the PowerShell 7 path in every surface, before and
after the restart, with the preference set the whole time. So it is not a "needs a restart"
situation, and it is not a resolution failure either.

The selector stores bash.exe — a bare filename rather than a path. If the resolver matches
against a table of known shells and that entry doesn't line up, falling back to the previous
shell silently would produce exactly this.

Why it matters beyond the preference itself

This is the workaround for #251. There, the injected claude --resume <id> races the
shell's startup and gets truncated. Shell startup measured here, median of 5:

shell time to ready
pwsh 7 1.663 ms
cmd.exe 487 ms
Git Bash 278 ms

Moving panes off pwsh shrinks that race window by ~83%, which is the only mitigation a user
has while #251 is open. With this setting inert, there is none.

Worth noting separately: restored panes carry their own saved shell, so even if the
preference worked it would only reach newly created panes — and restored panes are exactly
the ones that run the injected resume command. A way to re-apply the default shell to
existing panes, or having restore honor the current preference, would close that gap.

Related

#251 (the race this would mitigate). Same install as #214 and #221.

Activity

  1. amirlehmam commented on Sep 29, 2026

    @amirlehmam
    Owner

    Fixed in v2.14.0. The root cause was that bash.exe was resolved with where on wmux's own PATH, and Git for Windows only puts Git\cmd there. Your Git Bash session had usr\bin on its PATH, but wmux started from the Start menu doesn't. So the lookup either missed, falling back to pwsh silently, or hit System32\bash.exe, the WSL launcher. A bare bash/git-bash now finds Git's bin\bash.exe (via the git.exe on PATH or the default install roots) and gets --login -i. A shell that still can't be found now prints a notice in the pane. Restored panes that never had an explicit shell already follow the current default, since #197.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0