Defterm commandline applications aren't under the WindowsTerminal process tree - maybe they should be? #17358

Open
opened 2026-01-31 05:40:11 +00:00 by claunia · 0 comments
Owner

Originally created by @zadjii-msft on GitHub (Apr 28, 2022).

  1. set up defterm
  2. run cmd.exe
  3. see the following:

image

There's a OpenConsole -Embedding and a WindowsTerminal -Embedding that are started, but the cmd that is started is not parented to those - it's sitting as a child of explorer, and it still owns the system conhost that did the handoff.

We may need to somehow reparent the cmd.exe & it's conhost to the OpenConsole, or the WindowsTerminal - at least so they show up sanely in Task Manager.

Originally created by @zadjii-msft on GitHub (Apr 28, 2022). 1. set up defterm 2. run cmd.exe 3. see the following: ![image](https://user-images.githubusercontent.com/18356694/165747143-7a945fba-e634-4b9d-a31a-fd4b41e01f07.png) There's a `OpenConsole -Embedding` and a `WindowsTerminal -Embedding` that are started, but the `cmd` that is started is not parented to those - it's sitting as a child of explorer, and it still owns the system conhost that did the handoff. We may need to somehow reparent the cmd.exe & it's conhost to the OpenConsole, or the WindowsTerminal - at least so they show up sanely in Task Manager.
claunia added the Issue-TaskProduct-TerminalArea-DefApp labels 2026-01-31 05:40:12 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17358