Duplicate Tabs & Panes are not Duplicates #15765

Open
opened 2026-01-31 04:47:48 +00:00 by claunia · 0 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:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15765