Closing a tab in focus mode causes terminal to become unresponsive #11019

Open
opened 2026-01-31 02:36:28 +00:00 by claunia · 0 comments
Owner

Originally created by @zadjii-msft on GitHub (Oct 13, 2020).

Windows Terminal Preview
Version: 1.5.2831.0
  1. Open the Terminal
  2. Enter focus mode
  3. Run a command that opens a bunch of tabs/panes. I'm using
        { "command": { "action": "wt", "commandline": "new-tab --title OpenConsole cmd.exe /k #work 15 ; split-pane --title OpenConsole cmd.exe /k #work 15 ; split-pane -H cmd.exe /k media-commandline ; new-tab --title \"Symbols Script\" powershell dev\\symbols.ps1 ; new-tab -p \"Ubuntu 18.04\" ; new-tab -p \"microsoft/Terminal\" ; sp -V -p \"microsoft/Terminal\" ; sp -H -p \"microsoft/Terminal\" ; focus-tab -t 0" }, "name": "Good Morning" },

But it probably repros for something simpler
4. Close the first tab

expected

The tab closes, and the terminal works as usual

actual

The tab stays open, and now the terminal is seemingly hung. The focus has left the original control, but hasn't gone anywhere. There's no tab strip to be able to manually focus another tab. Clicking the control also doesn't focus it. Since the focused control is responsible for routing keyboard events, the terminal won't respond to any KB shortcuts, since there's no focused control

Originally created by @zadjii-msft on GitHub (Oct 13, 2020). ``` Windows Terminal Preview Version: 1.5.2831.0 ``` 1. Open the Terminal 2. Enter focus mode 3. Run a command that opens a bunch of tabs/panes. I'm using ```json { "command": { "action": "wt", "commandline": "new-tab --title OpenConsole cmd.exe /k #work 15 ; split-pane --title OpenConsole cmd.exe /k #work 15 ; split-pane -H cmd.exe /k media-commandline ; new-tab --title \"Symbols Script\" powershell dev\\symbols.ps1 ; new-tab -p \"Ubuntu 18.04\" ; new-tab -p \"microsoft/Terminal\" ; sp -V -p \"microsoft/Terminal\" ; sp -H -p \"microsoft/Terminal\" ; focus-tab -t 0" }, "name": "Good Morning" }, ``` But it probably repros for something simpler 4. Close the first tab ### expected The tab closes, and the terminal works as usual ### actual The tab stays open, and now the terminal is seemingly hung. The focus has left the original control, but hasn't gone anywhere. There's no tab strip to be able to manually focus another tab. Clicking the control also doesn't focus it. Since the focused control is responsible for routing keyboard events, the terminal won't respond to any KB shortcuts, since there's no focused control
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#11019