terminal icon indicating copy to clipboard operation
terminal copied to clipboard

[regression] The parent process of WT does not terminate

Open Zeroes1 opened this issue 2 months ago • 7 comments

Windows Terminal version

1.23.12811.0

Windows build number

10.0.19045.3448

Other Software

No response

Steps to reproduce

Run WindowsTerminal.exe (or WT.exe) with default settings (note: work in background mode is OFF)

in Powershell window [default profile] press key 'ContextMenu' on keyboard

in context menu choose 'Close Tab' and click by left key mouse

Expected Behavior

latest good release: terminal-1.22.11751.0 and earler

latest good canary terminal-1.24.531.0 and earler

If we work not in background mode and close Latest Tab, process WindowsTerminal.exe must be closed

Actual Behavior

with trouble release: terminal-1.23.12681.0 terminal-1.23.12811.0

with trouble canary all since terminal-1.24.551.0 -> terminal-1.25.2821.0

check processes in OS, and see what the parent process of WT does not terminate. And we see app with default ico on taskbar Windows.

WT Hotkeys Alt+F4 and Ctrl+Shift+W, work fine, closed all (parent and child processes). command 'exit' in PS windows closed all. closing the last tab by clicking on the window cross also works great.

Zeroes1 avatar Oct 14 '25 11:10 Zeroes1

repro 100%

https://github.com/user-attachments/assets/580c9e1c-abda-4174-969a-2ba958a00d48

Zeroes1 avatar Oct 14 '25 11:10 Zeroes1

I couldn't reproduce the issue:

https://github.com/user-attachments/assets/58ff8062-e738-4cc1-9a50-0de8031eacec

lhecker avatar Oct 15 '25 13:10 lhecker

@lhecker I cant watch your video, file damaged?

Zeroes1 avatar Oct 15 '25 20:10 Zeroes1

Maybe you're missing the right codec? Can you try downloading it and playing it in VLC or MPV or similar? Otherwise I'll re-encode it for you, of course.

lhecker avatar Oct 15 '25 20:10 lhecker

@lhecker i download, now i see with player.

ok, but i have trouble. checked now on another computer (at home) with Microsoft.WindowsTerminalPreview_1.24.2812.0_x64.zip same behavior :/ win10 22h2 (user admin and limit user)

any idea how to debug this situation?

Zeroes1 avatar Oct 15 '25 20:10 Zeroes1

@lhecker Hi, you check this behavior on Windows 10, right?

Zeroes1 avatar Nov 10 '25 16:11 Zeroes1

I tried it in a VM, and it didn't reproduce:

https://github.com/user-attachments/assets/f49a5f83-c311-43fb-8da1-3689ebf45058

lhecker avatar Nov 24 '25 12:11 lhecker