Skip to content

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

@daxian-dbw

Description

@daxian-dbw

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.

Metadata

Metadata

Assignees

Labels

Area-Commandlinewt.exe's commandline argumentsArea-WindowingWindow frame, quake mode, tearoutIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsPriority-2A description (P2)Product-TerminalThe new Windows Terminal.

Type

Projects

Status

Shipped

Status

Shipped

Relationships

None yet

Development

No branches or pull requests

Issue actions