Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.
This repository was archived by the owner on Jun 26, 2026. It is now read-only.

Download All missing models always shows 'Save As' dialog instead of auto-downloading to correct model directory #1740

Description

@baoyu0

Description

When opening a built-in workflow template that references missing models, clicking the "Download All" button shows a native "Save As" directory picker dialog for each model, instead of automatically downloading to the correct model subdirectory.

Environment

  • Desktop Version: 0.8.35+ (installed on D:\ drive)
  • ComfyUI Version: 0.24.1
  • Frontend Package: 1.44.19
  • OS: Windows 10 64-bit
  • Install path: D:\ComfyUI
  • Model path: D:\ComfyUI\ComfyUI\models

Steps to Reproduce

  1. Install ComfyUI Desktop on D: drive (non-C: drive)
  2. Open a built-in workflow template (e.g. any template that requires models not yet downloaded)
  3. Desktop detects missing models and shows "Download All" prompt
  4. Click "Download All"
  5. ⚠️ A native Windows "Save As" dialog pops up for each model, asking where to save instead of auto-downloading to the correct subdirectory under models/

Expected Behavior

Models should automatically download to the correct subdirectory based on model type, e.g.:

  • Checkpoints → models/checkpoints/
  • Diffusion models → models/diffusion_models/
  • LoRAs → models/loras/
  • VAEs → models/vae/

This worked correctly when ComfyUI Desktop was installed on C:\ drive. After reinstalling on D:, the "Save As" dialog appears.

Investigation Findings

Backend is correctly configured

  • folder_paths.models_dir points to D:\ComfyUI\ComfyUI\models
  • extra_model_paths.yaml is properly loaded with download_model_base: D:\ComfyUI\models
  • get_model_dir() returns valid paths for all model types ✅
  • Model directories exist and are writable ✅

Relevant startup log from logs/comfyui.log:

[INFO] Adding extra search path download_model_base D:\ComfyUI\models
[INFO] Adding extra search path checkpoints D:\ComfyUI\ComfyUI\models\checkpoints
...

Root Cause Analysis

  1. This is related to the "Missing Models Downloads" regression reported in ComfyUI#12961 — the "Download All" button was introduced in a frontend update but fails to properly route downloads through the Manager backend API.

  2. The Desktop's DownloadManager validates download paths against {installPath}/models. When the save path doesn't match (string comparison), it falls back to dialog.showSaveDialog(). Even with a junction or download_model_base pointing to the correct path, the dialog still appears, suggesting the frontend may not be passing the savePath to DownloadManager.startDownload() at all.

  3. Workaround: Using ComfyUI Manager → Model Manager to download individual models works correctly because it uses the backend API (/v2/manager/queue/install_model) directly, bypassing the frontend download handler.

Related Issues

Logs

Full logs/comfyui.log shows all model paths are correctly registered. The user/comfyui.log confirms ComfyUI starts without errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions