Show milestone progress bar for post generation queue jobs

Add percentage-by-stage progress in the queue UI, a progress rendering
test script, and clearer Chrome focus error details in the ChatGPT worker.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Loma Bot Ops
2026-11-23 15:36:52 +07:00
parent 53d39ae4cd
commit 4c691b5dde
6 changed files with 97 additions and 4 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ function Focus-Chrome {
Start-Sleep -Milliseconds 300
[uint32]$foregroundProcessId = 0
[ChatGptWindow]::GetWindowThreadProcessId([ChatGptWindow]::GetForegroundWindow(),[ref]$foregroundProcessId) | Out-Null
if ($foregroundProcessId -ne $browser.Id) { throw "Chrome could not take foreground focus; refusing to send keystrokes to another application." }
if ($foregroundProcessId -ne $browser.Id) { throw "Chrome could not take foreground focus (target=$($browser.Id), foreground=$foregroundProcessId); refusing to send keystrokes to another application." }
}
function Get-Controls {
$root = [System.Windows.Automation.AutomationElement]::FromHandle($browser.MainWindowHandle)