terminal
terminal copied to clipboard
`wt -w 0 sp -s 0.4 pwsh` opens a new tab and THEN splits it
Windows Terminal version
1.23.10732.0
Windows build number
10.0.26100.0
Other Software
No response
Steps to reproduce
When both WT stable and WT preview are both installed, running wt -w 0 sp -s 0.4 pwsh in WT preview will start a WT stable window (or use an existing WT stable window) and split the tab in it.
Even when using the WT preview specific wt.exe, it still doesn't work properly -- it starts a new tab in the current WT preview window and split that tab, while the expectation is that it will split the current tab.
& 'C:\Users\<user-name>\AppData\Local\Microsoft\WindowsApps\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\wt.exe' -w 0 sp -s 0.4 pwsh
The command wt -w 0 sp -s 0.4 pwsh works as expected when running in WT stable.
For reference, this behavior was reported in https://github.com/PowerShell/AIShell/issues/363
Expected Behavior
Running wt -w 0 sp -s 0.4 pwsh should split the current tab in the current WT window, regardless of in WT stable or WT preview.
This could be related to https://github.com/microsoft/terminal/issues/18459
When both WT stable and WT preview are both installed, running wt -w 0 sp -s 0.4 pwsh in WT preview will start a WT stable window (or use an existing WT stable window) and split the tab in it.
This is expected when the setting in "Manage App Execution Aliases" gives precedence to Terminal Stable
Even when using the WT preview specific wt.exe, it still doesn't work properly -- it starts a new tab in the current WT preview window and split that tab, while the expectation is that it will split the current tab.
This is a bug. I can reproduce it on Canary as well. Thanks!
This is expected when the setting in "Manage App Execution Aliases" gives precedence to Terminal Stable
@DHowett My settings for "Terminal" and "Terminal Preview" are shown below. Does it give precedence to Terminal Stable or Terminal Preview?
Bumping this one up from p3 to p2 since we're getting more hits