From 5ec75b65b7c2f6e48ca96996f7288cba8327134f Mon Sep 17 00:00:00 2001 From: Chris Sherwood Date: Fri, 20 Mar 2026 09:25:52 -0700 Subject: [PATCH] fix(UI): clear stale update banner after successful update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After an update completes, the page reloads but the KV store still has updateAvailable=true from the pre-update check. This causes the banner to show "Current 1.30.0-rc.1 → New 1.30.0-rc.1" until the user manually clicks Check Again. Now triggers a version re-check before the post-update reload so the KV store is updated and the banner reflects the correct state. Co-Authored-By: Claude Opus 4.6 (1M context) --- admin/inertia/pages/settings/update.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/admin/inertia/pages/settings/update.tsx b/admin/inertia/pages/settings/update.tsx index 5f33b49..23527fb 100644 --- a/admin/inertia/pages/settings/update.tsx +++ b/admin/inertia/pages/settings/update.tsx @@ -258,7 +258,13 @@ export default function SystemUpdatePage(props: { system: Props }) { // Check if update is complete or errored if (response.stage === 'complete') { - // Give a moment for the new container to fully start + // Re-check version so the KV store clears the stale "update available" flag + // before we reload, otherwise the banner shows "current → current" + try { + await api.checkLatestVersion(true) + } catch { + // Non-critical - page reload will still work + } setTimeout(() => { window.location.reload() }, 2000)