Windows Terminal hangs when shell exits #1665

Closed
opened 2026-01-30 22:33:15 +00:00 by claunia · 4 comments
Owner

Originally created by @fefrei on GitHub (Jun 13, 2019).

Originally assigned to: @DHowett-MSFT on GitHub.

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.175]
Windows Terminal version (if applicable): d82eab44d076e441f0b630d9b53a19dfa884c3ab

Steps to reproduce

  1. Open Windows Terminal
  2. Have your shell terminate, e.g. by typing exit

Expected behavior

The tab, or the whole window, closes.

Actual behavior

Windows Terminal hangs, leading to a WindowsTerminal.exe is not responding eventually.

Originally created by @fefrei on GitHub (Jun 13, 2019). Originally assigned to: @DHowett-MSFT on GitHub. # Environment ```none Windows build number: Microsoft Windows [Version 10.0.18362.175] Windows Terminal version (if applicable): d82eab44d076e441f0b630d9b53a19dfa884c3ab ``` # Steps to reproduce 1. Open Windows Terminal 2. Have your shell terminate, e.g. by typing `exit` # Expected behavior The tab, or the whole window, closes. # Actual behavior Windows Terminal hangs, leading to a _WindowsTerminal.exe is not responding_ eventually.
Author
Owner

@fefrei commented on GitHub (Jun 13, 2019):

After some experimenting and bisecting, I can add that it doesn't reproduce all the time, and it's a regression from the most recent commit, d82eab44d0.

@fefrei commented on GitHub (Jun 13, 2019): After some experimenting and bisecting, I can add that it doesn't reproduce all the time, and it's a regression from the most recent commit, d82eab44d076e441f0b630d9b53a19dfa884c3ab.
Author
Owner

@DHowett-MSFT commented on GitHub (Jun 13, 2019):

This will be impacted by #970. I'll take this on and make sure it's fixed with that change.

@DHowett-MSFT commented on GitHub (Jun 13, 2019): This will be impacted by #970. I'll take this on and make sure it's fixed with that change.
Author
Owner

@robleg88 commented on GitHub (Jun 17, 2019):

expected behavior tab closes happens whether you type exit or close the tab as long as it is not the last tab open. If it is the last tab regardless of the type of terminal tab open if you close the tab the window closes.
If you type exit on the last tab it crashes …. windows terminal not responding. It does close if end the task.
Windows terminal does open when you relaunch it. It seems to only open happen when you type exit on the last remaining tab that is open.

@robleg88 commented on GitHub (Jun 17, 2019): expected behavior tab closes happens whether you type exit or close the tab as long as it is not the last tab open. If it is the last tab regardless of the type of terminal tab open if you close the tab the window closes. If you type exit on the last tab it crashes …. windows terminal not responding. It does close if end the task. Windows terminal does open when you relaunch it. It seems to only open happen when you type exit on the last remaining tab that is open.
Author
Owner

@fefrei commented on GitHub (Jun 18, 2019):

I can confirm this is fixed now. Thanks, @DHowett-MSFT!

@fefrei commented on GitHub (Jun 18, 2019): I can confirm this is fixed now. Thanks, @DHowett-MSFT!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1665