From f3304b90c8461928bb18dc1d0839674e921382ef Mon Sep 17 00:00:00 2001 From: Sascha Lustenberger | techlan gmbh Date: Mon, 23 Feb 2026 13:11:04 +0100 Subject: [PATCH] Fix: correctly detect update when current version is unknown --- app/services/update_service.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/services/update_service.py b/app/services/update_service.py index bcc49f2..c56deb8 100644 --- a/app/services/update_service.py +++ b/app/services/update_service.py @@ -112,7 +112,11 @@ async def check_for_updates(config: Any) -> dict: # Determine if update is needed: prefer tag comparison, fallback to commit current_tag = current.get("tag", "unknown") current_sha = current.get("commit", "unknown") - if current_tag != "unknown" and latest_tag != "unknown": + + # If we don't know our current version but the remote has one, we should update + if current_tag == "unknown" and current_sha == "unknown": + needs_update = latest_tag != "unknown" or short_sha != "unknown" + elif current_tag != "unknown" and latest_tag != "unknown": needs_update = current_tag != latest_tag else: needs_update = (