"Open in Windows Terminal" Explorer context menu on left pane opens to wrong location #16398

Closed
opened 2026-01-31 05:06:25 +00:00 by claunia · 8 comments
Owner

Originally created by @johnburnett on GitHub (Jan 13, 2022).

Windows Terminal version

1.11.3471.0

Windows build number

22000.434

Other Software

No response

Steps to reproduce

Assume a directory tree that looks like this:

parentDir/
  childDirA/
  childDirB/
  1. Navigate to the childDirA subdir so that the contents shows in the right pane of explorer
  2. right-click on childDirB in the left (treeview) pane of explorer (the contents of childDirA will continue to show in the right pane)
  3. Choose "Open in Windows Terminal"

Expected Behavior

A terminal to open with childDirB as the current dir.

Actual Behavior

The terminal opens to childDirA. Might be related to #11587 (which references internal issues MSFT:36795851 and MSFT:36416534.

Originally created by @johnburnett on GitHub (Jan 13, 2022). ### Windows Terminal version 1.11.3471.0 ### Windows build number 22000.434 ### Other Software _No response_ ### Steps to reproduce Assume a directory tree that looks like this: ``` parentDir/ childDirA/ childDirB/ ``` 1. Navigate to the `childDirA` subdir so that the contents shows in the right pane of explorer 2. right-click on `childDirB` in the *left* (treeview) pane of explorer (the contents of `childDirA` will continue to show in the right pane) 3. Choose "Open in Windows Terminal" ### Expected Behavior A terminal to open with `childDirB` as the current dir. ### Actual Behavior The terminal opens to `childDirA`. Might be related to #11587 (which references internal issues MSFT:36795851 and MSFT:36416534.
Author
Owner

@elsaco commented on GitHub (Jan 14, 2022):

@johnburnett if you open childDirB (content shown in the right pane) then right-click directory childDirA the terminal will open in childDirB. I tried with more subfolders and the terminal opens to whatever folder has been selected in the left pane to have its contend shown.

@elsaco commented on GitHub (Jan 14, 2022): @johnburnett if you open `childDirB` (content shown in the right pane) then right-click directory `childDirA` the terminal will open in `childDirB`. I tried with more subfolders and the terminal opens to whatever folder has been selected in the left pane to have its contend shown.
Author
Owner

@johnburnett commented on GitHub (Jan 14, 2022):

@elsaco - correct, the terminal always opens to the folder shown in the right pane. This is surprising/wrong, as right-clicking on a folder on the left pane should indicate that that is the folder I want to open to. This seems to be a problem with the new Windows 11 context menu specifically. If you choose "Show more options > Open in Windows Terminal" for step 3 above, you can see the old/correct behavior.

@johnburnett commented on GitHub (Jan 14, 2022): @elsaco - correct, the terminal always opens to the folder shown in the right pane. This is surprising/wrong, as right-clicking on a folder on the left pane should indicate that *that* is the folder I want to open to. This seems to be a problem with the new Windows 11 context menu specifically. If you choose "Show more options > Open in Windows Terminal" for step 3 above, you can see the old/correct behavior.
Author
Owner

@zadjii-msft commented on GitHub (Jan 18, 2022):

Thanks for filing this! I've moved this upstream to the File Explorer folks, in MSFT:37779037.

@zadjii-msft commented on GitHub (Jan 18, 2022): Thanks for filing this! I've moved this upstream to the File Explorer folks, in MSFT:37779037.
Author
Owner

@johnburnett commented on GitHub (Jan 18, 2022):

@zadjii-msft - great, thanks! Is there any was to get visibility to this? This same issue seems to impact other tools that interact with the left pane (e.g. TortoiseGit has the same problem), and I'd imagine the fix will be the same.

@johnburnett commented on GitHub (Jan 18, 2022): @zadjii-msft - great, thanks! Is there any was to get visibility to this? This same issue seems to impact other tools that interact with the left pane (e.g. TortoiseGit [has the same problem](https://gitlab.com/tortoisegit/tortoisegit/-/issues/3845)), and I'd imagine the fix will be the same.
Author
Owner

@zadjii-msft commented on GitHub (Jan 18, 2022):

Unfortunately not really. On the bright side, my experience with the File Explorer team has been pretty positive overall, and they've been fairly good about getting on top of the context menu bugs we've thrown their way.

@zadjii-msft commented on GitHub (Jan 18, 2022): Unfortunately not really. On the bright side, my experience with the File Explorer team has been pretty positive overall, and they've been fairly good about getting on top of the context menu bugs we've thrown their way.
Author
Owner

@johnburnett commented on GitHub (Jan 18, 2022):

Ok, no worries - I'll keep an eye on this ticket as a proxy for what the
fix might look like.

@johnburnett commented on GitHub (Jan 18, 2022): Ok, no worries - I'll keep an eye on this ticket as a proxy for what the fix might look like.
Author
Owner

@zadjii-msft commented on GitHub (Mar 19, 2022):

This got duped to MSFT:36889296, which was just fixed internally and should be flowing out to an Insiders build sometime soon.

@zadjii-msft commented on GitHub (Mar 19, 2022): This got duped to MSFT:36889296, which was just fixed internally and should be flowing out to an Insiders build sometime soon.
Author
Owner

@zadjii-msft commented on GitHub (Aug 3, 2022):

I believe this was either fixed in 22570 or 25071 - build numbers are confusing these days, but both those builds date back to March. Thanks all!

@zadjii-msft commented on GitHub (Aug 3, 2022): I believe this was either fixed in `22570` or `25071` - build numbers are confusing these days, but both those builds date back to March. Thanks all!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16398