macOS: update popup hangs on install; app never quits, staged nightly stays pending after close/reopen
Reported by the AO user in AO chat (relayed by a local triage agent; original wording lightly edited):
We have a pending update. When I click on update, the update popup just hangs and I am unable to complete the update. I am forced to close and reopen the app, and the update is still not done.
- Expected: clicking update installs the pending update and AO relaunches on the new version.
- Actual: the update popup hangs; after closing and reopening AO, the update is still pending.
Diagnostics collected by the agent are in the comment below.
Agent-collected evidence
Collected read-only on the reporter's machine on 2026-10-18 at about 20:55 PDT. Nothing was restarted, quit, deleted, or reinstalled. Home paths are shown as ~.
Environment
- macOS 26.5 (25F71), arm64.
- Installed app:
/Applications/Agent Orchestrator.app,CFBundleShortVersionString=0.14.3-nightly.202610161732. The bundledao --versionprintsdev, so it does not identify the build. ~/.ao/update-settings.json:enabled: true,channel: nightly,feature: null,macDifferentialUpdates: true.- Disk: 13 GiB free on
/System/Volumes/Data(97% used).
The update is downloaded and natively staged
~/.ao/staged-update.json→version: 0.14.3-nightly.202610171927,channel: nightly.~/Library/Caches/agent-orchestrator-updater/pending/hasAgent.Orchestrator-darwin-arm64-0.14.3-nightly.202610171927.zip(224,672,033 bytes, Oct 17 13:11).~/Library/Caches/dev.agent-orchestrator.desktop.ShipIt/ShipItState.plist→updateBundleURL = .../ShipIt/update.LxluGyJ/Agent Orchestrator.app/,targetBundleURL = /Applications/Agent Orchestrator.app/,launchAfterInstallation = false. The extracted bundle at that path reports0.14.3-nightly.202610171927.
ShipIt has been waiting for more than a day, and the app process has not exited
ps -o pid,ppid,lstart,etime,command -p <pids>:
PID PPID STARTED ELAPSED COMMAND
19673 1 Fri Oct 16 17:41:22 2026 02-03:14:13 /Applications/Agent Orchestrator.app/Contents/MacOS/agent-orchestrator
43023 1 Sat Oct 17 13:11:41 2026 01-07:43:54 .../Squirrel.framework/Resources/ShipIt dev.agent-orchestrator.desktop.ShipIt ...
- The main Electron process (PID 19673) has been running since the previous update relaunched it on Oct 16 17:41.
~/.ao/electron/SingletonLockpoints at this PID. The renderer helper was restarted at Oct 18 20:49:44, so the app window was reopened, but the main process never exited. - The unified log shows PID 19673 still updating its menu-bar status item (
NSStatusItemView). - The end of
ShipIt_stderr.logshows install requests but no installation step after them:
(PID 43023 is still alive. There is no "Beginning installation" line after it.)2026-10-17 11:11:41.838 ShipIt[4273] Detected this as an install request 2026-10-17 13:11:41.415 ShipIt[43023] Detected this as an install request
Previous update on this machine (Oct 16), from the same ShipIt log
2026-10-16 11:38:46 ShipIt[94455] Beginning installation
2026-10-16 11:38:52 ShipIt[94455] Installation error: SQRLInstallerErrorDomain Code=-1 "Failed to copy bundle ..."
... acp-runtime/node_modules/on-finished/HISTORY.md: The file "HISTORY.md" doesn't exist (NSPOSIXErrorDomain Code=2)
2026-10-16 11:39:12 ShipIt[7436] Detected this as an install request
2026-10-16 17:41:13 ShipIt[7436] Resuming installation attempt 2
2026-10-16 17:41:20 ShipIt[7436] Installation completed successfully
- The first attempt failed in the same way as #4175 (a staged file reported missing under
acp-runtime/). - The retry was requested at 11:39 but did not run until 17:41, about six hours later. That matches the time the current main process started.
/Applicationsalso containsAgent Orchestrator.app.broken-0.13.4-nightly.202610061857(Oct 6). How it got there was not determined.
What this supports, and what it doesn't
- Confirmed: the update finished downloading and ShipIt extracted it. A ShipIt install request has been pending since Oct 17 13:11. The AO main process has not exited since Oct 16 17:41, even though the window was closed and reopened.
- Hypothesis (not verified): on macOS with the tray enabled,
createDesktopQuitController.handleBeforeQuit(frontend/src/main/desktop-quit.tsonmain@55b02b848) turns an ordinary quit or window close into "hide to tray". It only allows a real quit whenquitCompletelyorisUpdateRestartRequested()is set. The installedapp.asarcontains both identifiers. If the install click never reachesmacRestartRequested = trueinquitAndInstallUpdate(auto-updater.ts), for example because it stalls inwaitForNativePreparationor in the helper handshake instartMacUpdateProgress, the popup would hang. "Close and reopen" would then only hide the window, so the waiting ShipIt would never see the app exit. I could not observe which step the click stopped at: the main-process console is not persisted, there is nologs/updater.jsonl(#6856 is not merged), and I did not trigger another install. - I did not reproduce this or test it on another build.
Duplicate search
Repository OrchestratorInc/agent-orchestrator, open and closed issues and PRs. Queries: "update hangs", "update popup", "auto update", "updater", "update stuck", "install update", "autoUpdater".
- #5062 (closed): a restored staged update leaves "Restart & install" waiting for native preparation that never starts. This is the closest symptom, but there the app had been restarted. Here the main process never restarted.
- #4175 (open): ShipIt copy/ditto failure on missing
acp-runtimefiles. This matches the Oct 16 first attempt, not the current hang. - #4461 (closed): download progress stalls. #3528 (open): ENOSPC during ShipIt staging. #6856 (open PR): persists updater preparation diagnostics, which would have captured the missing step here.
- I did not find an exact duplicate.
Still happening on the same Mac, two weeks later (reported by the AO user, relayed by a local triage agent):
I tried to click update, and it gets stuck.
- The "Restart to update" dialog (Nightly 0.14.3 · Oct 17, commit
3242c14) sits on a disabled Preparing update… button and never completes. Only Cancel is available. - The sidebar still shows "Restart to update 0.14.3". The reporter has a screenshot of the dialog; it isn't attached here because it shows private project names.
Agent-collected evidence (follow-up)
Collected read-only on the reporter's machine on 2026-10-31 at about 18:50 PDT. Nothing was quit, restarted, deleted, or reinstalled. Environment is unchanged from the first evidence comment: macOS 26.5 (25F71), arm64, /Applications/Agent Orchestrator.app CFBundleShortVersionString = 0.14.3-nightly.202610161732, update-settings.json channel nightly, macDifferentialUpdates: true.
The same processes from Oct 16/17 are still alive, now for about 15 days
ps -o pid,ppid,lstart,etime,stat -p 19673,43023:
PID PPID STARTED ELAPSED STAT
19673 1 Fri Oct 16 17:41:22 2026 15-01:08:55 S # .../MacOS/agent-orchestrator (main)
43023 1 Sat Oct 17 13:11:41 2026 14-05:38:36 S< # Squirrel.framework/.../ShipIt
The renderer was restarted today at 18:47 (PID 40008), but the main process has not exited since Oct 16. The daemon (~/.ao/running.json pid 19792, startedAt 2026-10-17T00:41:27Z) and the chat/pty hosts are also unchanged.
New since the last comment: ShipIt's working directory has been deleted from under it
~/Library/Caches/dev.agent-orchestrator.desktop.ShipIt/no longer exists, soShipItState.plistand the extractedupdate.*/Agent Orchestrator.appare gone.~/Library/Caches/agent-orchestrator-updater/pending/(which held the 224 MB…0.14.3-nightly.202610171927.zipon Oct 18) no longer exists.lsof -p 43023shows ShipIt still holdingShipIt_stdout.logandShipIt_stderr.logopen at the deleted path.~/.ao/staged-update.jsonstill recordsversion: 0.14.3-nightly.202610171927,stagedAt2026-10-17. That is the build the dialog offers.- I did not determine what removed the cache directories (a user cleanup or a cache-cleaning tool are both possible). Free disk on
/System/Volumes/Datawent from 13 GiB (Oct 18) to 95 GiB today.
The app never moved past the Oct 17 staged build
GitHub releases now include v0.14.8 (Latest, 2026-10-30) and v0.14.9-nightly.202610311751. The dialog and sidebar still offer only 0.14.3-nightly.202610171927. This suggests a stale staged record blocks newer builds from being discovered or offered while the main process stays up. I have not verified this in code.
What this supports, and what it doesn't
- Confirmed: the stuck state has persisted for about two weeks across window close/reopen. The original ShipIt install request process is still waiting. The on-disk staged bundle it would install has been deleted, while
staged-update.jsonstill advertises it. - Hypothesis (not verified): the earlier hypothesis still fits (close/reopen hides to tray, so the main process never exits and ShipIt never proceeds). Separately, if the app did quit now, ShipIt would probably fail because its state plist and bundle are gone. The updater should probably revalidate the staged files before showing "Restart to update" and fall back to a fresh check and download. I did not trigger an install or a quit to confirm either point.
- No
logs/updater.jsonlexists, because this build predates #6856, so the step where "Preparing update…" stalls was not observed.
Duplicate search
Repository OrchestratorInc/agent-orchestrator, open and closed issues and PRs, queries: "Preparing update", "update stuck", "restart to update", "auto update", "updater". This issue remains the closest match. Related items: #5062 (closed, staged update waiting for native preparation), #7053/#7061 (closed/merged, sleep counted as preparation stall), #6856 (merged, preparation diagnostics), #5907 (open, bounded retries), #4175 (open, ShipIt ditto failures).
Agent-collected evidence: local recovery (2026-10-31, ~22:00 PDT)
With the reporter's approval, the stuck install on this machine was recovered. This is a manual workaround for this one machine; the underlying bug is not fixed.
- Stopped the orphaned ShipIt (PID 43023, alive since Oct 17).
osascript -e 'tell application "Agent Orchestrator" to quit'did not exit the main process. PID 19673 was still alive 20 s later. This supports the earlier hypothesis that an ordinary quit is turned into hide-to-tray, so ShipIt never sees the app exit.kill -TERM 19673made the app exit in about 2 s. The daemon and all 17 chat/pty hosts survived.- Moved aside the stale
~/.ao/staged-update.json(it pointed at the deleted Oct 17 bundle) and relaunched. Within about 20 s the app downloaded and staged0.14.9-nightly.202610311751and wrote a freshShipItState.plist. Removing the stale record let the app pick up the newer build. kill -TERMon the new main process → ShipIt reportedInstallation completed successfully6 s later. After relaunch,CFBundleShortVersionString=0.14.9-nightly.202610311751,staged-update.jsonwas cleared, and the sessions were intact.
Side note: two ShipIt launches made during staging logged Could not read update request … ShipItState.plist … no such file before the plist was written. The ShipIt launched after it was written read it and installed normally.