Fix stale update state causing false Update complete when no updates available

Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/1cc7ff30-4a1b-46f7-a20a-2ec0cbdfe291

Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-12 04:29:11 +00:00
committed by GitHub
parent 6e5863ed48
commit 31f1e16a3c
2 changed files with 15 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ function openUpdateModal() {
apiFetch("/api/updates/check")
.then(function(data) {
if (!data.available) {
stopUpdatePoll();
_updateLog = "";
_updateLogOffset = 0;
_updateFinished = true;