Skip to content

Commit 8c5066c

Browse files
chriscrosstalkclaude
authored andcommitted
fix(UI): clear stale update banner after successful update
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) <noreply@anthropic.com>
1 parent 5510531 commit 8c5066c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

admin/inertia/pages/settings/update.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,13 @@ export default function SystemUpdatePage(props: { system: Props }) {
258258

259259
// Check if update is complete or errored
260260
if (response.stage === 'complete') {
261-
// Give a moment for the new container to fully start
261+
// Re-check version so the KV store clears the stale "update available" flag
262+
// before we reload, otherwise the banner shows "current → current"
263+
try {
264+
await api.checkLatestVersion(true)
265+
} catch {
266+
// Non-critical - page reload will still work
267+
}
262268
setTimeout(() => {
263269
window.location.reload()
264270
}, 2000)

0 commit comments

Comments
 (0)