[PR #15259] [MERGED] Don't explode when we tear out the last tab of the window #30550

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/15259
Author: @zadjii-msft
Created: 4/28/2023
Status: Merged
Merged: 4/29/2023
Merged by: @microsoft-github-policy-service[bot]

Base: mainHead: dev/migrie/b/dont-explode-when-last-tears-out


📝 Commits (2)

  • 882bf56 Don't explode when we tear out the last tab of the window
  • c27bb74 Merge remote-tracking branch 'origin/main' into dev/migrie/b/dont-explode-when-last-tears-out

📊 Changes

1 file changed (+4 additions, -3 deletions)

View changed files

📝 src/cascadia/WindowsTerminal/AppHost.cpp (+4 -3)

📄 Description

If you were really fast, and closed one window, and then tried to drag the only tab out of the last remaining window, the Terminal could explode. It'd attempt to restore the previous window state, and explode.

Easy way to stop this (also, be more robust): just don't attempt to restore windows during tear-out. That's obvious.

This is a part of #14957


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/15259 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 4/28/2023 **Status:** ✅ Merged **Merged:** 4/29/2023 **Merged by:** [@microsoft-github-policy-service[bot]](https://github.com/apps/microsoft-github-policy-service) **Base:** `main` ← **Head:** `dev/migrie/b/dont-explode-when-last-tears-out` --- ### 📝 Commits (2) - [`882bf56`](https://github.com/microsoft/terminal/commit/882bf56961d5f277ba23becdd7a4a66c626a4270) Don't explode when we tear out the last tab of the window - [`c27bb74`](https://github.com/microsoft/terminal/commit/c27bb74c9069ea5ff51370e45993d96fc1653103) Merge remote-tracking branch 'origin/main' into dev/migrie/b/dont-explode-when-last-tears-out ### 📊 Changes **1 file changed** (+4 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/WindowsTerminal/AppHost.cpp` (+4 -3) </details> ### 📄 Description If you were really fast, and closed one window, and then tried to drag the only tab out of the last remaining window, the Terminal could explode. It'd attempt to restore the previous window state, and explode. Easy way to stop this (also, be more robust): just don't attempt to restore windows during tear-out. That's obvious. This is a part of #14957 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:41:31 +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#30550