[PR #19403] Remove the leading fire from the taskbar progress handler #31829

Open
opened 2026-01-31 09:49:50 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/19403

State: closed
Merged: Yes


If the progress state hasn't been set for more than 200ms, we shouldn't even bother flickering the old state.

This prevents applications from making the tab (and the taskbar icon) flicker.

We were reviewing #19394 and decided that the original behavior before Leonard's throttling fix was somewhat unfortunate as well. An application that sets an indeterminate state for 10ms and then clears it shouldn't be able to make any part of the application flicker, fast or slow.

Removing the leading fire time from the throttled function ensures that it will only fire once every 200ms, and only with the state most recently set. It will not debounce (so setting the progress every 150ms will not prevent it from updating.)

Closes #19394

**Original Pull Request:** https://github.com/microsoft/terminal/pull/19403 **State:** closed **Merged:** Yes --- If the progress state hasn't been set for more than 200ms, we shouldn't even bother flickering the old state. This prevents applications from making the tab (and the taskbar icon) flicker. We were reviewing #19394 and decided that the _original_ behavior before Leonard's throttling fix was somewhat unfortunate as well. An application that sets an indeterminate state for 10ms and then clears it shouldn't be able to make any part of the application flicker, fast _or_ slow. Removing the leading fire time from the throttled function ensures that it will only fire once every 200ms, and only with the state most recently set. It will not debounce (so setting the progress every 150ms will not prevent it from updating.) Closes #19394
claunia added the pull-request label 2026-01-31 09:49:50 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31829