mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1319] [MERGED] Fix ComfyUI indexed reference placeholders #5036
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#5036
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1319
Author: @cha1latte
Created: 5/26/2026
Status: ✅ Merged
Merged: 5/26/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/refactor-issue-1275-comfyui-references📝 Commits (2)
eace3b0Fix ComfyUI indexed reference placeholders23d8054Merge remote-tracking branch 'upstream/refactor' into fix/refactor-issue-1275-comfyui-references📊 Changes
1 file changed (+153 additions, -14 deletions)
View changed files
📝
src-tauri/src/commands/storage/images/providers.rs(+153 -14)📄 Description
Linked issue
Closes #1275
Why this change
%reference_image_name_01%and%reference_image_name_02%, currently only get the first/default placeholder substituted. Indexed placeholders leak into the prompt payload as raw text and ComfyUI rejects the workflow input.What changed
%reference_image_name%and one-based indexed placeholders like%reference_image_name_01%._01, and uses the existing 1x1 placeholder image for missing indexed slots.Refactor impact
Primary owner:
Rust storage / runtime image generation integrations.
Impact areas reviewed:
referenceImages.Boundary notes:
Pressure points touched:
src-tauri/src/commands/storage/images/providers.rsComfyUI generation path.Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
node scratch\issue-1275-comfyui-repro.mjs; the current refactor replacement map left%reference_image_name_01%and%reference_image_name_02%raw.cargo test --manifest-path src-tauri\Cargo.toml comfy_reference_name; it passed and covered alias,_01,_02, embedded strings, missing-slot fallback, and invalid_00/_abcnegative controls.pnpm check; it passed after installing locked dependencies in the clean refactor worktree withpnpm install --frozen-lockfile.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.json; it passed.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs or release metadata changes are needed; this is a narrow provider bugfix.
UI evidence
N/A - backend/provider workflow substitution bug with no visible UI state.
Summary by CodeRabbit
New Features
_01,_02)Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.