From 470f82ea452591d867009a985d37a5aac50946b9 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Fri, 5 Dec 2025 16:07:08 +0100 Subject: [PATCH] Separate download_current and total_size updates in pull progress MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update download_current and total_size independently in the DOWNLOADING handler. This ensures download_current is updated even when total is not yet available. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- supervisor/docker/pull_progress.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/supervisor/docker/pull_progress.py b/supervisor/docker/pull_progress.py index 2c04b386d..123e670dd 100644 --- a/supervisor/docker/pull_progress.py +++ b/supervisor/docker/pull_progress.py @@ -182,12 +182,9 @@ class ImagePullProgress: if status is LayerPullStatus.DOWNLOADING: # Mark that we've seen downloading - now we know layer count is complete self._seen_downloading = True - if ( - entry.progress_detail - and entry.progress_detail.current is not None - and entry.progress_detail.total is not None - ): + if entry.progress_detail and entry.progress_detail.current is not None: layer.download_current = entry.progress_detail.current + if entry.progress_detail and entry.progress_detail.total is not None: # Only set total_size if not already set or if this is larger # (handles case where total changes during download) layer.total_size = max(layer.total_size, entry.progress_detail.total)