[PR #17069] Fix wrong CommandPallete access #31107

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

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

State: closed
Merged: Yes


Closes: #17032

We were wrongly calling the Ctor of CommandPalette which led to the creation of an uninitialized winrt command palette object, and then OnCreateAutomationPeer() was called on that. This seems to be the cause of #17032.

Validation Steps Performed

  • Open WT.
  • Try to tear off a tab out of the tab headers view.
  • WT doesn't crash.
**Original Pull Request:** https://github.com/microsoft/terminal/pull/17069 **State:** closed **Merged:** Yes --- Closes: #17032 We were wrongly calling the Ctor of CommandPalette which led to the creation of an uninitialized winrt command palette object, and then OnCreateAutomationPeer() was called on that. This seems to be the cause of #17032. ## Validation Steps Performed - Open WT. - Try to tear off a tab out of the tab headers view. - WT doesn't crash.
claunia added the pull-request label 2026-01-31 09:45:10 +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#31107