[GH-ISSUE #4337] [Issue]: Custom image agents cannot pass character references to ComfyUI #2350

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Custom image generation agents do not expose the Illustrator agent's reference-image, appearance-description, or connection configuration. As a result, custom agents cannot pass character reference images to ComfyUI or reliably use character-specific workflows and LoRAs.

Expected behavior

Custom agents that generate images should expose the same reference-image and appearance-description toggles as the Illustrator agent. Users should also be able to select the appropriate image generation connection so each chat or character can use its required ComfyUI workflow, LoRAs, and style.

Actual behavior

The relevant configuration block is missing from custom image generation agents. Generated requests do not populate the ComfyUI node with base64-encoded character reference images, causing generic people to be generated instead of the intended character. Cloned Illustrator agents also lose the Image Generation Connection Override and fall back to the default image settings.

Steps to reproduce

  1. Configure a ComfyUI connection and workflow that accepts character reference images.
  2. Create a custom agent with the Result Type set to Image Prompt.
  3. Open the custom agent configuration and observe that the Illustrator agent's reference-image, appearance-description, and connection options are missing.
  4. Use the custom agent to generate a character image in Conversational mode.
  5. Inspect the submitted ComfyUI workflow and observe that the reference-image node was not populated with base64 data.
  6. Compare the result with the same workflow used through the Illustrator agent, which passes the reference image correctly.

Environment

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

Logs, screenshots, or video

The user reported a ComfyUI console error indicating a problem with the reference image; the exact error text was not provided. Custom-agent configuration screenshot: https://cdn.discordapp.com/attachments/1532424738306265321/1532471936628691125/image.png?ex=6a6da1f5&is=6a6c5075&hm=93366195309b4368537c3338aaf0b27af341ffb84c71bb8376d60050f4c2fd7a&. Correctly populated workflow using Illustrator: https://cdn.discordapp.com/attachments/1532424738306265321/1532639173830508706/Illustrator_agent.png?ex=6a6d94f6&is=6a6c4376&hm=375abc94140ce2cd3a1949f936ac2aa65a50cf0ea31163b76daa96463e0dd418&. Unpopulated reference node using a custom agent: https://cdn.discordapp.com/attachments/1532424738306265321/1532639471122649228/Custom_Agent.png?ex=6a6d953c&is=6a6c43bc&hm=fa4c902efc5bf4dda9782c8b9ecb555bdc834172292d11127bf69be906b7d5d0&.

Additional context

Users need separate ComfyUI connections for character-specific LoRAs and styles, such as cartoon and realistic workflows in different chats. Reconfiguring the single Illustrator agent affects other use cases. A maintainer indicated that custom image generation agents could receive the same reference and appearance toggles as Illustrator.

Discord thread: Hey everyone, looking for some help with image generation settings in Conversational mode.
Discord thread link: https://discord.com/channels/1417099416812392641/1532424738306265321
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (26 messages)
[2026-07-30T16:28:48.687Z] kekspeks: Previously, we could configure image generation per character. Now we can only select an Agent. However, when I clone the Illustrator agent, the "Image Generation Connection Override" option disappears from the clone, forcing it to use the default settings anyway. How can I set up character-specific image generation now? Am I missing something, or is the missing override on cloned agents a bug?   v.2.3.4 here
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532424738306265321]

[2026-07-30T17:36:22.594Z] Marinara: Um, we never had per character image generation.
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532441741624610866]

[2026-07-30T17:36:24.678Z] Marinara: Only per chat.
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532441750365540475]

[2026-07-30T17:36:30.157Z] Marinara: Which still works.
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532441773346128073]

[2026-07-30T17:36:50.706Z] Marinara: you're also not supposed to duplicate that agent, haha.
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532441859534749918]

[2026-07-30T17:37:29.918Z] Marinara: In Convo part of a character card, you can specify their style of taking pics in convo/Noodle.
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532442024001929366]

[2026-07-30T18:10:56.547Z] kekspeks: Ah, got it, thanks! But where is the per-chat setting now? I can no longer find that option—the only thing I see is the ability to select the Illustrator agent. Where should I look for it?
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532450440413708398]

[2026-07-30T18:12:16.216Z] Marinara: Chat Settings -> Agents -> Illustrator
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532450774569713714]

[2026-07-30T18:20:27.628Z] kekspeks: Wait, but that's my point! I can select that same Illustrator agent in any chat, but since there's only one Illustrator agent total, changing its settings modifies image generation for ALL chats at once.

Does that mean we can no longer customize the image generation settings or style per individual chat, only use one global set of parameters everywhere?
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532452835701035129]

[2026-07-30T18:21:45.083Z] Marinara: But what you want to change per chat?
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532453160571113683]

[2026-07-30T18:25:14.983Z] kekspeks: The Character LoRA and the overall style!

For instance, one chat needs Mark Grayson with a cartoon style, while another needs Mark Twain with a realistic style.

Without per-chat settings (or working cloned agents), I have to manually rewrite the prompt/settings in the global Illustrator every time I switch chats. This was working fine a few updates ago!
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532454040955392173]

[2026-07-30T18:26:30.372Z] kekspeks: First and foremost, the LoRAs! There's literally no other way to apply character-specific LoRAs to different chats.
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532454357159776346]

[2026-07-30T18:28:27.188Z] Marinara: I saw someone explaining how they do it in the ComfyUI thread.
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532454847121588275]

[2026-07-30T18:28:42.941Z] Marinara: The styles you can adjust in Agents menu.
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532454913194590441]

[2026-07-30T18:29:04.098Z] Marinara: And in character appearance itself.
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532455001933222129]

[2026-07-30T18:32:54.732Z] kekspeks: I actually use ComfyUI! But the problem is that custom API workflows with specific LoRAs still need to be saved in a separate Connection setup, which is attached to the Agent.

Since we can't assign different Connections per chat (or clone the Agent), ComfyUI doesn't help—I'd still be locked into one single API connection for all chats.
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532455969282457669]

[2026-07-30T19:07:09.305Z] Marinara: The connection is stored per chat though
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532464586786209892]

[2026-07-30T19:24:47.280Z] Cheeto: I'm also interested in this if you figure out how to get it working. Specifically character-specific LoRAs.
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532469024254857226]

[2026-07-30T19:36:21.710Z] Terahurts: I'm also trying to get something similar to work in convo mode. In my case I want to use a custom agent with the Result Type of Image Prompt (for spicy reasons lol), but there is no option to pass char reference images to Comfy. I can't create custom Comfy workflows because there's no way to assign them to a custom agent and I can't use separate connections as the custom agent uses the default Image setting. 

Ideally, the block in the attached image should be exposed when creating a custom Image Gen agent.

[attached image 1: https://cdn.discordapp.com/attachments/1532424738306265321/1532471936628691125/image.png?ex=6a6da1f5&is=6a6c5075&hm=93366195309b4368537c3338aaf0b27af341ffb84c71bb8376d60050f4c2fd7a&]
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532471936905510932]

[2026-07-31T05:21:29.736Z] Terahurts: @Marinara Thinking about it some more, not being able to send reference images kind of makes custom image gen agents useless for anything other than background/generic images, especially in convo mode. In my use case, I'd like to generate non-selfie characters images via keywords (think characters posting 'already existing' images of themselves from their phone gallery or hard-drive rather than a selfie of the current moment). I can get the custom agent to activate and generate an image but without the avatar references, the generated images are just generic people. 

From a user point of view, the best option would be to have that whole block available since it gives us the most flexibility but if that's a lot of work for you, just being able to select the connection would work as we could set up the reference images directly in Comfy's workflow and create separate connections for each character. That's not an *ideal *solution, but it would work.

(In case you think I'm complaining, I'm not. I'm really impressed with ME and I'm grateful for all the time and effort you put  into it for us.)
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532619190639525989]

[2026-07-31T06:08:13.508Z] Marinara: Why can’t you send reference images?
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532630950511509665]

[2026-07-31T06:08:22.037Z] Marinara: These are sent with ComfyUI connection?
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532630986284732436]

[2026-07-31T06:34:33.117Z] Terahurts: There's no option to include them with a custom agent. That configuration block in the image above is missing from the custom agent setup so there's no way to tell the agent to use them. I tested saving one of my custom agent generated images and dropping it into ComfyUI. The node that should have base64 encoded info for the ref images hadn't been populated and I also got an error from Comfy's console when running the agent about there being a problem with the reference image. Running the Illustrator agent with the same template as my custom one works correctly but that breaks the illustrator agent for everything else.
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532637575871856650]

[2026-07-31T06:40:54.166Z] Terahurts: This is how it should look using the Illustrator agent.

[attached image 1: https://cdn.discordapp.com/attachments/1532424738306265321/1532639173830508706/Illustrator_agent.png?ex=6a6d94f6&is=6a6c4376&hm=375abc94140ce2cd3a1949f936ac2aa65a50cf0ea31163b76daa96463e0dd418&]
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532639174107070484]

[2026-07-31T06:42:05.070Z] Terahurts: and this is from using a custom agent. As you can see, the reference image wasn't passed, so the node hasn't been updated

[attached image 1: https://cdn.discordapp.com/attachments/1532424738306265321/1532639471122649228/Custom_Agent.png?ex=6a6d953c&is=6a6c43bc&hm=fa4c902efc5bf4dda9782c8b9ecb555bdc834172292d11127bf69be906b7d5d0&]
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532639471500001351]

[2026-07-31T07:37:41.616Z] Marinara: I can add to custom agents that do image generation toggles to accept references/appearance descriptions, the same ones Illustrator has.
[Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532653465988497408]

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 31, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4337 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Custom image generation agents do not expose the Illustrator agent's reference-image, appearance-description, or connection configuration. As a result, custom agents cannot pass character reference images to ComfyUI or reliably use character-specific workflows and LoRAs. ## Expected behavior Custom agents that generate images should expose the same reference-image and appearance-description toggles as the Illustrator agent. Users should also be able to select the appropriate image generation connection so each chat or character can use its required ComfyUI workflow, LoRAs, and style. ## Actual behavior The relevant configuration block is missing from custom image generation agents. Generated requests do not populate the ComfyUI node with base64-encoded character reference images, causing generic people to be generated instead of the intended character. Cloned Illustrator agents also lose the Image Generation Connection Override and fall back to the default image settings. ## Steps to reproduce 1. Configure a ComfyUI connection and workflow that accepts character reference images. 2. Create a custom agent with the Result Type set to Image Prompt. 3. Open the custom agent configuration and observe that the Illustrator agent's reference-image, appearance-description, and connection options are missing. 4. Use the custom agent to generate a character image in Conversational mode. 5. Inspect the submitted ComfyUI workflow and observe that the reference-image node was not populated with base64 data. 6. Compare the result with the same workflow used through the Illustrator agent, which passes the reference image correctly. ## Environment - Marinara Engine version: 2.3.4 - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video The user reported a ComfyUI console error indicating a problem with the reference image; the exact error text was not provided. Custom-agent configuration screenshot: https://cdn.discordapp.com/attachments/1532424738306265321/1532471936628691125/image.png?ex=6a6da1f5&is=6a6c5075&hm=93366195309b4368537c3338aaf0b27af341ffb84c71bb8376d60050f4c2fd7a&. Correctly populated workflow using Illustrator: https://cdn.discordapp.com/attachments/1532424738306265321/1532639173830508706/Illustrator_agent.png?ex=6a6d94f6&is=6a6c4376&hm=375abc94140ce2cd3a1949f936ac2aa65a50cf0ea31163b76daa96463e0dd418&. Unpopulated reference node using a custom agent: https://cdn.discordapp.com/attachments/1532424738306265321/1532639471122649228/Custom_Agent.png?ex=6a6d953c&is=6a6c43bc&hm=fa4c902efc5bf4dda9782c8b9ecb555bdc834172292d11127bf69be906b7d5d0&. ## Additional context Users need separate ComfyUI connections for character-specific LoRAs and styles, such as cartoon and realistic workflows in different chats. Reconfiguring the single Illustrator agent affects other use cases. A maintainer indicated that custom image generation agents could receive the same reference and appearance toggles as Illustrator. Discord thread: Hey everyone, looking for some help with image generation settings in Conversational mode. Discord thread link: https://discord.com/channels/1417099416812392641/1532424738306265321 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (26 messages)</summary> ```text [2026-07-30T16:28:48.687Z] kekspeks: Previously, we could configure image generation per character. Now we can only select an Agent. However, when I clone the Illustrator agent, the "Image Generation Connection Override" option disappears from the clone, forcing it to use the default settings anyway. How can I set up character-specific image generation now? Am I missing something, or is the missing override on cloned agents a bug? v.2.3.4 here [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532424738306265321] [2026-07-30T17:36:22.594Z] Marinara: Um, we never had per character image generation. [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532441741624610866] [2026-07-30T17:36:24.678Z] Marinara: Only per chat. [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532441750365540475] [2026-07-30T17:36:30.157Z] Marinara: Which still works. [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532441773346128073] [2026-07-30T17:36:50.706Z] Marinara: you're also not supposed to duplicate that agent, haha. [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532441859534749918] [2026-07-30T17:37:29.918Z] Marinara: In Convo part of a character card, you can specify their style of taking pics in convo/Noodle. [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532442024001929366] [2026-07-30T18:10:56.547Z] kekspeks: Ah, got it, thanks! But where is the per-chat setting now? I can no longer find that option—the only thing I see is the ability to select the Illustrator agent. Where should I look for it? [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532450440413708398] [2026-07-30T18:12:16.216Z] Marinara: Chat Settings -> Agents -> Illustrator [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532450774569713714] [2026-07-30T18:20:27.628Z] kekspeks: Wait, but that's my point! I can select that same Illustrator agent in any chat, but since there's only one Illustrator agent total, changing its settings modifies image generation for ALL chats at once. Does that mean we can no longer customize the image generation settings or style per individual chat, only use one global set of parameters everywhere? [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532452835701035129] [2026-07-30T18:21:45.083Z] Marinara: But what you want to change per chat? [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532453160571113683] [2026-07-30T18:25:14.983Z] kekspeks: The Character LoRA and the overall style! For instance, one chat needs Mark Grayson with a cartoon style, while another needs Mark Twain with a realistic style. Without per-chat settings (or working cloned agents), I have to manually rewrite the prompt/settings in the global Illustrator every time I switch chats. This was working fine a few updates ago! [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532454040955392173] [2026-07-30T18:26:30.372Z] kekspeks: First and foremost, the LoRAs! There's literally no other way to apply character-specific LoRAs to different chats. [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532454357159776346] [2026-07-30T18:28:27.188Z] Marinara: I saw someone explaining how they do it in the ComfyUI thread. [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532454847121588275] [2026-07-30T18:28:42.941Z] Marinara: The styles you can adjust in Agents menu. [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532454913194590441] [2026-07-30T18:29:04.098Z] Marinara: And in character appearance itself. [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532455001933222129] [2026-07-30T18:32:54.732Z] kekspeks: I actually use ComfyUI! But the problem is that custom API workflows with specific LoRAs still need to be saved in a separate Connection setup, which is attached to the Agent. Since we can't assign different Connections per chat (or clone the Agent), ComfyUI doesn't help—I'd still be locked into one single API connection for all chats. [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532455969282457669] [2026-07-30T19:07:09.305Z] Marinara: The connection is stored per chat though [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532464586786209892] [2026-07-30T19:24:47.280Z] Cheeto: I'm also interested in this if you figure out how to get it working. Specifically character-specific LoRAs. [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532469024254857226] [2026-07-30T19:36:21.710Z] Terahurts: I'm also trying to get something similar to work in convo mode. In my case I want to use a custom agent with the Result Type of Image Prompt (for spicy reasons lol), but there is no option to pass char reference images to Comfy. I can't create custom Comfy workflows because there's no way to assign them to a custom agent and I can't use separate connections as the custom agent uses the default Image setting. Ideally, the block in the attached image should be exposed when creating a custom Image Gen agent. [attached image 1: https://cdn.discordapp.com/attachments/1532424738306265321/1532471936628691125/image.png?ex=6a6da1f5&is=6a6c5075&hm=93366195309b4368537c3338aaf0b27af341ffb84c71bb8376d60050f4c2fd7a&] [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532471936905510932] [2026-07-31T05:21:29.736Z] Terahurts: @Marinara Thinking about it some more, not being able to send reference images kind of makes custom image gen agents useless for anything other than background/generic images, especially in convo mode. In my use case, I'd like to generate non-selfie characters images via keywords (think characters posting 'already existing' images of themselves from their phone gallery or hard-drive rather than a selfie of the current moment). I can get the custom agent to activate and generate an image but without the avatar references, the generated images are just generic people. From a user point of view, the best option would be to have that whole block available since it gives us the most flexibility but if that's a lot of work for you, just being able to select the connection would work as we could set up the reference images directly in Comfy's workflow and create separate connections for each character. That's not an *ideal *solution, but it would work. (In case you think I'm complaining, I'm not. I'm really impressed with ME and I'm grateful for all the time and effort you put into it for us.) [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532619190639525989] [2026-07-31T06:08:13.508Z] Marinara: Why can’t you send reference images? [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532630950511509665] [2026-07-31T06:08:22.037Z] Marinara: These are sent with ComfyUI connection? [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532630986284732436] [2026-07-31T06:34:33.117Z] Terahurts: There's no option to include them with a custom agent. That configuration block in the image above is missing from the custom agent setup so there's no way to tell the agent to use them. I tested saving one of my custom agent generated images and dropping it into ComfyUI. The node that should have base64 encoded info for the ref images hadn't been populated and I also got an error from Comfy's console when running the agent about there being a problem with the reference image. Running the Illustrator agent with the same template as my custom one works correctly but that breaks the illustrator agent for everything else. [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532637575871856650] [2026-07-31T06:40:54.166Z] Terahurts: This is how it should look using the Illustrator agent. [attached image 1: https://cdn.discordapp.com/attachments/1532424738306265321/1532639173830508706/Illustrator_agent.png?ex=6a6d94f6&is=6a6c4376&hm=375abc94140ce2cd3a1949f936ac2aa65a50cf0ea31163b76daa96463e0dd418&] [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532639174107070484] [2026-07-31T06:42:05.070Z] Terahurts: and this is from using a custom agent. As you can see, the reference image wasn't passed, so the node hasn't been updated [attached image 1: https://cdn.discordapp.com/attachments/1532424738306265321/1532639471122649228/Custom_Agent.png?ex=6a6d953c&is=6a6c43bc&hm=fa4c902efc5bf4dda9782c8b9ecb555bdc834172292d11127bf69be906b7d5d0&] [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532639471500001351] [2026-07-31T07:37:41.616Z] Marinara: I can add to custom agents that do image generation toggles to accept references/appearance descriptions, the same ones Illustrator has. [Discord message: https://discord.com/channels/1417099416812392641/1532424738306265321/1532653465988497408] ``` </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:47:32 +07:00
Author
Owner

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

Implementation is in progress by @SpicyMarinara with Codex in draft PR #4340. This issue is part of the current focused staging sweep; existing code paths will be reused and kept narrow.

<!-- gh-comment-id:5141428903 --> @SpicyMarinara commented on GitHub (Jul 31, 2026): Implementation is in progress by @SpicyMarinara with Codex in draft PR #4340. This issue is part of the current focused staging sweep; existing code paths will be reused and kept narrow.
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#2350
No description provided.