mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1514] [Issue]: Gallery Illustrate runs Illustrator without generating the image #762
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#762
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Xelvanis on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1514
Originally assigned to: @Romuromylus on GitHub.
Summary
Roleplay Gallery
Illustratecan run the Illustrator agent successfully but never attempt image generation. The retry path persists animage_promptagent run withshouldGenerate: true, then returns the button to idle with no gallery image, no assistant attachment, and no visible "no image connection" error.Expected behavior
Manual Gallery
Illustrateshould share the normal generation behavior for Illustrator results:No image generation connection configured for this chat.Actual behavior
The Illustrator retry path only runs and persists the agent result. It does not call the illustration generation step, so a successful
shouldGenerate: trueresult is effectively a silent no-op.Native QA on current
origin/refactorshowed:Illustrate:agent-runs = 6,gallery = 1,messages = 16Illustrate:agent-runs = 7,gallery = 1,messages = 16agentType: "illustrator"resultType: "image_prompt"success: trueresultData.shouldGenerate: trueresultData.prompt: "A11_MANUAL_ILLUSTRATE_PROMPT_MARKER"Illustrate/Upload Images; no no-image-connection error appeared.Steps to reproduce
origin/refactor, open a Roleplay chat in the Tauri desktop app.illustratorthe active agent.{"shouldGenerate":true,"reason":"A11_MANUAL_ILLUSTRATE_REASON_MARKER","prompt":"A11_MANUAL_ILLUSTRATE_PROMPT_MARKER"}metadata.imageGenConnectionId.Illustrate.Impact area
Environment
origin/refactorat229e7d89(Fix PR 1499 review follow-ups)v24.16.0, pnpm10.33.2rustc 1.95.0,cargo 1.95.0Logs, screenshots, or video
Current code path matches the repro:
src/features/modes/shared/chat-ui/hooks/use-chat-timeline-actions.ts:452maps GalleryIllustratetoretryAgents(activeChatId, ["illustrator"]).src/features/runtime/generation/hooks/use-generate.ts:1366callsretryGenerationAgents(...)and then only applies agent result effects.src/engine/generation/start-generation.ts:1378/1498rerun agents throughrunGenerationAgentsForTarget(...).generateIllustrationAttachments(...)atsrc/engine/generation/start-generation.ts:1701, but the retry path does not.applyAgentResultEffects(...)only adds the Illustrator thought bubble forshouldGenerate: true; it does not generate images or emitillustration_error.Related closed issues checked:
retryGenerationAgents/generateIllustrationAttachmentsgap found no open matching issue.Regression notes
Unknown. This was found during the Roleplay mode audit on the refactor branch.
Additional context
The normal generation path already has the correct behavior in
generateIllustrationAttachments(...): it converts successful Illustratorimage_promptresults into image generation attempts and emitsillustration_errorwhen no image connection is configured. The manual retry path should reuse that contract or a shared lower-layer helper instead of only applying generic agent result effects.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@Romuromylus commented on GitHub (May 30, 2026):
Fixed by #1646, merged into
refactor.