persistedWindowLayout doesn't restore CWD in split panes #21732

Closed
opened 2026-01-31 07:53:24 +00:00 by claunia · 3 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:24 +00:00
Author
Owner

@github-actions[bot] commented on GitHub (May 17, 2024):

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@github-actions[bot] commented on GitHub (May 17, 2024): Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! ### Closed similar issues: - [Splitting panes using keyboard shortcut does not persist CWD (#12720)](https://github.com/microsoft/terminal/issues/12720), similarity score: 0.79 - [Open windows from a previous session does not restore the working directories of any tab (#15975)](https://github.com/microsoft/terminal/issues/15975), similarity score: 0.77 - [persistedWindowLayout does not work as expected on 1.12.10393.0 (#12684)](https://github.com/microsoft/terminal/issues/12684), similarity score: 0.76 > Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Author
Owner

@zadjii-msft commented on GitHub (May 28, 2024):

Hmm, this does work for tearout in canary 1.22. I think it does even work generally in canary 1.22.

I wonder if this was a 1.19 backport-specific regression?

@zadjii-msft commented on GitHub (May 28, 2024): Hmm, this _does_ work for tearout in canary 1.22. I think it does even work generally in canary 1.22. I wonder if this was a 1.19 backport-specific regression?
Author
Owner

@tunaflsh commented on GitHub (May 29, 2024):

Looks like it's working now. Still the same version. I'm not sure what went wrong for me back then.

@tunaflsh commented on GitHub (May 29, 2024): Looks like it's working now. Still the same version. I'm not sure what went wrong for me back then.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21732