[GH-ISSUE #3974] [Issue]: Force image generation when using Gallery buttons #2150

Closed
opened 2026-10-21 05:45:46 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Treat use of the Gallery Illustration or Background buttons as an explicit image-generation request. The Illustrator Agent should set shouldGenerate to true instead of deciding that the scene does not warrant an image.

Expected behavior

Pressing a Gallery image-generation button should instruct the Illustrator Agent that the user explicitly requested an image and force shouldGenerate to true.

Actual behavior

The Illustrator Agent can decline to generate an image after a Gallery button is pressed because its base prompt allows it to decide that the scene does not warrant an illustration or background.

Steps to reproduce

  1. Use the Illustrator Agent base prompt that lets the model decide whether a scene warrants an image.
  2. Open a scene that the agent may consider insufficiently interesting for an image.
  3. Press the Gallery Illustration or Background button.
  4. Observe that the agent may set shouldGenerate to false and not generate the explicitly requested image.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

No logs, screenshots, or video provided.

Additional context

Suggested implementation: append an instruction such as "The user specifically requested an image. Set shouldGenerate = true" to the Illustrator Agent context when generation is initiated through a Gallery button. A separate request for a UI control that injects custom guidance for the Illustrator Agent was discussed but deferred.

Discord thread: FR - Nudge the Illustrator Agent & set shouldGenerate to true with Gallery Button
Discord thread link: https://discord.com/channels/1417099416812392641/1529785221270995054
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (6 messages)
[2026-07-23T09:40:18.786Z] ylliselmanii: This is pretty much two feature requests, so if I should split it up, just let me know

1. When using the Base Prompt of the Illustrator Agent, the model decides if this scene warrants an Illustration or Background image. Fairs. 
However, if I press the Gallery buttons, I don't really want to be... ignored because it thinks the scene is boring, if that makes sense. So, maybe you could inject something like "the user specifically requested an image. set shouldGenerate = true" at the bottom of the context?

2. Sometimes, I want the agent to depict a specific part of the last assistant response, or in a specific way. An epic portrait of a single character instead of a wide shot, showing off 10 background characters as well. 
Right now, I manually add something like:
> "ooc to illustrator agent: do a portrait of Name, just as they emerge from the crypt. Yada yada." 
And this actually works really well! It listens. But maybe that could be a little streamlined, with a teeny tiny little button, opening a text field? Instead of editing the last response, and removing it afterward to avoid polluting the context?
[Discord message: https://discord.com/channels/1417099416812392641/1529785221270995054/1529785221270995054]

[2026-07-23T09:42:11.102Z] Marinara: 1. Oh yeah, I haven’t realized we’re sending that when we use the buttons for generation, sorry, haha.
[Discord message: https://discord.com/channels/1417099416812392641/1529785221270995054/1529785692358578236]

[2026-07-23T09:42:57.565Z] Marinara: 2. Enabling editing image prompts before sending them to the model doesn’t address this already?
[Discord message: https://discord.com/channels/1417099416812392641/1529785221270995054/1529785887238656103]

[2026-07-23T09:50:18.958Z] ylliselmanii: Well, sure you could manually write your own prompt for the imagegen model, but that's pretty tedious/hard, especially if you use something with specific goals (like, the bw manga prompt with multiple panels, etc, or something specifically for novelai/Danbooru tags)

 my idea was to use the illustrator agent with the nudge to build the prompt for you, and as i said, it works pretty well. It takes my ooc message, and builds the prompt far better than i would in that amount of time. 

Does that make sense? My idea would have been to add a teeny tiny button by the gallery buttons, that would inject the nudge when you press "illustration" the next time
[Discord message: https://discord.com/channels/1417099416812392641/1529785221270995054/1529787738575081522]

[2026-07-23T09:52:21.720Z] Marinara: Hm, I feel like what you're doing in messages is good enough. Introducing these boxes means making them optional, and more UI changes. You can also already edit the prompts of the agents/different image generation styles, so you could always prompt there to pay attention to specific things.
[Discord message: https://discord.com/channels/1417099416812392641/1529785221270995054/1529788253475966976]

[2026-07-23T09:52:46.761Z] Marinara: So I will do the 1 for now if that's okay
[Discord message: https://discord.com/channels/1417099416812392641/1529785221270995054/1529788358505660426]

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 23, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3974 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Treat use of the Gallery Illustration or Background buttons as an explicit image-generation request. The Illustrator Agent should set shouldGenerate to true instead of deciding that the scene does not warrant an image. ## Expected behavior Pressing a Gallery image-generation button should instruct the Illustrator Agent that the user explicitly requested an image and force shouldGenerate to true. ## Actual behavior The Illustrator Agent can decline to generate an image after a Gallery button is pressed because its base prompt allows it to decide that the scene does not warrant an illustration or background. ## Steps to reproduce 1. Use the Illustrator Agent base prompt that lets the model decide whether a scene warrants an image. 2. Open a scene that the agent may consider insufficiently interesting for an image. 3. Press the Gallery Illustration or Background button. 4. Observe that the agent may set shouldGenerate to false and not generate the explicitly requested image. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video No logs, screenshots, or video provided. ## Additional context Suggested implementation: append an instruction such as "The user specifically requested an image. Set shouldGenerate = true" to the Illustrator Agent context when generation is initiated through a Gallery button. A separate request for a UI control that injects custom guidance for the Illustrator Agent was discussed but deferred. Discord thread: FR - Nudge the Illustrator Agent & set shouldGenerate to true with Gallery Button Discord thread link: https://discord.com/channels/1417099416812392641/1529785221270995054 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (6 messages)</summary> ```text [2026-07-23T09:40:18.786Z] ylliselmanii: This is pretty much two feature requests, so if I should split it up, just let me know 1. When using the Base Prompt of the Illustrator Agent, the model decides if this scene warrants an Illustration or Background image. Fairs. However, if I press the Gallery buttons, I don't really want to be... ignored because it thinks the scene is boring, if that makes sense. So, maybe you could inject something like "the user specifically requested an image. set shouldGenerate = true" at the bottom of the context? 2. Sometimes, I want the agent to depict a specific part of the last assistant response, or in a specific way. An epic portrait of a single character instead of a wide shot, showing off 10 background characters as well. Right now, I manually add something like: > "ooc to illustrator agent: do a portrait of Name, just as they emerge from the crypt. Yada yada." And this actually works really well! It listens. But maybe that could be a little streamlined, with a teeny tiny little button, opening a text field? Instead of editing the last response, and removing it afterward to avoid polluting the context? [Discord message: https://discord.com/channels/1417099416812392641/1529785221270995054/1529785221270995054] [2026-07-23T09:42:11.102Z] Marinara: 1. Oh yeah, I haven’t realized we’re sending that when we use the buttons for generation, sorry, haha. [Discord message: https://discord.com/channels/1417099416812392641/1529785221270995054/1529785692358578236] [2026-07-23T09:42:57.565Z] Marinara: 2. Enabling editing image prompts before sending them to the model doesn’t address this already? [Discord message: https://discord.com/channels/1417099416812392641/1529785221270995054/1529785887238656103] [2026-07-23T09:50:18.958Z] ylliselmanii: Well, sure you could manually write your own prompt for the imagegen model, but that's pretty tedious/hard, especially if you use something with specific goals (like, the bw manga prompt with multiple panels, etc, or something specifically for novelai/Danbooru tags) my idea was to use the illustrator agent with the nudge to build the prompt for you, and as i said, it works pretty well. It takes my ooc message, and builds the prompt far better than i would in that amount of time. Does that make sense? My idea would have been to add a teeny tiny button by the gallery buttons, that would inject the nudge when you press "illustration" the next time [Discord message: https://discord.com/channels/1417099416812392641/1529785221270995054/1529787738575081522] [2026-07-23T09:52:21.720Z] Marinara: Hm, I feel like what you're doing in messages is good enough. Introducing these boxes means making them optional, and more UI changes. You can also already edit the prompts of the agents/different image generation styles, so you could always prompt there to pay attention to specific things. [Discord message: https://discord.com/channels/1417099416812392641/1529785221270995054/1529788253475966976] [2026-07-23T09:52:46.761Z] Marinara: So I will do the 1 for now if that's okay [Discord message: https://discord.com/channels/1417099416812392641/1529785221270995054/1529788358505660426] ``` </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:46 +07:00
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#2150
No description provided.