[GH-ISSUE #4028] [Issue]: Generation Style Text copied into Selfie image prompts #2174

Closed
opened 2026-10-21 05:45:59 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

In Selfie mode, Generation Style Text is copied directly into the prompt submitted to the image generator. This occurs even when the image provider supports a separate style field.

Expected behavior

For providers that support a style field, Generation Style Text should guide LLM prompt generation or be sent through the dedicated style field without being copied into the final image prompt.

Actual behavior

Generation Style Text is appended directly to generated image prompts in Selfie mode, making prompts redundant and potentially too wordy for effective CLIP attention.

Steps to reproduce

  1. Configure Generation Style Text.
  2. Generate an image from a conversation using Selfie mode.
  3. Open the previous image gallery and review the submitted image prompt.
  4. Observe that the Generation Style Text was copied into the image prompt.

Environment

  • Marinara Engine version: v2.3.4
  • Install type: other (Podman)
  • OS + version: Linux; version not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Screenshots of the affected prompts: https://cdn.discordapp.com/attachments/1530016196185952326/1530016196399993052/image.png?ex=6a640a1f&is=6a62b89f&hm=cfbf141fdb04f572100b23bb2380382ee3780106a23f46691696f34659fb83f6& and https://cdn.discordapp.com/attachments/1530016196185952326/1530016197075140709/image.png?ex=6a640a1f&is=6a62b89f&hm=7450e2cf69a028032f4c95bf4e2af4743a68fd2b3eb7b6268ba49ce7edcf814e&

Additional context

Build b7545a6. The behavior was observed only in Selfie mode for conversations; Illustration mode in roleplays was unaffected. Game mode was not tested. The maintainer confirmed that style text should not be copied into the prompt when the provider supports a style field. Character appearance options are separate and intentionally append appearance information.

Discord thread: [Bug]: Generation Style Text leaking into Image Generation Prompts
Discord thread link: https://discord.com/channels/1417099416812392641/1530016196185952326
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (10 messages)
[2026-07-24T00:58:07.497Z] m;aemoifmpfmmafe: Hi,

From what I understand the Generation Style Text was to guide the LLM to generate the image prompts to be submitted to the image generators. 

After reviewing the previous images galleries and the attached image prompts, the Style Text was leaked into the image prompts. 
Is this intentional?

Release: v2.3.4
Build: b7545a6
Install: Podman / Linux

[attached image 1: https://cdn.discordapp.com/attachments/1530016196185952326/1530016196399993052/image.png?ex=6a640a1f&is=6a62b89f&hm=cfbf141fdb04f572100b23bb2380382ee3780106a23f46691696f34659fb83f6&]
[attached image 2: https://cdn.discordapp.com/attachments/1530016196185952326/1530016197075140709/image.png?ex=6a640a1f&is=6a62b89f&hm=7450e2cf69a028032f4c95bf4e2af4743a68fd2b3eb7b6268ba49ce7edcf814e&]
[Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530016196185952326]

[2026-07-24T02:27:27.596Z] Bloo: Similarly, the "Attach Card Appearance" option in the Illustrator agent and "Include descriptions" in Noodle/etc all just append character appearance info directly to the prompt sent to the image generator rather than the text preprocessing step
[Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530038678070624297]

[2026-07-24T02:58:23.414Z] m;aemoifmpfmmafe: I've stopped using the attach card appearance. 
As the initial LLM already has access to the chat history, character & persona descriptions, lorebook access, the LLM tends to generate pretty accurate descriptions of the scene about 80% of the time. Attaching card appearance to the image prompt sometimes just confuses the image generator models.

There's also an issue with the CLIP attention where it'll start losing details the moment the description becomes too wordy.
[Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530046461935485110]

[2026-07-24T04:22:22.994Z] Marinara: That’s the intended design, yes. Appearances are always sent with the prompt generation for the image.
[Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530067599466041425]

[2026-07-24T04:24:01.957Z] Marinara: Yes, unless you were generating using completely different style.
[Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530068014547075182]

[2026-07-24T05:37:45.028Z] m;aemoifmpfmmafe: Yes, but the style guide was also copied into the submitted image prompts which is redundant
[Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530086566251331735]

[2026-07-24T06:27:16.570Z] Marinara: Ahhh, some image geneation providers don't accept style field, so that's why it was implemented.
[Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530099029801828362]

[2026-07-24T06:33:43.236Z] m;aemoifmpfmmafe: sorry, just a quick update. I just went through the image prompts again.
I noticed that this behavior only affects selfie mode in conversations, but not illustration mode in RPs.
I haven't checked Game mode as I seldom use it
[Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530100651596710058]

[2026-07-24T06:36:41.851Z] m;aemoifmpfmmafe: Is it possible to request for an opt out from being copied directly into the image prompt and only used for LLM image prompt generation guidance?
[Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530101400762056875]

[2026-07-24T06:55:46.456Z] Marinara: Honestly, it shouldn't happen if style is supported so lemme fix
[Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530106201583390832]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 24, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4028 Originally assigned to: @SpicyMarinara on GitHub. ## Summary In Selfie mode, Generation Style Text is copied directly into the prompt submitted to the image generator. This occurs even when the image provider supports a separate style field. ## Expected behavior For providers that support a style field, Generation Style Text should guide LLM prompt generation or be sent through the dedicated style field without being copied into the final image prompt. ## Actual behavior Generation Style Text is appended directly to generated image prompts in Selfie mode, making prompts redundant and potentially too wordy for effective CLIP attention. ## Steps to reproduce 1. Configure Generation Style Text. 2. Generate an image from a conversation using Selfie mode. 3. Open the previous image gallery and review the submitted image prompt. 4. Observe that the Generation Style Text was copied into the image prompt. ## Environment - Marinara Engine version: v2.3.4 - Install type: other (Podman) - OS + version: Linux; version not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Screenshots of the affected prompts: https://cdn.discordapp.com/attachments/1530016196185952326/1530016196399993052/image.png?ex=6a640a1f&is=6a62b89f&hm=cfbf141fdb04f572100b23bb2380382ee3780106a23f46691696f34659fb83f6& and https://cdn.discordapp.com/attachments/1530016196185952326/1530016197075140709/image.png?ex=6a640a1f&is=6a62b89f&hm=7450e2cf69a028032f4c95bf4e2af4743a68fd2b3eb7b6268ba49ce7edcf814e& ## Additional context Build b7545a6. The behavior was observed only in Selfie mode for conversations; Illustration mode in roleplays was unaffected. Game mode was not tested. The maintainer confirmed that style text should not be copied into the prompt when the provider supports a style field. Character appearance options are separate and intentionally append appearance information. Discord thread: [Bug]: Generation Style Text leaking into Image Generation Prompts Discord thread link: https://discord.com/channels/1417099416812392641/1530016196185952326 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (10 messages)</summary> ```text [2026-07-24T00:58:07.497Z] m;aemoifmpfmmafe: Hi, From what I understand the Generation Style Text was to guide the LLM to generate the image prompts to be submitted to the image generators. After reviewing the previous images galleries and the attached image prompts, the Style Text was leaked into the image prompts. Is this intentional? Release: v2.3.4 Build: b7545a6 Install: Podman / Linux [attached image 1: https://cdn.discordapp.com/attachments/1530016196185952326/1530016196399993052/image.png?ex=6a640a1f&is=6a62b89f&hm=cfbf141fdb04f572100b23bb2380382ee3780106a23f46691696f34659fb83f6&] [attached image 2: https://cdn.discordapp.com/attachments/1530016196185952326/1530016197075140709/image.png?ex=6a640a1f&is=6a62b89f&hm=7450e2cf69a028032f4c95bf4e2af4743a68fd2b3eb7b6268ba49ce7edcf814e&] [Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530016196185952326] [2026-07-24T02:27:27.596Z] Bloo: Similarly, the "Attach Card Appearance" option in the Illustrator agent and "Include descriptions" in Noodle/etc all just append character appearance info directly to the prompt sent to the image generator rather than the text preprocessing step [Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530038678070624297] [2026-07-24T02:58:23.414Z] m;aemoifmpfmmafe: I've stopped using the attach card appearance. As the initial LLM already has access to the chat history, character & persona descriptions, lorebook access, the LLM tends to generate pretty accurate descriptions of the scene about 80% of the time. Attaching card appearance to the image prompt sometimes just confuses the image generator models. There's also an issue with the CLIP attention where it'll start losing details the moment the description becomes too wordy. [Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530046461935485110] [2026-07-24T04:22:22.994Z] Marinara: That’s the intended design, yes. Appearances are always sent with the prompt generation for the image. [Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530067599466041425] [2026-07-24T04:24:01.957Z] Marinara: Yes, unless you were generating using completely different style. [Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530068014547075182] [2026-07-24T05:37:45.028Z] m;aemoifmpfmmafe: Yes, but the style guide was also copied into the submitted image prompts which is redundant [Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530086566251331735] [2026-07-24T06:27:16.570Z] Marinara: Ahhh, some image geneation providers don't accept style field, so that's why it was implemented. [Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530099029801828362] [2026-07-24T06:33:43.236Z] m;aemoifmpfmmafe: sorry, just a quick update. I just went through the image prompts again. I noticed that this behavior only affects selfie mode in conversations, but not illustration mode in RPs. I haven't checked Game mode as I seldom use it [Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530100651596710058] [2026-07-24T06:36:41.851Z] m;aemoifmpfmmafe: Is it possible to request for an opt out from being copied directly into the image prompt and only used for LLM image prompt generation guidance? [Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530101400762056875] [2026-07-24T06:55:46.456Z] Marinara: Honestly, it shouldn't happen if style is supported so lemme fix [Discord message: https://discord.com/channels/1417099416812392641/1530016196185952326/1530106201583390832] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:45:59 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 24, 2026):

🔧 Implementation started — owned by @SpicyMarinara (Claude agent session). Draft PR: #4032.

Root cause: Roleplay illustration passes the style as generatedStyle (which suppresses the raw profile styleText), but the two Selfie paths omitted it, so the compiler appended profile.styleText verbatim. Fix feeds the style to the selfie prompt-building model as guidance and suppresses the verbatim append — so the style still shapes the image (and still reaches providers without a native style field) without the redundant copy.

<!-- gh-comment-id:5067739940 --> @SpicyMarinara commented on GitHub (Jul 24, 2026): 🔧 Implementation started — owned by @SpicyMarinara (Claude agent session). Draft PR: #4032. Root cause: Roleplay illustration passes the style as `generatedStyle` (which suppresses the raw profile styleText), but the two Selfie paths omitted it, so the compiler appended `profile.styleText` verbatim. Fix feeds the style to the selfie prompt-building model as guidance and suppresses the verbatim append — so the style still shapes the image (and still reaches providers without a native style field) without the redundant copy.
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#2174
No description provided.