[PR #7741] conpty: fall back to conhost if OpenConsole is missing #26979

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

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

State: closed
Merged: Yes


This pull request is in support of WTU.

I initially added support for a new flag, PSEUDOCONSOLE_UNDOCKED_PREFER_INBOX_CONHOST, which I liked because it was more explicit. You can see that approach in commit cae3289cf.

Consider this an open discussion. Should we automatically fall back? Or should we allow a developer to opt for fallback?

Automatic fallback

Pros

  • It's easier on the consumer
  • We can eventually expand it to support $ARCH/openconsole.exe

Cons

  • Packaging the project wrong will result in a working-but-somewhat-broken experience (old conhost)
  • Implicit behavior may be bad

Manual selection

Pros

  • Consumer gets explicit control

Cons

  • Consumer must explicitly opt in. In the case of WTU, that means pushing a configuration down into TerminalConnection all the way from TerminalApp to say "use the inbox one, dummy"
**Original Pull Request:** https://github.com/microsoft/terminal/pull/7741 **State:** closed **Merged:** Yes --- This pull request is in support of WTU. I initially added support for a new flag, `PSEUDOCONSOLE_UNDOCKED_PREFER_INBOX_CONHOST`, which I liked because it was more explicit. You can see that approach in commit cae3289cf. Consider this an open discussion. Should we automatically fall back? Or should we allow a developer to opt for fallback? ### Automatic fallback #### Pros * It's easier on the consumer * We can eventually expand it to support `$ARCH/openconsole.exe` #### Cons * Packaging the project wrong will result in a working-but-somewhat-broken experience (old conhost) * Implicit behavior may be bad ### Manual selection #### Pros * Consumer gets explicit control #### Cons * Consumer must explicitly opt in. In the case of WTU, that means pushing a configuration down into TerminalConnection all the way from TerminalApp to say "use the inbox one, dummy"
claunia added the pull-request label 2026-01-31 09:19:18 +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#26979