[GH-ISSUE #4602] [Issue]: Per-image tags are not injected correctly into generated prompts #2512

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Per-image tags configured in generation settings are omitted from final illustration prompts. Avatar creation also injects tags in an unexpected order and includes tags with no clear origin.

Expected behavior

Configured per-image tags should be injected as prefixes into final illustration and avatar prompts in the expected order, alongside the general positive tags.

Actual behavior

Illustration prompts correctly prepend general positive tags but omit per-image tags. Avatar creation injects tags in an unexpected order and adds unidentified tags. The Test Bench injects all configured tags correctly.

Steps to reproduce

  1. Enable "Expose media prompts before sending".
  2. Choose a style profile, such as Danbooru/Illustrious or a custom profile.
  3. Review the profile's positive tags and per-image tags.
  4. Open a chat, select Gallery, and click the Illustration button.
  5. Wait for the prompt model to return a prompt.
  6. Observe that positive tags are prepended but per-image tags are missing.
  7. Alternatively, use avatar image creation and observe the unexpected tag order and tags with no clear origin.

Environment

  • Marinara Engine version: v2.4.1, staging branch, build b0c7e95
  • Install type: other (Windows start.bat)
  • OS + version: Windows 11
  • Browser or app shell: Not provided

Logs, screenshots, or video

Illustration prompt screenshot: https://cdn.discordapp.com/attachments/1534292449244090519/1534292461634060419/per-image-tags_not_injected.png?ex=6a7398b4&is=6a724734&hm=d291f06a5d347caf7a6eaa04de2510ada857c195c11965afbcff7b88f1981d48&. Avatar creation screenshot: https://cdn.discordapp.com/attachments/1534292449244090519/1534292460841206002/avatar_creation_is_weird_too.png?ex=6a7398b4&is=6a724734&hm=fbcbfc0088894976a3144c01d1bec82cbcea7abb6c176964130075119c91e94d&. Working Test Bench screenshot: https://cdn.discordapp.com/attachments/1534292449244090519/1534293558780231802/image.png?ex=6a7399ba&is=6a72483a&hm=3bc92550b141c79efa1caaaa7e573b502fca13d2c783ab7edbc49e4d9dcc9724&.

Additional context

Tested with NovelAI image generation and Illustrator Agent v1.0.4 across multiple style profiles. The Test Bench works normally and includes all expected injections; the issue appears specific to illustration and avatar creation flows. The reporter is unsure when the regression began.

Discord thread: [BUG] Per-Image-Tags not being injected correctly
Discord thread link: https://discord.com/channels/1417099416812392641/1534292449244090519
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (3 messages)
[2026-08-04T20:10:25.675Z] ylliselmanii: release: v2.4.1
branch: staging
build: b0c7e95
Installation: Windows 11, 'start.bat'
Illustrator Agent: v1.0.4

I just noticed that the per-image-tags from the generations settings page aren't being injected into the final prompt anymore as prefixes as they should. tested with various style profiles using NovelAI imagegen. Not sure when this happened, but this isn't ideal, and didn't used to be the case. As far as I can tell this happens with illustrations, while something like Avatar Creation has its own problems. 

Steps to reproduce:
- Toggle: *Expose media prompts before sending*
- choose a style profile, (e.G Danbooru/Illustrious, or even a custom one)
  - check the positive tags, and per-image-tags
- open chat, click gallery and Illustration button
- Wait until the prompt model returns a prompt and observe that the per-image-tags for illustrations are not injected into the final as they should, while the general 'positive tags' are prepended correctly.
- Alternatively: Use the avatar image creation function, and observe that the tags are injected in a weird order, and there are multiple tags that have no clear origin.

Both instances I encountered are depicted in the attached screenshots. (yes, they're messy)

[attached image 1: https://cdn.discordapp.com/attachments/1534292449244090519/1534292460841206002/avatar_creation_is_weird_too.png?ex=6a7398b4&is=6a724734&hm=fbcbfc0088894976a3144c01d1bec82cbcea7abb6c176964130075119c91e94d&]
[attached image 2: https://cdn.discordapp.com/attachments/1534292449244090519/1534292461634060419/per-image-tags_not_injected.png?ex=6a7398b4&is=6a724734&hm=d291f06a5d347caf7a6eaa04de2510ada857c195c11965afbcff7b88f1981d48&]
[Discord message: https://discord.com/channels/1417099416812392641/1534292449244090519/1534292449244090519]

[2026-08-04T20:12:36.694Z] ylliselmanii: I want to note that the Test Bench seems to work normally
[Discord message: https://discord.com/channels/1417099416812392641/1534292449244090519/1534292998777737226]

[2026-08-04T20:14:50.265Z] ylliselmanii: > **masterpiece, best quality, absurdres, anime screencap, detailed eyes**, *visual novel CG, cinematic composition, dramatic lighting*, Danbooru-tagged anime generation for SDXL, Illustrious, Pony, NovelAI, and similar checkpoints, Mira, anime style, text, watermark
All injections are present as they should be.

[attached image 1: https://cdn.discordapp.com/attachments/1534292449244090519/1534293558780231802/image.png?ex=6a7399ba&is=6a72483a&hm=3bc92550b141c79efa1caaaa7e573b502fca13d2c783ab7edbc49e4d9dcc9724&]
[Discord message: https://discord.com/channels/1417099416812392641/1534292449244090519/1534293559014854687]

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 (Aug 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4602 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Per-image tags configured in generation settings are omitted from final illustration prompts. Avatar creation also injects tags in an unexpected order and includes tags with no clear origin. ## Expected behavior Configured per-image tags should be injected as prefixes into final illustration and avatar prompts in the expected order, alongside the general positive tags. ## Actual behavior Illustration prompts correctly prepend general positive tags but omit per-image tags. Avatar creation injects tags in an unexpected order and adds unidentified tags. The Test Bench injects all configured tags correctly. ## Steps to reproduce 1. Enable "Expose media prompts before sending". 2. Choose a style profile, such as Danbooru/Illustrious or a custom profile. 3. Review the profile's positive tags and per-image tags. 4. Open a chat, select Gallery, and click the Illustration button. 5. Wait for the prompt model to return a prompt. 6. Observe that positive tags are prepended but per-image tags are missing. 7. Alternatively, use avatar image creation and observe the unexpected tag order and tags with no clear origin. ## Environment - Marinara Engine version: v2.4.1, staging branch, build b0c7e95 - Install type: other (Windows start.bat) - OS + version: Windows 11 - Browser or app shell: Not provided ## Logs, screenshots, or video Illustration prompt screenshot: https://cdn.discordapp.com/attachments/1534292449244090519/1534292461634060419/per-image-tags_not_injected.png?ex=6a7398b4&is=6a724734&hm=d291f06a5d347caf7a6eaa04de2510ada857c195c11965afbcff7b88f1981d48&. Avatar creation screenshot: https://cdn.discordapp.com/attachments/1534292449244090519/1534292460841206002/avatar_creation_is_weird_too.png?ex=6a7398b4&is=6a724734&hm=fbcbfc0088894976a3144c01d1bec82cbcea7abb6c176964130075119c91e94d&. Working Test Bench screenshot: https://cdn.discordapp.com/attachments/1534292449244090519/1534293558780231802/image.png?ex=6a7399ba&is=6a72483a&hm=3bc92550b141c79efa1caaaa7e573b502fca13d2c783ab7edbc49e4d9dcc9724&. ## Additional context Tested with NovelAI image generation and Illustrator Agent v1.0.4 across multiple style profiles. The Test Bench works normally and includes all expected injections; the issue appears specific to illustration and avatar creation flows. The reporter is unsure when the regression began. Discord thread: [BUG] Per-Image-Tags not being injected correctly Discord thread link: https://discord.com/channels/1417099416812392641/1534292449244090519 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-08-04T20:10:25.675Z] ylliselmanii: release: v2.4.1 branch: staging build: b0c7e95 Installation: Windows 11, 'start.bat' Illustrator Agent: v1.0.4 I just noticed that the per-image-tags from the generations settings page aren't being injected into the final prompt anymore as prefixes as they should. tested with various style profiles using NovelAI imagegen. Not sure when this happened, but this isn't ideal, and didn't used to be the case. As far as I can tell this happens with illustrations, while something like Avatar Creation has its own problems. Steps to reproduce: - Toggle: *Expose media prompts before sending* - choose a style profile, (e.G Danbooru/Illustrious, or even a custom one) - check the positive tags, and per-image-tags - open chat, click gallery and Illustration button - Wait until the prompt model returns a prompt and observe that the per-image-tags for illustrations are not injected into the final as they should, while the general 'positive tags' are prepended correctly. - Alternatively: Use the avatar image creation function, and observe that the tags are injected in a weird order, and there are multiple tags that have no clear origin. Both instances I encountered are depicted in the attached screenshots. (yes, they're messy) [attached image 1: https://cdn.discordapp.com/attachments/1534292449244090519/1534292460841206002/avatar_creation_is_weird_too.png?ex=6a7398b4&is=6a724734&hm=fbcbfc0088894976a3144c01d1bec82cbcea7abb6c176964130075119c91e94d&] [attached image 2: https://cdn.discordapp.com/attachments/1534292449244090519/1534292461634060419/per-image-tags_not_injected.png?ex=6a7398b4&is=6a724734&hm=d291f06a5d347caf7a6eaa04de2510ada857c195c11965afbcff7b88f1981d48&] [Discord message: https://discord.com/channels/1417099416812392641/1534292449244090519/1534292449244090519] [2026-08-04T20:12:36.694Z] ylliselmanii: I want to note that the Test Bench seems to work normally [Discord message: https://discord.com/channels/1417099416812392641/1534292449244090519/1534292998777737226] [2026-08-04T20:14:50.265Z] ylliselmanii: > **masterpiece, best quality, absurdres, anime screencap, detailed eyes**, *visual novel CG, cinematic composition, dramatic lighting*, Danbooru-tagged anime generation for SDXL, Illustrious, Pony, NovelAI, and similar checkpoints, Mira, anime style, text, watermark All injections are present as they should be. [attached image 1: https://cdn.discordapp.com/attachments/1534292449244090519/1534293558780231802/image.png?ex=6a7399ba&is=6a72483a&hm=3bc92550b141c79efa1caaaa7e573b502fca13d2c783ab7edbc49e4d9dcc9724&] [Discord message: https://discord.com/channels/1417099416812392641/1534292449244090519/1534293559014854687] ``` </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:49:18 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 4, 2026):

SpicyMarinara is addressing this in the existing v2.4.1 stabilization PR #4590. I confirmed there is no competing issue-linked branch or PR; implementation will stay Engine-owned unless diagnosis shows a package-owned change is also required.

<!-- gh-comment-id:5184136949 --> @SpicyMarinara commented on GitHub (Aug 4, 2026): SpicyMarinara is addressing this in the existing v2.4.1 stabilization PR #4590. I confirmed there is no competing issue-linked branch or PR; implementation will stay Engine-owned unless diagnosis shows a package-owned change is also required.
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#2512
No description provided.