Skip to content

Session restore does not recover working directories — all workspaces reopen at $HOME #2125

@wongsean

Description

@wongsean

cmux version

cmux 0.62.2 (77) [6c203b5]

macOS version

macOS Tahoe 26.3.1 (25D2128)

Mac chip

Apple Silicon (M1/M2/M3/M4)

Installation method

Direct download (DMG)

Can you reproduce this on cmux NIGHTLY?

Yes, it still reproduces on NIGHTLY

Bug description

After quitting cmux (Cmd+Q) and relaunching, all workspaces reopen at $HOME instead of restoring their previous working directories.

The docs state that session restore should recover working directories:

After relaunch, cmux restores layout and metadata only: Window, workspace, and pane layout / Working directories / Terminal scrollback (best effort) / Browser URL and navigation history

Layout and workspace count are restored correctly, but every terminal pane starts in ~ regardless of what directory it was in before quitting.

Expected behavior

Each workspace/pane should restore to its previous working directory.

Steps to reproduce

  1. Open cmux, create multiple workspaces
  2. cd into different project directories in each workspace
  3. Quit cmux via Cmd+Q
  4. Relaunch cmux
  5. All workspaces open at $HOME instead of their previous directories

Shell and environment

fish with starship

Relevant logs or crash reports


Screenshots or screen recordings

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions