[GH-ISSUE #7685] Image edits: refuse providers that ignore the reference picture (avatar blink/talk) #4242

Closed
opened 2026-10-21 06:13:20 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7685

Originally assigned to: @SpicyMarinara on GitHub.

Found in review of #7682 (CodeRabbit thread). This existed before that PR.

Problem: avatar edits (2D Avatars blink and talk pictures) send the sprite as referenceImage with referenceIsCanvas: true. Some image providers drop reference images, so the edit becomes a fresh picture drawn from the prompt alone. That gives the same full-body or redrawn result #7681 fixed for GPT Image. Pollinations is one: generatePollinations sends only the prompt and size. The same happens when the primary connection fails and the fallback image connection is such a provider (image-generation.ts, fallback path).

Wanted:

  • Before paying for anything, refuse an avatar edit on a connection whose provider can't take a reference picture, with a plain message ("This image connection can't edit pictures. Choose one that accepts a reference picture.").
  • Skip such a fallback for these edits.
  • This needs a small shared table of which image services honour reference images. It would also help any other edit-style caller.

Related: #7681, #7682. Coordinate with #7664, which touches the image provider routing.

Originally created by @SpicyMarinara on GitHub (Oct 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7685 Originally assigned to: @SpicyMarinara on GitHub. Found in review of #7682 (CodeRabbit thread). This existed before that PR. **Problem:** avatar edits (2D Avatars blink and talk pictures) send the sprite as `referenceImage` with `referenceIsCanvas: true`. Some image providers drop reference images, so the edit becomes a fresh picture drawn from the prompt alone. That gives the same full-body or redrawn result #7681 fixed for GPT Image. Pollinations is one: `generatePollinations` sends only the prompt and size. The same happens when the primary connection fails and the fallback image connection is such a provider (`image-generation.ts`, fallback path). **Wanted:** - Before paying for anything, refuse an avatar edit on a connection whose provider can't take a reference picture, with a plain message ("This image connection can't edit pictures. Choose one that accepts a reference picture."). - Skip such a fallback for these edits. - This needs a small shared table of which image services honour reference images. It would also help any other edit-style caller. Related: #7681, #7682. Coordinate with #7664, which touches the image provider routing.
bsakaguchi 2026-10-21 06:13:20 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 16, 2026):

Working on this in #7718.

<!-- gh-comment-id:6211886848 --> @SpicyMarinara commented on GitHub (Oct 16, 2026): Working on this in #7718.
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#4242
No description provided.