[PR #4337] Shut down all controls under a tab before we remove it from the list #25717

Open
opened 2026-01-31 09:11:20 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/4337

State: closed
Merged: Yes


This commit introduces a new recursive pane shutdown that will give all
controls under a tab a chance to clean up their state before beign
detached from the UI. It also reorders the call to LastTabClosed() so
that the application does not exit before the final connections are
terminated.

It also teaches TSFInputControl how to shut down to avoid a dramatic
platform bug.

Fixes #4159.
Fixes #4336.

PR Checklist

  • CLA signed
  • I've discussed this with core contributors already.

Validation Steps Performed

Validated through manual terminal teardown within and without the debugger, given a crazy number of panes and tabs.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/4337 **State:** closed **Merged:** Yes --- This commit introduces a new recursive pane shutdown that will give all controls under a tab a chance to clean up their state before beign detached from the UI. It also reorders the call to LastTabClosed() so that the application does not exit before the final connections are terminated. It also teaches TSFInputControl how to shut down to avoid a dramatic platform bug. Fixes #4159. Fixes #4336. ## PR Checklist * [x] CLA signed * [x] I've discussed this with core contributors already. ## Validation Steps Performed Validated through manual terminal teardown within and without the debugger, given a crazy number of panes and tabs.
claunia added the pull-request label 2026-01-31 09:11:20 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#25717