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
refactor(updater): drop in-process state machine; UI polls /version
The systemd restart kills this process before any "restarting/done"
state can be polled, so the 5-state machine produced UIs stuck on
"Downloading" while the update actually succeeded. Drop the state
tracking entirely:
- updater.Apply no longer takes onState; runs to completion or returns
error.
- /api/v1/update/apply is fire-and-forget (HTTP 202); /update/status is
removed along with JobStatus and updateJob.
- Dashboard polls /api/v1/version every 2s after click; success when
git_revision changes; 60s timeout surfaces "check journalctl" hint.
- Failure path stays in s.l logger -> journalctl, same as before.
Net -193 lines.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments