mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1298] [Issue]: Illustrator Agent leaks the full character description into the positive image prompt when "Send avatars as reference images" is enabled #640
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#640
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 @GetBeholder on GitHub (May 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1298
Originally assigned to: @SpicyMarinara on GitHub.
Summary
With "Send character & persona avatars as reference images" enabled, the
Illustrator Agent appends the complete character description into the positive
image prompt sent to ComfyUI (I2I workflow), producing weird/corrupted image
generations. With the option disabled, the agent provides only the (clean) image
prompts and generation behaves normally. The reporter isolated that the same agent
prompt is used in both cases — the description leak occurs only when
avatar-as-reference is enabled. Replicable in 1.6.0 and 1.6.1; no workaround found.
Expected behavior
When avatars are sent as reference images, only the avatar image(s) should be
attached as references; the agent's concise generated image prompt should be sent
as the positive prompt. The full character card description/definition should not
be concatenated into the positive prompt.
Actual behavior
Enabling avatar-as-reference causes the full character description to be appended
to the positive image prompt (in addition to attaching the avatar), corrupting
generation. Disabling it yields clean prompts and normal generation.
Steps to reproduce
%reference_image%placeholder.images."
character description, producing weird images.
Impact area
Environment
3663484%reference_image%placeholderLogs, screenshots, or video
None provided. A captured positive prompt showing the appended character
description would confirm.
Regression notes
Present in both 1.6.0 and 1.6.1 (the reporter tested from 1.6.0). Last known good
build unknown.
Additional context
Source: forum thread by m;aemoifmpfmmafe (2-Star), 5/23/26 11:38 PM, with
clarification 5/24/26 9:04 AM and maintainer Marinara [MARI] engagement. The
reporter's clarification: the agent prompt is identical in both cases; the
description leak only happens with avatar-as-reference on; and users have no
control over the RP/Convo selfie prompts (tracked separately as a preview/edit
feature gap). Related to reference-image handling for ComfyUI in #1275.
Triage pointer (from a scan, not from the reporter): the Illustrator Agent prompt
(
src/engine/contracts/constants/agent-prompts.ts, ~L211/L215) instructs theagent to (a) output a
charactersarray used to attach each character's/persona'savatar as a reference, and (b) include full physical descriptions in the prompt.
The reporter isolated that the FULL character DEFINITION is concatenated into the
positive prompt only when avatar-as-reference is enabled — suggesting the
reference-image path (resolving the
charactersarray → avatars in theselfie/illustrator image command,
src/engine/generation/connected-commands.ts,e.g.
buildSelfiePrompt, which already readsappearance/description) alsoinjects the character description text into the positive prompt. It should attach
the avatar image without appending the description text.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (May 27, 2026):
Fixed on refactor in
8058f66dd4: the Illustrator prompt now forbids pasting full character/persona prose into image prompts and limits character wording to visual traits, especially when avatar reference images are attached. Validated with pnpm check.