Duplicate Tabs & Panes are not Duplicates #15767

Closed
opened 2026-01-31 04:47:51 +00:00 by claunia · 2 comments
Owner

Originally created by @stephenmartindale on GitHub (Nov 3, 2021).

Windows Terminal version (or Windows build number)

1.12.2931.0

Other Software

No response

Steps to reproduce

  1. Open Windows Terminal with a starting-directory and command-line set, for example:

    %localappdata%\Microsoft\WindowsApps\wt.exe new-tab --commandline %SystemRoot%\System32\cmd.exe /c "path/to/python-environment.bat && python.exe path/to/interactive/program.py"
    
  2. Press the keyboard shortcut to duplicate the current tab: ctrl+shift+d

    • Alternatively, split the pane.
  3. Observe that the duplicated tab does not invoke the command-line given in --commandline

    • Starting directory (-d) is also not applied.

Expected Behavior

I expect that the duplicate tab (or pane) should be a true duplicate. I.e. it should be created with precisely the initialization parameters of the original tab (or pane), including at least the following most important ones:

  • Profile
  • Starting Directory
  • Command Line

Actual Behavior

  • The duplicated tab does not invoke the command-line given in --commandline
  • Starting directory (-d) is also not applied.
Originally created by @stephenmartindale on GitHub (Nov 3, 2021). ### Windows Terminal version (or Windows build number) 1.12.2931.0 ### Other Software _No response_ ### Steps to reproduce 1. Open *Windows Terminal* with a starting-directory and command-line set, for example: ``` %localappdata%\Microsoft\WindowsApps\wt.exe new-tab --commandline %SystemRoot%\System32\cmd.exe /c "path/to/python-environment.bat && python.exe path/to/interactive/program.py" ``` 2. Press the keyboard shortcut to *duplicate* the current tab: `ctrl+shift+d` - Alternatively, split the pane. 3. Observe that the duplicated tab does not invoke the command-line given in `--commandline` - Starting directory (`-d`) is also not applied. ### Expected Behavior I expect that the *duplicate* tab (or pane) should be a true duplicate. I.e. it should be created with precisely the initialization parameters of the original tab (or pane), including *at least* the following most important ones: - Profile - Starting Directory - Command Line ### Actual Behavior - The duplicated tab does not invoke the command-line given in `--commandline` - Starting directory (`-d`) is also not applied.
claunia added the Resolution-Duplicate label 2026-01-31 04:47:51 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Nov 3, 2021):

... this is what we're tracking with #5047. When https://github.com/microsoft/terminal/issues/5047#issuecomment-934547500 mentions NewTerminalArgs, that's the bundle of things like startingDirectory, commandline, etc.

/dup #5047

@zadjii-msft commented on GitHub (Nov 3, 2021): ... this is what we're tracking with #5047. When https://github.com/microsoft/terminal/issues/5047#issuecomment-934547500 mentions `NewTerminalArgs`, that's the bundle of things like `startingDirectory`, `commandline`, etc. /dup #5047
Author
Owner

@ghost commented on GitHub (Nov 3, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Nov 3, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15767