newTab with out-of-range profile index uses the default profile #15053

Open
opened 2026-01-31 04:27:05 +00:00 by claunia · 0 comments
Owner

Originally created by @KalleOlaviNiemitalo on GitHub (Sep 1, 2021).

Windows Terminal version (or Windows build number)

1.9.1942.0

Other Software

No response

Steps to reproduce

  1. Uninstall and reinstall Windows Terminal, to delete any custom settings.
  2. Start Windows Terminal. It opens a tab with the PowerShell profile.
  3. Open the new-tab dropdown list and note it lists five profiles
    Windows PowerShell Ctrl+Shift+1
    Command Prompt Ctrl+Shift+2
    PowerShell Ctrl+Shift+3
    Debian Ctrl+Shift+4
    Azure Cloud Shell Ctrl+Shift+5
  4. Close the new-tab dropdown list.
  5. Press Ctrl+Shift+9.

Expected Behavior

No tab opens, because there are fewer than nine active profiles. Perhaps it beeps instead.

Actual Behavior

A new tab opens with the PowerShell profile.

Originally created by @KalleOlaviNiemitalo on GitHub (Sep 1, 2021). ### Windows Terminal version (or Windows build number) 1.9.1942.0 ### Other Software _No response_ ### Steps to reproduce 1. Uninstall and reinstall Windows Terminal, to delete any custom settings. 2. Start Windows Terminal. It opens a tab with the PowerShell profile. 3. Open the new-tab dropdown list and note it lists five profiles | | | |---|---| |Windows PowerShell|Ctrl+Shift+1| |Command Prompt|Ctrl+Shift+2| |**PowerShell**|Ctrl+Shift+3| |Debian|Ctrl+Shift+4| |Azure Cloud Shell|Ctrl+Shift+5| 4. Close the new-tab dropdown list. 5. Press Ctrl+Shift+9. ### Expected Behavior No tab opens, because there are fewer than nine active profiles. Perhaps it beeps instead. ### Actual Behavior A new tab opens with the PowerShell profile.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15053