You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] Desktop app exits about 20 s after a core update or update check, leaving the Guard daemon running #5046
After HOL Guard Desktop installs a Guard core update, or runs a tray update check, it reloads the dashboard. About 15–20 seconds later the app exits. There's no error dialog: the window and tray icon just go away, and I have to relaunch the app.
The next launch then finds the previous Guard daemon still running (runtime_inventory_stale daemon_roots=1 stale_roots=1). It spends about 10 s stopping it (daemon_stop_ok, "The live Guard daemon was stopped before the bootstrap retry"), so startup takes about 16 s instead of about 5 s. The leftover daemon suggests the app process didn't shut down normally.
Environment
HOL Guard Desktop 3.0.131 and 3.0.136 (AppImage), on Linux x86_64, Pop!_OS with COSMIC (Wayland)
No error recorded.desktop-startup.jsonl has no event for the exit itself. The last entry is always the dashboard reload.
No crash record from the system. The kernel logged no segfault or trap, and /var/crash has nothing for the app.
No stderr. The AppImage is started directly, so its error output isn't captured anywhere.
Repro (not reliable)
Open the dashboard in the desktop app.
Let it install a core update, or choose the tray's update check.
Wait about 30 s. Sometimes the app exits.
Questions
Does the app log its exit reason anywhere, for example a Tauri or WebKitGTK panic, a crashed WebView process, or the core returning an error? If not, an exit diagnostic in desktop-startup.jsonl would make this diagnosable.
Is reloading the WebView while the core restarts the daemon after activation a known risk?
Next time, I'll run the AppImage from a terminal so its stderr is captured, and add the output here.
A related update-time symptom on 3.0.136, going from core 3.50.0a3 to 3.50.0a5. This time the app didn't exit, but for about two minutes it showed "Guard is not responding", still labelled v3.50.0a3 with "3.50.0a5 is ready", instead of the "Switching to the new version" progress screen. It then recovered on its own.
From desktop-startup.jsonl (UTC, one app process throughout) and the core folder:
Time
Event
23:15:56
App launched right after boot; runtime_selection → 3.50.0a3; the a3 daemon starts, and the dashboard loads at 23:16:03
23:16:07
versions/3.50.0a5/hol-guard written outside the app. The folder name has no digest, like the 10-16 3.47.0a9 → 3.47.0a9-<digest> pair
23:17:59
core_update detected external_install_detected, then daemon_stop_ok; external_install_activated follows at 23:18:04
23:18:14–29
preflight, then activation_bootstrap; the a5 daemon starts at 23:18:27
23:18:31
core_update staged harness_rebind_deferred: "HOL Guard was updated. Open Repair Protection to finish connecting you…"
So it took about 1 min 52 s from the external install to the app noticing it, and Guard was down for about 30 s while switching. During the switch the window showed the generic "not responding" error, with no update progress. Two questions:
Should an install the app didn't run be noticed sooner?
Should the "not responding" screen say an update is being applied while core_update is in progress?
no daemon on 5245; the window stays on "Loading Local approval center…"
13:43:29
desktop log
core_update detected: "The recorded Core pointer names 3.50.0a8 while this session is on 3.50.0a5"
13:43:35
desktop log
core_update completed, externally installed Core verified and serving
guard_auto_update_state shows auto_updatable: true. Its last check was the new a8 daemon at 13:43:35 (no update available), so the a5 daemon's earlier check was overwritten. The a5 daemon.log has no line about the update or its retirement. Startup ends at warm_desktop_bootstrap_cache (13:41:40), so the only record of why it stopped is the lifecycle file.
So the trigger is runtime/auto_update.py (maybe_auto_update from the command-queue worker) running right after startup, because the 6-hour throttle had expired overnight. The Desktop took 99 s to adopt the new Core. The app didn't exit this time.
The current.json watcher and update screen in hol-guard-desktop#543 should cover this. Two small asks on the Core side:
Log the auto-update itself (Auto-update: applying update … is info, but it didn't reach daemon.log).
Consider skipping the auto-update in the first minutes after a daemon start, while the Desktop is still loading the dashboard.
Data point from 2026-11-03: the Linux desktop app updated Guard CLI 3.59.0a43 → 3.59.0a45 from the in-app updater. The app stayed open afterwards and didn't exit about 20 s later as described above. That's one clean update, not proof it's fixed. I'll keep watching the next few updates before suggesting we close this.
Activity
Vyeche commentedon Oct 18, 2026
A related update-time symptom on 3.0.136, going from core 3.50.0a3 to 3.50.0a5. This time the app didn't exit, but for about two minutes it showed "Guard is not responding", still labelled v3.50.0a3 with "3.50.0a5 is ready", instead of the "Switching to the new version" progress screen. It then recovered on its own.
From
desktop-startup.jsonl(UTC, one app process throughout) and the core folder:runtime_selection→ 3.50.0a3; the a3 daemon starts, and the dashboard loads at 23:16:03versions/3.50.0a5/hol-guardwritten outside the app. The folder name has no digest, like the 10-163.47.0a9→3.47.0a9-<digest>paircore_update detected external_install_detected, thendaemon_stop_ok;external_install_activatedfollows at 23:18:04activation_bootstrap; the a5 daemon starts at 23:18:27core_update staged harness_rebind_deferred: "HOL Guard was updated. Open Repair Protection to finish connecting you…"So it took about 1 min 52 s from the external install to the app noticing it, and Guard was down for about 30 s while switching. During the switch the window showed the generic "not responding" error, with no update progress. Two questions:
core_updateis in progress?Vyeche commentedon Oct 20, 2026
Another occurrence today on Desktop 3.0.136, this time with no manual update. It came from Core's own auto-update.
Timeline (UTC, 2026-10-20). The PC booted at 13:33:58 after being off overnight.
desktop_launchwith Core 3.50.0a5daemon.logdaemon_ready;start_queue_and_cloud_workers(Guard Cloud connected, alpha channel)dashboard_documentloadedcore/versions/3.50.0a8/hol-guardwritten;managed/codex/authority-mutations.jsonlgetsmanaged.installrowsdaemon-lifecycleretirement_requested,reason: managed_retirementcore_update detected: "The recorded Core pointer names 3.50.0a8 while this session is on 3.50.0a5"core_update completed, externally installed Core verified and servingguard_auto_update_stateshowsauto_updatable: true. Its last check was the new a8 daemon at 13:43:35 (no update available), so the a5 daemon's earlier check was overwritten. The a5daemon.loghas no line about the update or its retirement. Startup ends atwarm_desktop_bootstrap_cache(13:41:40), so the only record of why it stopped is the lifecycle file.So the trigger is
runtime/auto_update.py(maybe_auto_updatefrom the command-queue worker) running right after startup, because the 6-hour throttle had expired overnight. The Desktop took 99 s to adopt the new Core. The app didn't exit this time.The
current.jsonwatcher and update screen in hol-guard-desktop#543 should cover this. Two small asks on the Core side:Auto-update: applying update …isinfo, but it didn't reachdaemon.log).Vyeche commentedon Nov 3, 2026
Data point from 2026-11-03: the Linux desktop app updated Guard CLI 3.59.0a43 → 3.59.0a45 from the in-app updater. The app stayed open afterwards and didn't exit about 20 s later as described above. That's one clean update, not proof it's fixed. I'll keep watching the next few updates before suggesting we close this.