[PR #11427] Fix crash and empty action in SUI Actions Page #28571

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

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

State: closed
Merged: Yes


Summary of the Pull Request

Fixes two issues related to SUI's Actions page:

  1. Crash when adding an action and setting key chord to one that is already taken
    • Cause: the new key binding that was introduced with the "Add new" button appears in _KeyBindingList that we're iterating over. This has no CurrentKeys(), resulting in a null pointer exception.
    • Fix: null-check it
  2. There's an action that appears as being nameless in the dropdown
    • Cause: The culprit seems to be MultipleActions. We would register it, but it wouldn't have a name, so it would appear as a nameless option.
    • Fix: if it has no name, don't register it. This is also future-proof in that any new nameless actions won't be automatically added.

Closes #10981
Part of #11353

**Original Pull Request:** https://github.com/microsoft/terminal/pull/11427 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request Fixes two issues related to SUI's Actions page: 1. Crash when adding an action and setting key chord to one that is already taken - **Cause**: the new key binding that was introduced with the "Add new" button appears in `_KeyBindingList` that we're iterating over. This has no `CurrentKeys()`, resulting in a null pointer exception. - **Fix**: null-check it 2. There's an action that appears as being nameless in the dropdown - **Cause**: The culprit seems to be `MultipleActions`. We would register it, but it wouldn't have a name, so it would appear as a nameless option. - **Fix**: if it has no name, don't register it. This is also future-proof in that any new nameless actions won't be automatically added. Closes #10981 Part of #11353
claunia added the pull-request label 2026-01-31 09:29:21 +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#28571