Skip to content

Moving tabs out of terminal doesn't work properly with startupActions #16050

@Jackenmen

Description

@Jackenmen

Windows Terminal version

1.18.2681.0

Windows build number

10.0.19045.3448

Other Software

No response

Steps to reproduce

  1. Set startupActions in the Terminal's configuration (you can set config to the below JSON, it seems that the terminal will auto-generate the rest after and it's still reproducible):
{
    "startupActions": "new-tab -p \"PowerShell\" ; new-tab -p \"Command Prompt\""
}
  1. Start a terminal.
  2. In the PowerShell tab, run some command to get some output (I use this to show whether it's still the same tab after dragging out)
  3. Try dragging out the PowerShell tab.
  4. Notice the wrong behaviour

Expected Behavior

I expected the new window to contain the dragged-out tab, without startupActions being ran.

Actual Behavior

The new window does not contain the dragged-out tab and is started as it was the first terminal window per the startupActions. The old window no longer has the dragged-out tab either.

NVIDIA_Share_2023-09-28_12-09-46.mp4

Metadata

Metadata

Assignees

Labels

Area-WindowingWindow frame, quake mode, tearoutIn-PRThis issue has a related PRIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsProduct-TerminalThe new Windows Terminal.Severity-BlockingWe won't ship a release like this! No-siree.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions