[PR #15548] Fix a crash when duplicating tabs with elevate:true #30669

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

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

State: closed
Merged: Yes


When elevate is set to true, _maybeElevate would try to
modify newTerminalArgs and crash, because during tab duplication
there aren't any newTerminalArgs. This issue may happen for instance
when receiving hand-off from a non-elevated client and then trying
to duplicate that tab.

Closes #15534

Validation Steps Performed

  • Launch with "elevate": false
  • Set "elevate": true
  • Duplicate a tab
  • Doesn't crash
**Original Pull Request:** https://github.com/microsoft/terminal/pull/15548 **State:** closed **Merged:** Yes --- When `elevate` is set to `true`, `_maybeElevate` would try to modify `newTerminalArgs` and crash, because during tab duplication there aren't any `newTerminalArgs`. This issue may happen for instance when receiving hand-off from a non-elevated client and then trying to duplicate that tab. Closes #15534 ## Validation Steps Performed * Launch with `"elevate": false` * Set `"elevate": true` * Duplicate a tab * Doesn't crash ✅
claunia added the pull-request label 2026-01-31 09:42:12 +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#30669