Windows terminal loose focus after 32 sec #20915

Open
opened 2026-01-31 07:27:41 +00:00 by claunia · 0 comments
Owner

Originally created by @nitrateag on GitHub (Nov 29, 2023).

Windows Terminal version

1.18.3181.0

Windows build number

10.0.22621.0

Other Software

No response

Steps to reproduce

Simply run (with Win+R shortcut) this command :

wt powershell -c pause

wait 32 sec.


yeah, 32 sec exactly... not 30 !
the focus is loose each time, and only on Windows Terminal !
if I use old blue Powershell console, he don't loose the focus
very weird ^^

it happen also with

wt powershell -c Read-Host

of course, that is a minimal example to reproduce, but that very painfull for the script I'm working on

Expected Behavior

After 32 seconds, the terminal still have the focus. Hit ENTER stop the pause

Actual Behavior

After 32 seconds, the terminal loose the focus. Hit ENTER do nothing because terminal don't catch the input until we click/set focus on terminal

Originally created by @nitrateag on GitHub (Nov 29, 2023). ### Windows Terminal version 1.18.3181.0 ### Windows build number 10.0.22621.0 ### Other Software _No response_ ### Steps to reproduce Simply run (with Win+R shortcut) this command : ``` wt powershell -c pause ``` wait 32 sec. --- yeah, 32 sec exactly... not 30 ! the focus is loose each time, and only on Windows Terminal ! if I use old blue Powershell console, he don't loose the focus very weird ^^ it happen also with ``` wt powershell -c Read-Host ``` of course, that is a minimal example to reproduce, but that very painfull for the script I'm working on ### Expected Behavior After 32 seconds, the terminal still have the focus. Hit ENTER stop the pause ### Actual Behavior After 32 seconds, the terminal loose the focus. Hit ENTER do nothing because terminal don't catch the input until we click/set focus on terminal
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 07:27:42 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20915