[DefApp] Conhostv1 activation fails from runbox when Default Terminal is set #15764

Open
opened 2026-01-31 04:47:48 +00:00 by claunia · 2 comments
Owner

Originally created by @miniksa on GitHub (Nov 2, 2021).

  1. Have Default Terminal set up
  2. Set legacy conhost (ForceV2 registry key off / the setting in the prop sheet) for conhostv1
  3. Run conhost cmd from the runbox which should launch it

Expected: it launches
Actual: nothing happens

Bonus points.... conhost cmd -ForceV1 doesn't seem to do what I want either

Originally created by @miniksa on GitHub (Nov 2, 2021). 1. Have Default Terminal set up 2. Set legacy conhost (ForceV2 registry key off / the setting in the prop sheet) for conhostv1 3. Run `conhost cmd` from the runbox which should launch it Expected: it launches Actual: nothing happens Bonus points.... `conhost cmd -ForceV1` doesn't seem to do what I want either
claunia added the Product-ConhostIssue-BugPriority-2Area-DefApp labels 2026-01-31 04:47:48 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Mar 8, 2022):

@miniksa I'm pretty sure this isn't a regression.

f217f6dc33/src/host/exe/exemain.cpp (L298-L313)

But even before defterm: (harder to find since the file moved and git considered it rewritten):
d09fdd61cb/src/host/exemain.cpp (L178-L192)

Pretty sure conhost cmd goes down the ShouldCreateServerHandle path, and _createServerHandle is only set to false when it actually gets the 0x4 on the commandline.

So,

  • not a defterm regression
  • conhost cmd -ForceV1 may still be busted, but I doubt it ever worked
  • punt from 1.14? Close?
@zadjii-msft commented on GitHub (Mar 8, 2022): @miniksa I'm pretty sure this isn't a regression. https://github.com/microsoft/terminal/blob/f217f6dc331559f57301dfb84ce3898d20c944d6/src/host/exe/exemain.cpp#L298-L313 But even before defterm: (harder to find since the file moved and git considered it rewritten): https://github.com/microsoft/terminal/blob/d09fdd61cbb11b7ef2ccdd4820349ffe898ad583/src/host/exemain.cpp#L178-L192 Pretty sure `conhost cmd` goes down the `ShouldCreateServerHandle` path, and `_createServerHandle` is only set to `false` when it actually gets the `0x4` on the commandline. So, * not a defterm regression * `conhost cmd -ForceV1` may still be busted, but I doubt it ever worked * punt from 1.14? Close?
Author
Owner

@miniksa commented on GitHub (Mar 10, 2022):

Icebox it I guess.

@miniksa commented on GitHub (Mar 10, 2022): Icebox it I guess.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15764