[PR #1064] [CLOSED] Add support for importing model files #1316

Closed
opened 2026-10-31 22:21:22 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Comfy-Org/desktop/pull/1064
Author: @pythongosssss
Created: 3/16/2025
Status: ❌ Closed

Base: main ← Head: model_file_import


📝 Commits (5)

📊 Changes

6 files changed (+79 additions, -2 deletions)

View changed files

📝 package.json (+2 -0)
📝 src/constants.ts (+1 -0)
➕ src/handlers/importModelHandlers.ts (+46 -0)
📝 src/main-process/comfyDesktopApp.ts (+2 -0)
📝 src/preload.ts (+18 -1)
📝 yarn.lock (+10 -1)

📄 Description

Adds support for importing model files by dragging them into the app
image

I'm not exactly sure the of the use of download_model_base for the config file, however it seems like it needs to be added to the base url for the models folder?
I'm prioritising sections where the type of model being imported is defined, then whatever the default one is. Not sure if it would be better to just always use the default directory.

Frontend PR: https://github.com/Comfy-Org/ComfyUI_frontend/pull/3084

┆Issue is synchronized with this Notion page by Unito


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Comfy-Org/desktop/pull/1064 **Author:** [@pythongosssss](https://github.com/pythongosssss) **Created:** 3/16/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `model_file_import` --- ### 📝 Commits (5) - [`cc5baed`](https://github.com/Comfy-Org/desktop/commit/cc5baede02f6bff36ca2cbbd1b968ee2923d9f87) Add support for importing model files - [`27d6b7d`](https://github.com/Comfy-Org/desktop/commit/27d6b7d7f37a478171d9226f3f06c1fad6bd3a5a) Format - [`06f6b7a`](https://github.com/Comfy-Org/desktop/commit/06f6b7a4c560e164aab616f3959b062a632d7ab9) Simplify import by using config basepath - [`8a3e64c`](https://github.com/Comfy-Org/desktop/commit/8a3e64c0bd8522fcad65bc2c34aaea8d8032afdc) formatting - [`c8635b6`](https://github.com/Comfy-Org/desktop/commit/c8635b69470d4bfc8c2985b84a0df0ca831e9fd0) format ### 📊 Changes **6 files changed** (+79 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+2 -0) 📝 `src/constants.ts` (+1 -0) ➕ `src/handlers/importModelHandlers.ts` (+46 -0) 📝 `src/main-process/comfyDesktopApp.ts` (+2 -0) 📝 `src/preload.ts` (+18 -1) 📝 `yarn.lock` (+10 -1) </details> ### 📄 Description Adds support for importing model files by dragging them into the app ![image](https://github.com/user-attachments/assets/2010e67d-54e6-45b1-bbd8-5f2d6f1bb6fa) I'm not exactly sure the of the use of `download_model_base` for the config file, however it seems like it needs to be added to the base url for the models folder? I'm prioritising sections where the type of model being imported is defined, then whatever the default one is. Not sure if it would be better to just always use the default directory. Frontend PR: https://github.com/Comfy-Org/ComfyUI_frontend/pull/3084 ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-1064-Add-support-for-importing-model-files-1b86d73d365081feba0cfa2bda62a3a4) by [Unito](https://www.unito.io) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 22:21:22 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/desktop#1316
No description provided.