fix(downloads): aggregate concurrent model download progress in the macOS Dock - #1422
fix(downloads): aggregate concurrent model download progress in the macOS Dock#1422xwsjjctz wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan includes up to 2 reviews per rolling hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe taskbar download progress now aggregates concurrent downloads by byte count. Completed jobs remain represented until the batch finishes, while failed or cancelled jobs are removed. Window detachment clears related tracking and progress. ChangesTaskbar progress aggregation
Possibly related PRs
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The PR aggregates concurrent model-download progress into one byte-weighted macOS Dock indicator while preserving per-window behavior elsewhere; no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ All contributors have signed the CLA. Thank you! This PR is ready to be merged. |
|
I have read and agree to the Contributor License Agreement |
|
Hi @Kosinkadink, just a friendly follow-up on this PR. Thanks for your response in #1421. When you have a chance, could you please take a look? The fix is ready for review and includes focused regression tests and manual verification on a packaged macOS build. I would be happy to address any feedback. Thank you! |
Summary
Problem
Each model download currently reports its own progress directly to Electron's
setProgressBar()API.On macOS, the application has one shared Dock progress indicator. Concurrent downloads therefore overwrite each other's values, causing the Dock progress to jump forwards and backwards instead of representing the complete download workload.
Fixes #1421.
Root Cause
Taskbar progress was tracked as a property of an individual download update. There was no persistent batch keyed by download ID and no aggregation across windows on macOS.
As a result, whichever download reported most recently controlled the Dock indicator.
Changes
Validation
Automated
pnpm exec vitest run src/main/lib/comfyDownloadManagerModelJobs.test.tspnpm testpnpm run typecheckpnpm run lintpnpm run format:checkpnpm run buildManual macOS Testing
Tested with a locally packaged Comfy Desktop 1.0.39 build on macOS 15.7.7, Apple Silicon (
arm64).Compatibility
This change does not modify public APIs, download identifiers, file layout, or model download behavior. Non-macOS platforms retain per-window native taskbar progress.