[PR #18620] Fix a crash when closing tabs #31571

Closed
opened 2026-01-31 09:48:05 +00:00 by claunia · 0 comments
Owner

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

State: closed
Merged: Yes


WinUI asynchronously updates its tab view items, so it may happen that
we're given a TabViewItem that still contains a TabBase which has
actually already been removed. Regressed in #15924.

Closes #18581

Validation Steps Performed

  • Close tabs rapidly with middle click
  • No crash ✅
**Original Pull Request:** https://github.com/microsoft/terminal/pull/18620 **State:** closed **Merged:** Yes --- WinUI asynchronously updates its tab view items, so it may happen that we're given a `TabViewItem` that still contains a `TabBase` which has actually already been removed. Regressed in #15924. Closes #18581 ## Validation Steps Performed * Close tabs rapidly with middle click * No crash ✅
claunia added the pull-request label 2026-01-31 09:48:05 +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#31571