After updating Windows Terminal, pressing Ctrl+Profile will not inherit the working directory #19702

Open
opened 2026-01-31 06:51:16 +00:00 by claunia · 0 comments
Owner

Originally created by @TGSAN on GitHub (Apr 13, 2023).

Windows Terminal version

1.16.10262.0

Windows build number

10.0.22621.1537

Other Software

No response

Steps to reproduce

  1. Set the startup directory in Windows Terminal settings to ".".
  2. Go to a folder in File Explorer (for example: D:\SomeDir).
  3. Right-click and select "Open with Terminal" from the context menu.
  4. Hold down the Ctrl key on the title bar of the new Windows Terminal and create any tab (to create as an administrator).`

Expected Behavior

In the new Windows Terminal that runs as an administrator, the working directory is inherited as D:\SomeDir

Actual Behavior

In the new Windows Terminal that runs as an administrator, the working directory is reset to C:\Windows\System32

Originally created by @TGSAN on GitHub (Apr 13, 2023). ### Windows Terminal version 1.16.10262.0 ### Windows build number 10.0.22621.1537 ### Other Software _No response_ ### Steps to reproduce 1. Set the startup directory in Windows Terminal settings to ".". 2. Go to a folder in File Explorer (for example: `D:\SomeDir`). 3. Right-click and select "Open with Terminal" from the context menu. 4. Hold down the Ctrl key on the title bar of the new Windows Terminal and create any tab (to create as an administrator).` ### Expected Behavior In the new Windows Terminal that runs as an administrator, the working directory is inherited as `D:\SomeDir` ### Actual Behavior In the new Windows Terminal that runs as an administrator, the working directory is reset to `C:\Windows\System32`
claunia added the Issue-BugIn-PRNeeds-Tag-FixProduct-TerminalSeverity-Blocking labels 2026-01-31 06:51:17 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19702