8000 Can't change the default shell. · Issue #12 · amirlehmam/wmux · GitHub
[go: up one dir, main page]

Skip to content

Can't change the default shell. #12

Closed

Description

@markrmiller

Just tried the latest release and whether I change the default shell to WSL or CMD, it does not matter. The setting is saved, but a new terminal is always PowerShell.

Activity

  1. amirlehmam commented on May 11, 2026

    @amirlehmam
    Owner

    Fixed in v0.7.18.

    Root cause: the renderer state for Default shell (and the other workspace settings) lived in a Zustand slice with no persistence layer. The value was applied correctly during a session, but every fresh launch reset workspacePrefs back to defaults — so any spawn after a restart fell through to the auto-detected shell (PowerShell on most Windows boxes), making it look like the setting was ignored.

    Fix: added a scoped localStorage layer for just that slice (key wmux-workspace-prefs). The default shell, new-workspace placement, and auto-reorder toggle now survive restarts. Failures (sandboxed/locked storage) are swallowed so they can't break the renderer boot.

    Grab the new zip from the release page, unzip, and remember to right-click → Unblock on the zip first if Windows tagged it with Mark-of-the-Web. Thanks for the clean repro!

  2. added a commit that references this issue on May 11, 2026
    b67e836
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0