Skip to content

Windows Terminal crashes when combining duplicateTab with moveTab in multipleActions #17341

Open
@vkoukis

Description

Windows Terminal version

1.21.1272.0

Windows build number

Microsoft Windows [Version 10.0.22631.3593]

Other Software

No response

Steps to reproduce

  1. Include this snippet in your settings.json:
{
    "command":
    {
        "action": "multipleActions",
        "actions":
        [
            {
                "action": "duplicateTab"
            },
            {
                "action": "moveTab",
                "window": "new"
            }
        ]
    },
    "keys": "ctrl+shift+f12"
},
  1. Open Windows Terminal
  2. Press Ctrl+Shift+F12
  3. See it crash.

Expected Behavior

I was hoping to create a new entry with multipleActions to 1. duplicate the current tab into a new tab, 2. move it to its own window. @zadjii-msft had proposed this great workaround as a way to clone the current tab into a new window, in #14350 (comment).

Actual Behavior

Windows Terminal crashes.

Noting that using multipleActions with just the duplicateTab action works, but it only duplicates the tab.
Similarly, referencing just the moveTab action works.
Combining them both in multipleActions causes Terminal to crash.

There was a similar bug where manipulating tabs as part of multipleActions was causing issues:
#11107
And there was a fix to the way Windows Terminal handled tab movement in multipleActions.
#11144

Maybe a similar problem still exists when creating a new tab as part of multipleActions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area-UserInterfaceIssues pertaining to the user interface of the Console or TerminalIssue-BugIt either shouldn't be doing this or needs an investigation.Product-TerminalThe new Windows Terminal.Severity-CrashCrashes are real bad news.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions