persistedWindowLayout doesn't restore CWD in split panes #21730

Open
opened 2026-01-31 07:53:22 +00:00 by claunia · 0 comments
Owner

Originally created by @tunaflsh on GitHub (May 17, 2024).

Windows Terminal version

1.19.11213.0

Windows build number

10.0.22631.3593

Other Software

No response

Steps to reproduce

  1. Follow the instructions in here.
  2. Run terminal.
  3. Set "firstWindowPreference": "persistedWindowLayout" or in the UI Startup > When Terminal starts to Open windows from a previous session
  4. Create split panes.
  5. Change the working directories in each pane.
  6. Restart terminal.

Expected Behavior

Terminal restores the CWDs in all panes.

Actual Behavior

This only works for the first pane in a tab and for the tabs that do not have split panes.

Originally created by @tunaflsh on GitHub (May 17, 2024). ### Windows Terminal version 1.19.11213.0 ### Windows build number 10.0.22631.3593 ### Other Software _No response_ ### Steps to reproduce 1. Follow the instructions in [here](https://learn.microsoft.com/en-us/windows/terminal/tutorials/new-tab-same-directory). 2. Run terminal. 3. Set `"firstWindowPreference": "persistedWindowLayout"` or in the UI `Startup > When Terminal starts` to `Open windows from a previous session` 4. Create split panes. 5. Change the working directories in each pane. 6. Restart terminal. ### Expected Behavior Terminal restores the CWDs in all panes. ### Actual Behavior This only works for the first pane in a tab and for the tabs that do not have split panes.
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 07:53:22 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21730