Slow terminal restoring #18196

Open
opened 2026-01-31 06:06:31 +00:00 by claunia · 1 comment
Owner

Originally created by @Trard on GitHub (Aug 18, 2022).

Originally assigned to: @zadjii-msft on GitHub.

Windows Terminal version

1.14.2281.0

Windows build number

10.0.19044.0

Other Software

No response

Steps to reproduce

  1. Open and minimize windows terminal.
  2. Restore window.
  3. See slow restoring.

https://user-images.githubusercontent.com/68790724/185354302-446814b2-ee78-4050-8108-282b66966ea4.mp4

Expected Behavior

Quick restoring, like Microsoft Store.

https://user-images.githubusercontent.com/68790724/185354488-248f6114-676a-474a-9e05-f45a1248dcc8.mp4

or Firefox

https://user-images.githubusercontent.com/68790724/185356556-d0746fdb-4e27-4cbc-bb4f-0ba04888db65.mp4

Actual Behavior

Slow restoring

Originally created by @Trard on GitHub (Aug 18, 2022). Originally assigned to: @zadjii-msft on GitHub. ### Windows Terminal version 1.14.2281.0 ### Windows build number 10.0.19044.0 ### Other Software _No response_ ### Steps to reproduce 1. Open and minimize windows terminal. 2. Restore window. 3. See slow restoring. https://user-images.githubusercontent.com/68790724/185354302-446814b2-ee78-4050-8108-282b66966ea4.mp4 ### Expected Behavior Quick restoring, like Microsoft Store. https://user-images.githubusercontent.com/68790724/185354488-248f6114-676a-474a-9e05-f45a1248dcc8.mp4 or Firefox https://user-images.githubusercontent.com/68790724/185356556-d0746fdb-4e27-4cbc-bb4f-0ba04888db65.mp4 ### Actual Behavior Slow restoring
claunia added the Issue-BugPriority-3Needs-ReproProduct-TerminalArea-Windowing labels 2026-01-31 06:06:32 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Aug 18, 2022):

I know 85% what's causing this.

This is fallout from the fix to #13589, more or less.

For whatever reason, the taskbar is restoring the hidden tool window ("pseudowindow") that's attached to the Terminal, rather than the actual Terminal window. Before we fixed #13589, the Terminal just wouldn't restore from the taskbar at all. Instead, we now can determine that the tool window got restored, and we send a signal to the Terminal to cause it to get restored as well. HOWEVER, we need to debounce these requests for various reasons. So there's a 200ms throttling that happens, which delays the restore (but also prevents CRAZY FLASHING) of the terminal window.

This is all fixed in Windows 11 (there, the taskbar just restores the Terminal's main HWND).

There's also #13388 and #13640 which are tracking additional weird bugs about this scenario. Considering we need to still figure out these last Windows 10 issues, I'm considering rolling them all into one thread.

@zadjii-msft commented on GitHub (Aug 18, 2022): I know 85% what's causing this. This is fallout from the fix to #13589, more or less. For whatever reason, the taskbar is restoring the hidden tool window ("pseudowindow") that's attached to the Terminal, rather than the actual Terminal window. Before we fixed #13589, the Terminal just wouldn't restore from the taskbar _at all_. Instead, we now can determine that the tool window got restored, and we send a signal to the Terminal to cause it to get restored as well. HOWEVER, we need to debounce these requests for various reasons. So there's a 200ms throttling that happens, which delays the restore (but also prevents CRAZY FLASHING) of the terminal window. This is all fixed in Windows 11 (there, the taskbar just restores the Terminal's main HWND). There's also #13388 and #13640 which are tracking additional weird bugs about this scenario. Considering we need to still figure out these last Windows 10 issues, I'm considering rolling them all into one thread.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18196