-
Notifications
You must be signed in to change notification settings - Fork 378
Missing model downloader #5929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Missing model downloader #5929
Conversation
Adds automatic download functionality to the Missing Models dialog. Features: - Automatically adds Download buttons to each missing model - Pre-configured URLs for popular models (SDXL, SD1.5, VAEs, LoRAs, etc.) - Real-time download progress shown in button (percentage) - Custom URL prompt for unknown models - Download All button for bulk downloads - TypeScript implementation with proper typing When the Missing Models dialog appears, users can now download missing models directly without manually searching and moving files. Requires backend API endpoints in ComfyUI server for download functionality.
- Automatically extract URLs from the dialog (no more prompting for URLs that are already shown) - Replace alert/prompt boxes with inline UI elements for better UX - Add inline status messages showing download progress and file sizes - Add inline URL input field when URL is not available - Show "Open URL" link when backend doesn't support downloads - Better error handling and status feedback The extension now: 1. Extracts existing URLs from the dialog HTML 2. Uses inline input fields instead of browser prompts 3. Shows real-time download progress with file sizes 4. Provides better visual feedback with status messages 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Remove /api prefix from model download endpoints - ComfyUI serves these endpoints at /models/download not /api/models/download - This fixes the 405 Method Not Allowed error 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Added data-download-button attribute to track existing buttons - Check for existing buttons before adding new ones - Prevents duplicate buttons from appearing in the UI 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Removed 'Download from provided URL' tooltip - Simplified button title to only show 'Click to enter URL' when needed - Cleaner UI without redundant text 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Hi @fragmede, I wonder if we could break this into smaller parts that consider each desired feature. For model downloading, I think to get the real desired experience, we would need to do it on the server and add parallelization, retry, chunking, mirror handling, etc. If there are other UI/UX improvements, would it be possible to extract the underlying improvement and see if we can integrate it with the existing system a bit? BTW, is this extension currently available as a custom node? |
Hi,
I didn't do a custom extension for this, just what you see here.
Happy to break it apart to make it easier to review.
Should I close this PR and create smaller individual ones, or what would
you prefer?
…On Tue, Oct 7, 2025 at 3:26 PM Christian Byrne ***@***.***> wrote:
*christian-byrne* left a comment (Comfy-Org/ComfyUI_frontend#5929)
<#5929 (comment)>
Hi @fragmede <https://github.com/fragmede>, I wonder if we could break
this into smaller parts that consider each desired feature. For model
downloading, I think to get the real desired experience, we would need to
do it on the server and add parallelization, retry, chunking, mirror
handling, etc.
If there are other UI/UX improvements, would it be possible to extract the
underlying improvement and see if we can integrate it with the existing
system a bit?
BTW, is this extension currently available as a custom node?
—
Reply to this email directly, view it on GitHub
<#5929 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAKEHHSFIIRVNGD6X2B4ZD3WQ42XAVCNFSM6AAAAACILDDEACVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGNZYHEZDEOBSGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Sure that sounds good, any feature in particular you want to add most? |
The base functionality is that it's uncomfortable for the user to have to
download a file to a specific place, and that the program can do it for
them. Everything on top of that is to make it more user friendly and
useful. So the smallest frontend change would be to have a button that hits
the backend API I added in the linked PR but which doesn't give any user
feedback.
…On Wed, Oct 8, 2025 at 12:20 Christian Byrne ***@***.***> wrote:
*christian-byrne* left a comment (Comfy-Org/ComfyUI_frontend#5929)
<#5929 (comment)>
Sure that sounds good, any feature in particular you want to add most?
—
Reply to this email directly, view it on GitHub
<#5929 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAKEHBVEWAK7WORKSQRWML3WVPWBAVCNFSM6AAAAACILDDEACVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGOBSHA4TCNZQHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Summary
This PR adds an intuitive download system to the missing models dialog, allowing users to download required models directly from the ComfyUI interface with real-time progress tracking and download speed display.
Problem Solved
When users load workflows with missing models, they currently see a dialog listing the missing files but must:
This creates friction, especially for:
Solution
This PR enhances the missing models dialog with:
✨ User Experience Features
🎨 UI Implementation
🔒 Security Features
📁 Files Modified
src/extensions/core/missingModelsDownloader.ts
- Core implementationRelated PR
Also see comfyanonymous/ComfyUI#10224
Features in Detail
Individual Download Buttons
Each missing model gets a download button that:
Download All Button
Progress Display Format
Visual States
Screenshots
Before
After
Integration
Works with the companion backend PR that provides:
/models/download
API endpointsTesting
Tested scenarios:
Browser Compatibility
Tested on:
Performance
Related PR
See companion backend PR: ComfyUI#XXX for API implementation
Future Enhancements
Potential improvements for future iterations:
Note: This PR requires the companion backend PR to be merged for full functionality. The UI gracefully handles cases where the backend is not available.
┆Issue is synchronized with this Notion page by Unito