mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1018] [Feature]: Support multiple ComfyUI reference images via numbered placeholders #495
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#495
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Yasyasyasvil on GitHub (May 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1018
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
ComfyUI workflows can use only one reference image today. The existing
%reference_image%and%reference_image_name%placeholders always resolve to the first reference image, any additional references the caller supplies are silently dropped. Workflows that need more than one reference (group scenes, multi-character compositions, etc...) have no way to wire up the extra slots.Proposed solution
Add numbered variants of both placeholders, capped at 4 to match the existing 4-reference limit already used by avatar and sprite generation:
%reference_image_01%through%reference_image_04%%reference_image_name_01%through%reference_image_name_04%For backward compatibility,
%reference_image%is an alias for%reference_image_01%, and%reference_image_name%for%reference_image_name_01%, existing workflows keep working unchanged.Alternatives considered
Additional context
NA
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@cha1latte commented on GitHub (May 19, 2026):
Triage note: labeling this as
normal-scopebecause it is a focused ComfyUI placeholder enhancement for an existing image-generation workflow path, capped to the current 4-reference limit and preserving backward compatibility.This can stay in the normal enhancement backlog as a bounded ComfyUI compatibility improvement.
@SpicyMarinara commented on GitHub (May 23, 2026):
Implemented in the local fix pass.
What changed:
%reference_image_01%through%reference_image_04%and%reference_image_name_01%through%reference_image_name_04%.%reference_image%and%reference_image_name%remain aliases for slot 01.%reference_image_01%through%reference_image_04%placeholders as well.Validation run:
pnpm --filter @marinara-engine/server lintpnpm --filter @marinara-engine/client lint