[PR #10546] Set working directory when invoked from shell extension #28101

Open
opened 2026-01-31 09:26:20 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/10546

State: closed
Merged: Yes


Sets the working directory of the terminal when invoked from the shell extension. This ensures that new tabs opened with a starting directory of . open in the directory that the terminal was invoked from.

Closes #8933

Validation Steps Performed

Manually tested - default PowerShell profile set to use home directory, Windows PowerShell profile set to use current directory. Launched via the shell extension and the default profile opened in the explorer directory, as did a new Windows PowerShell tab.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/10546 **State:** closed **Merged:** Yes --- Sets the working directory of the terminal when invoked from the shell extension. This ensures that new tabs opened with a starting directory of `.` open in the directory that the terminal was invoked from. Closes #8933 ## Validation Steps Performed Manually tested - default PowerShell profile set to use home directory, Windows PowerShell profile set to use current directory. Launched via the shell extension and the default profile opened in the explorer directory, as did a new Windows PowerShell tab.
claunia added the pull-request label 2026-01-31 09:26:20 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#28101