From d024a9c4949559b8bd2fccd3798813976b48d089 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Sun, 6 Sep 2026 02:40:48 -0700 Subject: [PATCH] fix(desktop-update): drop the dead WinForms pump from the ack wait Publish-UiEvent only enters the delivery-wait loop under $script:UiServer, and Show-ProgressWindow returns before the WinForms card is built whenever the browser shim is up, so $script:Ui is always null there. The DoEvents call could never run; the 50ms sleep loop is the whole wait. --- scripts/desktop-update/windows.ps1 | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/desktop-update/windows.ps1 b/scripts/desktop-update/windows.ps1 index 320db0d845..6c9bcc0167 100644 --- a/scripts/desktop-update/windows.ps1 +++ b/scripts/desktop-update/windows.ps1 @@ -308,7 +308,6 @@ function Publish-UiEvent([string]$Status, [string]$Message) { $deliveryWait = [System.Diagnostics.Stopwatch]::StartNew() while ($script:UiState.acknowledged_receipt -cne $receipt -and $deliveryWait.Elapsed.TotalSeconds -lt 10) { Start-Sleep -Milliseconds 50 - if ($script:Ui) { [System.Windows.Forms.Application]::DoEvents() } } if ($script:UiState.acknowledged_receipt -ceq $receipt) { Write-HandoffLog "shim: terminal state '$Status' acknowledged by the window"