[PR #9802] Add -ForceNoHandoff for compatibility; stop handoff for double-click launches #27763

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

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

State: closed
Merged: Yes


Add flag that will ensure we do not handoff to a registered default console. Also for a bonus, allow double-click launches or explicit command line launches of conhost.exe with a binary argument to open with the inbox one.

PR Checklist

Validation Steps Performed

  • Automated tests for parsing
  • Enable defapp, double click conhost.exe, opens as itself
  • Enable defapp, run conhost.exe runbox, opens as itself
  • Enable defapp, run conhost.exe powershell.exe runbox, opens as itself
  • Runbox cmd.exe/pwsh.exe trigger defapp handoff to Terminal
  • Shortcut to cmd.exe/pwsh.exe trigger defapp handoff to Terminal
  • Use CHOP tool to launch conhost with a server handle triggers handoff to Terminal
  • Use CHOP tool to launch conhost with a server handle and -ForceNoHandoff opens as itself
**Original Pull Request:** https://github.com/microsoft/terminal/pull/9802 **State:** closed **Merged:** Yes --- Add flag that will ensure we do not handoff to a registered default console. Also for a bonus, allow double-click launches or explicit command line launches of conhost.exe with a binary argument to open with the inbox one. ## PR Checklist * [x] Closes #9791 * [x] I work here * [x] Tests added/passed ## Validation Steps Performed * [x] Automated tests for parsing * [x] Enable defapp, double click conhost.exe, opens as itself * [x] Enable defapp, run conhost.exe runbox, opens as itself * [x] Enable defapp, run conhost.exe powershell.exe runbox, opens as itself * [x] Runbox cmd.exe/pwsh.exe trigger defapp handoff to Terminal * [x] Shortcut to cmd.exe/pwsh.exe trigger defapp handoff to Terminal * [x] Use CHOP tool to launch conhost with a server handle triggers handoff to Terminal * [x] Use CHOP tool to launch conhost with a server handle and -ForceNoHandoff opens as itself
claunia added the pull-request label 2026-01-31 09:24:06 +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#27763