[PR #986] [MERGED] Add ComfyUI missing-reference placeholder fallback #4872

Closed
opened 2026-10-22 04:11:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/986
Author: @cha1latte
Created: 5/18/2026
Status: ✅ Merged
Merged: 5/18/2026
Merged by: @cha1latte

Base: staging ← Head: feat/issue-973-comfyui-placeholder


📝 Commits (2)

  • 28efc93 Add ComfyUI missing-reference placeholder fallback
  • 8763d66 Merge staging into issue 973 branch

📊 Changes

4 files changed (+31 additions, -3 deletions)

View changed files

📝 packages/client/src/components/connections/ConnectionEditor.tsx (+19 -2)
📝 packages/server/src/services/image/image-generation.ts (+6 -1)
📝 packages/shared/src/constants/image-generation-defaults.ts (+5 -0)
📝 packages/shared/src/types/image-generation-defaults.ts (+1 -0)

📄 Description

Linked issue

Closes #973

Why this change

  • ComfyUI custom workflows can include %reference_image% and %reference_image_name% placeholders even when a generation request does not have a reference image.
  • When those placeholders are left raw, workflows with LoadImage chains can fail because ComfyUI receives placeholder text instead of a real image payload or filename.

What changed

  • Added a ComfyUI connection default for uploading a 1x1 placeholder image when no reference image is provided.
  • Added the checkbox to the ComfyUI local image defaults editor.
  • Updated ComfyUI workflow resolution so missing-reference requests can substitute the bundled placeholder base64 and upload it when %reference_image_name% is used.

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

  • Codex ran packages\server\node_modules\.bin\tsx.cmd scratch\verify-issue-973-comfyui-placeholder.ts; the fake-ComfyUI harness verified enabled fallback uploads/substitutes the placeholder and disabled fallback preserves existing unsubstituted placeholder behavior.
  • Codex ran pnpm check; it passed.
  • Codex clicked through the connection editor locally and verified the checkbox renders, can be checked, saved, and persists as uploadPlaceholderOnMissingReference: true.
  • Container build was not run.

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)

UI evidence (if applicable)

UI change is a small checkbox in the existing ComfyUI local image defaults panel. Codex verified it through the local browser click-through; no screenshot is attached.


🔄 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/986 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/18/2026 **Status:** ✅ Merged **Merged:** 5/18/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `feat/issue-973-comfyui-placeholder` --- ### 📝 Commits (2) - [`28efc93`](https://github.com/Pasta-Devs/Marinara-Engine/commit/28efc939587540c17c47b1ec054410995cf717fb) Add ComfyUI missing-reference placeholder fallback - [`8763d66`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8763d66dff04b692a00ae90dc405bdf24de717bb) Merge staging into issue 973 branch ### 📊 Changes **4 files changed** (+31 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+19 -2) 📝 `packages/server/src/services/image/image-generation.ts` (+6 -1) 📝 `packages/shared/src/constants/image-generation-defaults.ts` (+5 -0) 📝 `packages/shared/src/types/image-generation-defaults.ts` (+1 -0) </details> ### 📄 Description ## Linked issue Closes #973 ## Why this change - ComfyUI custom workflows can include `%reference_image%` and `%reference_image_name%` placeholders even when a generation request does not have a reference image. - When those placeholders are left raw, workflows with `LoadImage` chains can fail because ComfyUI receives placeholder text instead of a real image payload or filename. ## What changed - Added a ComfyUI connection default for uploading a 1x1 placeholder image when no reference image is provided. - Added the checkbox to the ComfyUI local image defaults editor. - Updated ComfyUI workflow resolution so missing-reference requests can substitute the bundled placeholder base64 and upload it when `%reference_image_name%` is used. ## 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 - Codex ran `packages\server\node_modules\.bin\tsx.cmd scratch\verify-issue-973-comfyui-placeholder.ts`; the fake-ComfyUI harness verified enabled fallback uploads/substitutes the placeholder and disabled fallback preserves existing unsubstituted placeholder behavior. - Codex ran `pnpm check`; it passed. - Codex clicked through the connection editor locally and verified the checkbox renders, can be checked, saved, and persists as `uploadPlaceholderOnMissingReference: true`. - Container build was not run. ## Docs and release impact - [x] 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) ## UI evidence (if applicable) UI change is a small checkbox in the existing ComfyUI local image defaults panel. Codex verified it through the local browser click-through; no screenshot is attached. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:11:20 +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#4872
No description provided.