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] daemon-status emits no healthy signal after a mid-session daemon restart — reconnect consumers never retry #1678
The shared daemon-status service (packages/desktop-app/src/lib/services/daemon-status.ts) fans a reconnect signal to every daemon-dependent store (schemas, collections, children-tree, pane hydration) via onDaemonReconnect, fired on a not-healthy → healthy transition. That signal is now reliable for the initial boot (a readiness poll runs until the first healthy status), but a mid-session daemon restart still emits nothing: all five daemon-status emit sites live in the backend's one-shot startup task (src-tauri/src/lib.rs), so if the daemon dies and is relaunched while the app is running, no healthy event is pushed and no consumer retries — a wedged pane/store stays wedged until an app restart.
Discovered during the round-1 journal-hang investigation (adversarial review of PR #1677, finding F2-secondary).
Fix direction
Keep a low-frequency steady-state poll of check_daemon_status after the first healthy status (e.g. ~15s), so a healthy → not_running → healthy cycle is observed and applyStatus re-fires onDaemonReconnect. applyStatus already resets lastHealthy on a non-healthy status, so the transition machinery is in place — it just needs a signal source that keeps observing. Alternatively (better, larger): emit daemon-status from a persistent backend watchdog rather than the one-shot setup task.
Relates
core#1672 (the journal hang this class of gap can cause), core#1644 (permanent-Loading after a daemon restart), PR #1677 (added the initial-boot readiness poll).
Activity
Poll daemon-status steady-state so a mid-session restart re-fires onD…