When a pane reports [process exited with code ...] the GUI should let you close it without closing the entire tab #15634

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

Originally created by @FabioTurati-NTT on GitHub (Oct 21, 2021).

Description of the new feature/enhancement

When you use multiple panes in a single tab, and one of them exits with an error code, the pane is "stuck" displaying it. There are only 2 ways to dismiss the error message and close that pane:

  1. Closing the entire tab, which forces the user to also close the other panes. Reopening them can be long and boring (several SSH connections/ADB shells, scripts that must be sourced...)
  2. Using the keyboard shortcut Ctrl + Shift + W, which I can never remember

I have read in your FAQs why that message is kept, and I understand it, but this behaviour ("closeOnExit": "graceful") works fine only if you are using an entire tab, because you can easily close it by clicking on its X, but the GUI doesn't provide a way for closing a single pane.

Proposed technical implementation details (optional)

When the pane is "stuck" on the message displaying the error code, a graphical "X" should appear in its top-right corner. Clicking on it closes the pane.

Originally created by @FabioTurati-NTT on GitHub (Oct 21, 2021). # Description of the new feature/enhancement When you use multiple panes in a single tab, and one of them exits with an error code, the pane is "stuck" displaying it. There are only 2 ways to dismiss the error message and close that pane: 1. Closing the entire tab, which forces the user to also close the other panes. Reopening them can be long and boring (several SSH connections/ADB shells, scripts that must be sourced...) 2. Using the keyboard shortcut `Ctrl + Shift + W`, which I can never remember I have read in your FAQs [why that message is kept](https://github.com/microsoft/terminal/wiki/Frequently-Asked-Questions-(FAQ)#user-content-why-am-i-seeing-process-exited-with-code-), and I understand it, but this behaviour ("closeOnExit": "graceful") works fine only if you are using an entire tab, because you can easily close it by clicking on its X, but the GUI doesn't provide a way for closing a single pane. # Proposed technical implementation details (optional) When the pane is "stuck" on the message displaying the error code, a graphical "X" should appear in its top-right corner. Clicking on it closes the pane.
Author
Owner

@zadjii-msft commented on GitHub (Apr 22, 2022):

idea: TermControl could listen for the connection state to change and then send a bunch of newlines and then add a button to the TermControl underneath the message.

all the related discussions here:

@zadjii-msft commented on GitHub (Apr 22, 2022): idea: TermControl could listen for the connection state to change and then send a bunch of newlines and then add a button to the TermControl underneath the message. all the related discussions here: * #11570 * #4379 * #3726 * #12849
Author
Owner

@ghost commented on GitHub (Jan 24, 2023):

:tada:This issue was addressed in #14060, which has now been successfully released as Windows Terminal Preview v1.17.1023.🎉

Handy links:

@ghost commented on GitHub (Jan 24, 2023): :tada:This issue was addressed in #14060, which has now been successfully released as `Windows Terminal Preview v1.17.1023`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.17.1023) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15634