Skip to content

wt -w 0 sp -s 0.4 pwsh opens a new tab and THEN splits it #18815

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
daxian-dbw opened this issue Apr 18, 2025 · 3 comments
Open

wt -w 0 sp -s 0.4 pwsh opens a new tab and THEN splits it #18815

daxian-dbw opened this issue Apr 18, 2025 · 3 comments
Assignees
Labels
Area-Commandline wt.exe's commandline arguments Area-Windowing Window frame, quake mode, tearout Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal.

Comments

@daxian-dbw
Copy link
Member

daxian-dbw commented Apr 18, 2025

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 PowerShell/AIShell#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.

@daxian-dbw daxian-dbw added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Apr 18, 2025
@daxian-dbw
Copy link
Member Author

This could be related to #18459

@daxian-dbw daxian-dbw changed the title When both WT and WT preview are installed, running wt -w 0 sp -s 0.4 pwsh works unexpectedly in WT preview When both WT stable and WT preview are installed, running wt -w 0 sp -s 0.4 pwsh works unexpectedly in WT preview Apr 18, 2025
@DHowett
Copy link
Member

DHowett commented Apr 23, 2025

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!

@DHowett DHowett changed the title When both WT stable and WT preview are installed, running wt -w 0 sp -s 0.4 pwsh works unexpectedly in WT preview wt -w 0 sp -s 0.4 pwsh opens a new tab and THEN splits it Apr 23, 2025
@DHowett DHowett added Product-Terminal The new Windows Terminal. Area-Commandline wt.exe's commandline arguments Area-Windowing Window frame, quake mode, tearout labels Apr 23, 2025
@DHowett DHowett removed the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Apr 23, 2025
@DHowett DHowett added this to the Terminal v1.24 milestone Apr 23, 2025
@github-project-automation github-project-automation bot moved this to To Cherry Pick in 1.23 Servicing Pipeline Apr 23, 2025
@daxian-dbw
Copy link
Member Author

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?

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Commandline wt.exe's commandline arguments Area-Windowing Window frame, quake mode, tearout Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal.
Projects
Status: To Cherry Pick
Development

No branches or pull requests

3 participants