From 3b54e7dfa737916cd837fce99c5058038f816056 Mon Sep 17 00:00:00 2001 From: Alex Cheema Date: Sat, 21 Feb 2026 07:21:44 -0800 Subject: [PATCH] fix: detect completed downloads via byte comparison When scanning existing download status, a download could report status "in_progress" or "not_started" even though all bytes have been downloaded. This adds a fallback check: if downloaded >= total bytes (and total > 0), treat it as completed regardless of the reported status string. Co-Authored-By: Claude Opus 4.6 --- src/exo/download/coordinator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/exo/download/coordinator.py b/src/exo/download/coordinator.py index 5b6026be0..0a759b3bd 100644 --- a/src/exo/download/coordinator.py +++ b/src/exo/download/coordinator.py @@ -388,7 +388,9 @@ class DownloadCoordinator: if model_id in self.active_downloads: continue - if progress.status == "complete": + if progress.status == "complete" or ( + progress.downloaded.in_bytes >= progress.total.in_bytes > 0 + ): status: DownloadProgress = DownloadCompleted( node_id=self.node_id, shard_metadata=progress.shard,