[PR #3996] [MERGED] List ComfyUI DiffusionModels folder models in Fetch models from API #6192

Closed
opened 2026-10-23 04:07:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3996
Author: @SpicyMarinara
Created: 7/23/2026
Status: ✅ Merged
Merged: 7/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/3993-comfyui-diffusion-models


📝 Commits (2)

  • 38e124a List ComfyUI DiffusionModels folder models in Fetch models from API
  • d845784 Apply CodeRabbit review fix: 502 on missing ComfyUI loader metadata

📊 Changes

3 files changed (+104 additions, -13 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/server/src/routes/connections.routes.ts (+46 -13)
📝 scripts/regressions/open-issues.regression.ts (+57 -0)

📄 Description

Linked issue

Fixes #3993

Why this change

ComfyUI stores models in two folders: checkpoints (StableDiffusion) and diffusion_models (DiffusionModels). The connection editor's "Fetch models from API" only queried object_info/CheckpointLoaderSimple, so models in the DiffusionModels folder — Anima, zImage, and similar — never appeared in the selector even though they generate correctly when their names are typed manually.

What changed

  • The ComfyUI model fetch in connections.routes.ts now also queries object_info/UNETLoader and merges its unet_name options with the existing ckpt_name list, deduplicated, checkpoints first.
  • A failed or missing UNETLoader lookup degrades to the checkpoint list alone, so older ComfyUI builds without that node keep today's behavior; a failed checkpoint lookup still returns 502 as before.
  • CHANGELOG entry under Unreleased → Fixed.

This is the fix alone — no changes to generation, workflows, or other providers.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Manually verify against a real ComfyUI instance with models in both folders: "Fetch models from API" should list both sets, deduplicated.
  • Manually verify against a ComfyUI instance with an empty diffusion_models folder: the checkpoint list should be unchanged.
  • Manually verify that selecting a DiffusionModels entry from the fetched list generates successfully (the issue reports manual entry already works).

pnpm check was run by the preparing agent and passed; the boxes above are left for the human contributor per repository policy.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

CHANGELOG.md updated; no version bump.

UI evidence

No UI changes — the existing model selector simply receives more entries.

Summary by CodeRabbit

  • New Features

    • ComfyUI model discovery now includes models from the DiffusionModels folder alongside Stable Diffusion checkpoints.
    • Models such as Anima and zImage can be selected in the connection editor without manually entering their names.
  • Bug Fixes

    • Improved model listing reliability when one model source is unavailable.
    • Removed duplicate model entries from fetched results.

🔄 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/Pasta-Devs/Marinara-Engine/pull/3996 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/23/2026 **Status:** ✅ Merged **Merged:** 7/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/3993-comfyui-diffusion-models` --- ### 📝 Commits (2) - [`38e124a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/38e124a13e31c0ff7838e05081a6d966b4307f30) List ComfyUI DiffusionModels folder models in Fetch models from API - [`d845784`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d845784c47d1eb2f415b092e83bf9a0ba64d1594) Apply CodeRabbit review fix: 502 on missing ComfyUI loader metadata ### 📊 Changes **3 files changed** (+104 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/server/src/routes/connections.routes.ts` (+46 -13) 📝 `scripts/regressions/open-issues.regression.ts` (+57 -0) </details> ### 📄 Description ## Linked issue Fixes #3993 ## Why this change ComfyUI stores models in two folders: checkpoints (StableDiffusion) and diffusion_models (DiffusionModels). The connection editor's "Fetch models from API" only queried `object_info/CheckpointLoaderSimple`, so models in the DiffusionModels folder — Anima, zImage, and similar — never appeared in the selector even though they generate correctly when their names are typed manually. ## What changed - The ComfyUI model fetch in `connections.routes.ts` now also queries `object_info/UNETLoader` and merges its `unet_name` options with the existing `ckpt_name` list, deduplicated, checkpoints first. - A failed or missing UNETLoader lookup degrades to the checkpoint list alone, so older ComfyUI builds without that node keep today's behavior; a failed checkpoint lookup still returns 502 as before. - CHANGELOG entry under Unreleased → Fixed. This is the fix alone — no changes to generation, workflows, or other providers. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Manually verify against a real ComfyUI instance with models in both folders: "Fetch models from API" should list both sets, deduplicated. - Manually verify against a ComfyUI instance with an empty diffusion_models folder: the checkpoint list should be unchanged. - Manually verify that selecting a DiffusionModels entry from the fetched list generates successfully (the issue reports manual entry already works). `pnpm check` was run by the preparing agent and passed; the boxes above are left for the human contributor per repository policy. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) CHANGELOG.md updated; no version bump. ## UI evidence No UI changes — the existing model selector simply receives more entries. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * ComfyUI model discovery now includes models from the `DiffusionModels` folder alongside Stable Diffusion checkpoints. * Models such as Anima and zImage can be selected in the connection editor without manually entering their names. * **Bug Fixes** * Improved model listing reliability when one model source is unavailable. * Removed duplicate model entries from fetched results. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:07:59 +07: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
Pasta-Devs/Marinara-Engine#6192
No description provided.