microsoft / microsoft/terminal

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

Open
#12,995 0 comments 0 reactions 0 assignees View on GitHub
Area-DefApp Issue-Task Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

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.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by setting up defterm, running cmd.exe, and inspecting the resulting process tree in Task Manager. Investigate how cmd.exe and its conhost are handed off to OpenConsole or WindowsTerminal; done means they appear under the appropriate terminal process instead of explorer while preserving the handoff behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.