The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop-update): the status panel must exit when the status file vanishes
ethernet61839f052f07
diff --git a/scripts/desktop-update/posix.sh b/scripts/desktop-update/posix.shindex 94c8067bc29..cb96ced715e 100755--- a/scripts/desktop-update/posix.sh+++ b/scripts/desktop-update/posix.sh@@ -339,7 +339,7 @@ stop_ui() { # error/manual outcomes keep the window up briefly so a watchingrm -rf "$UI_PROFILE_DIR" 2>/dev/null || trueUI_PROFILE_DIR=""fi- UI_SERVER_PID="" UI_BROWSER_PID=""+ UI_SERVER_PID="" UI_BROWSER_PID="" UI_PANEL_PID=""}# ── relaunch ────────────────────────────────────────────────────────────────diff --git a/scripts/desktop-update/update-panel.applescript b/scripts/desktop-update/update-panel.applescriptindex 1c56c9dc073..ef207906015 100644--- a/scripts/desktop-update/update-panel.applescript+++ b/scripts/desktop-update/update-panel.applescript@@ -21,6 +21,10 @@ use framework "Foundation"use framework "AppKit"use scripting additions+# Set once the status file has been seen to exist; a LATER disappearance+# means the shim published a terminal state and cleaned up (see run handler).+property everPublished : false+on run argvif (count of argv) < 1 then error "usage: osascript update-panel.applescript <status-file>"set statusFile to (item 1 of argv as text)@@ -64,6 +68,19 @@ on run argvbar's stopAnimation:(missing value)exit repeatend if+ else if my everPublished then+ # The status file vanished after having existed: the shim removes+ # it right after publishing a terminal state and tearing down the+ # browser/panel UI. Waiting forever here stranded the panel on its+ # last stage ("Installing the new app") — observed on a real+ # update. Treat the disappearance as done; an error publish keeps+ # its file alive through the 15s leave-window grace, so this+ # cannot mask a failure.+ set state to "done"+ bar's stopAnimation:(missing value)+ exit repeat+ else+ set everPublished to trueend if# Pump the main runloop: without this the window never repaints and# macOS beachballs the panel (label frozen on its initial string).