New tab doesn't inherit working directory for -d #22955

Open
opened 2026-01-31 08:28:23 +00:00 by claunia · 0 comments
Owner

Originally created by @QuAzI on GitHub (Feb 20, 2025).

Windows Terminal version

1.22.10352.0

Windows build number

10.0.19045.0

Other Software

No response

Steps to reproduce

Press Win+R
Execute wt -d c:\Projects to specify the folder that should be used as the starting directory for the console (according to documentation)
Open a new tab

Expected Behavior

For cases when wt -d used target directory should be inherited properly for new tabs and should be equal as the starting directory specified on console run

Actual Behavior

Currently, the path is C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.22.10352.0_x64__8wekyb3d8bbwe> instead of what you chose as the starting directory

Originally created by @QuAzI on GitHub (Feb 20, 2025). ### Windows Terminal version 1.22.10352.0 ### Windows build number 10.0.19045.0 ### Other Software _No response_ ### Steps to reproduce Press Win+R Execute `wt -d c:\Projects` to specify the folder that should be used as the starting directory for the console (according to [documentation](https://learn.microsoft.com/en-us/windows/terminal/command-line-arguments?tabs=windows#target-a-directory)) Open a new tab ### Expected Behavior For cases when `wt -d` used target directory should be inherited properly for new tabs and should be equal as the starting directory specified on console run ### Actual Behavior Currently, the path is `C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.22.10352.0_x64__8wekyb3d8bbwe>` instead of what you chose as the starting directory
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22955