[GH-ISSUE #877] [Issue]: Illustrator retry can skip default image connection without an error #429

Closed
opened 2026-10-20 17:28:45 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Xelvanis on GitHub (May 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/877

Originally assigned to: @cha1latte on GitHub.

Summary

Manual Illustrator image generation can complete without producing an image when the Illustrator agent relies on the default image generation connection instead of an explicit agent override.

Discord support report: the agent request is created with shouldGenerate: true, but Game/RP manual Illustrate shows no Marinara debug output, no Forge/backend request, and eventually reports agent retry completed. Selecting the same image generation connection directly in Settings -> Agents -> Illustrator makes the image generation work.

Expected behavior

If an image generation connection is marked as the default for Illustrator, the Illustrator agent should use it when its Image Generation Connection Override is empty.

If no image connection can be resolved, manual Illustrate/retry should emit an actionable agent_error instead of completing silently.

Actual behavior

When relying on the default Illustrator image connection, manual Illustrate/retry can appear to run the Illustrator agent successfully but produce no image and send no request to the image backend.

Setting the same connection as an explicit Illustrator agent override works around the issue.

Steps to reproduce

  1. Configure a local image generation connection, such as Forge/Automatic1111.
  2. Mark that connection as the default Illustrator image connection in Settings -> Connections.
  3. Leave Settings -> Agents -> Illustrator -> Image Generation Connection Override empty.
  4. In RP mode or Game Mode Gallery, trigger Illustrate/retry on a message where the Illustrator output has shouldGenerate: true.
  5. Observe that the retry completes without a generated image and without a request appearing in the image backend.
  6. Select the same image generation connection directly in the Illustrator agent override.
  7. Retry Illustrate and observe that generation works.

Environment

  • Marinara Engine version: not yet captured; reported against the current/mainline app behavior from Discord support
  • Install type: not yet captured
  • OS + version: not yet captured
  • Browser or app shell: not yet captured
  • Image backend: local Forge/Automatic1111-compatible setup

Logs, screenshots, or video

Reported evidence:

  • Browser console shows the Illustrator/retry request being made with shouldGenerate: true.
  • Marinara debug terminal and Forge terminal show no image-generation attempt in the failing case.
  • UI eventually reports agent retry completed with no image output.

Code paths worth checking:

  • packages/server/src/routes/generate/retry-agents-route.ts resolves imageConnectionId from the Illustrator agent settings, then falls back to an image_generation connection with defaultForAgents === true || "true". If no imgConnId resolves, the current retry path appears to skip image generation without sending an agent_error.
  • packages/server/src/routes/generate.routes.ts has a separate Illustrator path that does emit an agent_error when no image connection resolves.
  • packages/client/src/components/agents/AgentEditor.tsx presents the empty Illustrator override as using the default Illustrator image connection.
  • packages/client/src/components/connections/ConnectionEditor.tsx saves the image default via defaultForAgents.

Additional context

Workaround: explicitly select the image generation connection in Settings -> Agents -> Illustrator instead of relying on the default Illustrator connection.

Suggested investigation:

  • Confirm the failing user's saved connection row has provider: "image_generation" and defaultForAgents: "true" or true.
  • Confirm retry-agents-route.ts sees that connection via conns.list().
  • Add a visible/logged agent_error in the retry path when shouldGenerate is true but no image connection resolves, matching the normal generation route's behavior.

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 @Xelvanis on GitHub (May 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/877 Originally assigned to: @cha1latte on GitHub. ## Summary Manual Illustrator image generation can complete without producing an image when the Illustrator agent relies on the default image generation connection instead of an explicit agent override. Discord support report: the agent request is created with `shouldGenerate: true`, but Game/RP manual Illustrate shows no Marinara debug output, no Forge/backend request, and eventually reports `agent retry completed`. Selecting the same image generation connection directly in Settings -> Agents -> Illustrator makes the image generation work. ## Expected behavior If an image generation connection is marked as the default for Illustrator, the Illustrator agent should use it when its Image Generation Connection Override is empty. If no image connection can be resolved, manual Illustrate/retry should emit an actionable `agent_error` instead of completing silently. ## Actual behavior When relying on the default Illustrator image connection, manual Illustrate/retry can appear to run the Illustrator agent successfully but produce no image and send no request to the image backend. Setting the same connection as an explicit Illustrator agent override works around the issue. ## Steps to reproduce 1. Configure a local image generation connection, such as Forge/Automatic1111. 2. Mark that connection as the default Illustrator image connection in Settings -> Connections. 3. Leave Settings -> Agents -> Illustrator -> Image Generation Connection Override empty. 4. In RP mode or Game Mode Gallery, trigger Illustrate/retry on a message where the Illustrator output has `shouldGenerate: true`. 5. Observe that the retry completes without a generated image and without a request appearing in the image backend. 6. Select the same image generation connection directly in the Illustrator agent override. 7. Retry Illustrate and observe that generation works. ## Environment - Marinara Engine version: not yet captured; reported against the current/mainline app behavior from Discord support - Install type: not yet captured - OS + version: not yet captured - Browser or app shell: not yet captured - Image backend: local Forge/Automatic1111-compatible setup ## Logs, screenshots, or video Reported evidence: - Browser console shows the Illustrator/retry request being made with `shouldGenerate: true`. - Marinara debug terminal and Forge terminal show no image-generation attempt in the failing case. - UI eventually reports `agent retry completed` with no image output. Code paths worth checking: - `packages/server/src/routes/generate/retry-agents-route.ts` resolves `imageConnectionId` from the Illustrator agent settings, then falls back to an `image_generation` connection with `defaultForAgents === true || "true"`. If no `imgConnId` resolves, the current retry path appears to skip image generation without sending an `agent_error`. - `packages/server/src/routes/generate.routes.ts` has a separate Illustrator path that does emit an `agent_error` when no image connection resolves. - `packages/client/src/components/agents/AgentEditor.tsx` presents the empty Illustrator override as using the default Illustrator image connection. - `packages/client/src/components/connections/ConnectionEditor.tsx` saves the image default via `defaultForAgents`. ## Additional context Workaround: explicitly select the image generation connection in Settings -> Agents -> Illustrator instead of relying on the default Illustrator connection. Suggested investigation: - Confirm the failing user's saved connection row has `provider: "image_generation"` and `defaultForAgents: "true"` or `true`. - Confirm `retry-agents-route.ts` sees that connection via `conns.list()`. - Add a visible/logged `agent_error` in the retry path when `shouldGenerate` is true but no image connection resolves, matching the normal generation route's behavior. ## 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-20 17:28:45 +07:00
  • closed this issue
  • added the
    bug
    label
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#429
No description provided.