mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7718] [MERGED] fix(images): refuse avatar edits on connections that drop the reference picture #7894
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#7894
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/7718
Author: @SpicyMarinara
Created: 10/16/2026
Status: ✅ Merged
Merged: 10/16/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/7685-reference-image-providers📝 Commits (5)
57d285afix(images): refuse avatar edits on connections that drop the reference picture8d90d0dfix(images): SwarmUI workflows take the picture only through %reference_image%f1a90fafix(images): an edit counts only the first workflow slot; avatar docs say non-edit connections are refused977bcf0fix(images): a picture too large for SpicyAPI says so instead of "can't edit"06a623dfix(images): reject mixed workflows and schema-less picture edits📊 Changes
6 files changed (+525 additions, -40 deletions)
View changed files
📝
docs/agents/avatars.md(+3 -3)📝
packages/server/src/services/avatars/generation/generation-context.ts(+40 -24)📝
packages/server/src/services/image/comfyui-reference-placeholders.ts(+14 -0)📝
packages/server/src/services/image/image-generation.ts(+117 -12)📝
packages/server/src/services/media/atlas-cloud.ts(+6 -1)➕
scripts/regressions/image-edit-reference.regression.ts(+345 -0)📄 Description
Linked issue
Closes #7685
Why this change
What changed
imageConnectionTakesReferencePictureinimage-generation.ts). I read each provider's adapter. Where the model, base URL or workflow decides, the table entry is a check:%reference_image%placeholder in it. Its adapter refuses file-name slots.resolveAvatarImageConnection. That runs for the prompt review and for generation, before any picture is paid for. The check and the request use the same connection fields (avatarImageService), so they can't disagree.referenceIsCanvas) ingenerateImage. The primary's error is reported and the skip is logged. A fallback that takes the picture is still used.generateSpicyApinow refuses a canvas edit after the free model lookup and before the paid task is created.image_urlcannot make a text-only model start a paid edit. The guide describes unsupported ComfyUI workflows without implying only one literal placeholder works.scripts/regressions/image-edit-reference.regression.ts, including mixed-workflow and custom-field negative cases.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks:
pnpm checkpasses (one existing React hook warning inHomeProfessorMariChat.tsx); focusedimage-edit-reference,spicyapi-image, andimage-custom-parametersregressions pass.tsc --noEmitfor shared, server, client and root: pass.prettier --checkon the changed files: pass.image-edit-reference: pass. It fails on staging (the helper is missing). I also undid each part of the fix by itself, and each time it fails at the matching check:%reference_image_name%slots was counted as taking the picture.buildSwarmUiGenerationBodyrefuses those slots, so such a workflow is now refused too. The new table check fails without that commit.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n] <paths>follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/agents/avatars.md(Blink and talk pictures) now says the image connection must accept a reference picture, that others are refused before anything is drawn, and that a fallback that can't take the picture is skipped. Translations: follow-up #7732. The new message is a server error that the avatar dialog already shows, so no UI copy or locale keys changed.UI evidence (if applicable)
None: this changes the server only.
🤖 Generated with Claude Code
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.