Aborting the closing of read-only pane upon connection exit puts the pane in invalid state #13133

Closed
opened 2026-01-31 03:34:42 +00:00 by claunia · 1 comment
Owner

Originally created by @Don-Vito on GitHub (Mar 21, 2021).

Windows Terminal version (or Windows build number)

Dev - latest

Other Software

No response

Steps to reproduce

  • Run ```Sleep 10; exit``
  • Make the pane read-only
  • Upon read-only dialog appearance - dismiss it

Expected Behavior

The pane remains open with no active connection in it

Actual Behavior

Tab is removed from MRU (and gets unzoomed if it was previously zoomed)

The problem is related to the fact that all CloseHandlers are invoked by the pane, even if the handler in the Terminal Page has aborted the closing.

Originally created by @Don-Vito on GitHub (Mar 21, 2021). ### Windows Terminal version (or Windows build number) Dev - latest ### Other Software _No response_ ### Steps to reproduce * Run ```Sleep 10; exit`` * Make the pane read-only * Upon read-only dialog appearance - dismiss it ### Expected Behavior The pane remains open with no active connection in it ### Actual Behavior Tab is removed from MRU (and gets unzoomed if it was previously zoomed) The problem is related to the fact that all CloseHandlers are invoked by the pane, even if the handler in the Terminal Page has aborted the closing.
claunia added the Resolution-Fix-CommittedNeeds-Tag-Fix labels 2026-01-31 03:34:42 +00:00
Author
Owner

@ghost commented on GitHub (Apr 14, 2021):

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

Handy links:

@ghost commented on GitHub (Apr 14, 2021): :tada:This issue was addressed in #9574, which has now been successfully released as `Windows Terminal Preview v1.8.1032.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.8.1032.0) * [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#13133