mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #676] [Bug]: Slurp image prompt review bypasses appearance and style composition #351
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#351
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 @Gunterlie on GitHub (Sep 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/676
Summary
When Review image prompts before sending is enabled, character appearance and art style can never reach the image provider. This is independent of the leak-guard problem in #675: even if that guard is fixed, this path still loses both.
Root cause
The review flow generates the image twice, and the enrichment step is skipped on both passes for different reasons.
Pass 1 — building the preview shown in the modal.
slurp-generation.service.ts:647-653:imageInputcarries nopromptOverride, so the rewrite does run — and is then subject to the guard in #675. When the guard fires, the prompt displayed in the review modal is the bare draft, with no appearance and no style. This is what users are looking at when they report the modal contents are wrong.Pass 2 — generating after the user approves. The approved text comes back as
promptOverride, and the rewrite is then skipped outright.slurp-images.service.ts:206-218:With
rewrittenPromptnull,selectNoodleImageProviderPromptreturnsrawProviderPrompt, which is the override — the same styleless text the user was shown.characterContextandstyleGuidancewere both computed and are then discarded unused.Same shape in
slurp-public-images.service.ts:227, which is the guided-generation-from-a-creator-profile path.Net effect
Appearance and art style are stripped when building the preview, and there is no second chance to reapply them after approval. Turning Review image prompts before sending on silently disables Include descriptions and all style profiles.
Note on intent
Skipping the rewrite when the user has hand-edited a prompt is defensible — a rewrite would undo their edits. The defect is that the style profile and appearance are treated as part of the rewrite rather than as prompt composition. In the non-review path they arrive via
compiledPrompt.prompt; in the review pathrawFinalPromptreplaces the compiled prompt wholesale:slurp-images.service.ts:187Suggested fix
Compose the style profile onto the approved override instead of discarding it — run the override back through
compileImagePromptso the profile prefix and negative prompt are reapplied, while leaving the user's own wording untouched. Appearance should be resolved into the preview prompt before it is shown, so the user reviews what will actually be sent.Repro
@Gunterlie commented on GitHub (Sep 1, 2026):
Related.
The modal described here also renders its own text as raw localization keys — see #677.
ImagePromptReviewModallives incomponents/ui/in the Engine and is bundled by both Noodle and Slurp, so that half of the problem is shared with Noodle, while the prompt-composition defect described in this issue is in the Slurp services.Worth fixing #677 first: it is a catalog fix, and it makes this issue's symptom directly observable in the modal instead of being inferred from the generated image.
@Gunterlie commented on GitHub (Sep 1, 2026):
Fix opened as draft #683.