[GH-ISSUE #7794] [Issue]: manual Character Tracker portraits skip 'Expose media prompts before sending' #4302

Closed
opened 2026-10-21 06:14:31 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @ylli-selmani on GitHub (Oct 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7794

Originally assigned to: @ylli-selmani on GitHub.

Summary

With Settings → Generations → Image Generation → "Expose media prompts before sending" enabled, generating a Character Tracker NPC portrait sends the compiled prompt straight to the provider. Every other manual action the setting promises (avatars, selfies, sprites, Game images, videos) shows the review dialog first; "portraits" is in the tooltip, so this is the one manual path inside the promise that skips it.

Expected behavior

With the toggle on, clicking Generate portrait in the Character Tracker shows the compiled prompt (editable, positive and negative) before anything is sent. Confirming generates with the edited prompt; cancelling sends nothing and leaves the existing portrait alone.

Automatic generations are not in scope: the tooltip says "Automatic generations don't stop to ask", so the after-turn NPC avatar and auto-generated portraits keep generating immediately.

Actual behavior

POST /api/avatars/npc/:chatId/generate builds the prompt and calls generateTrackerPortrait, which compiles and generates in one step. There is no preview mode and no prompt override, so the dialog can never appear.

Steps to reproduce

  1. Enable "Expose media prompts before sending".
  2. Open a Roleplay chat with the Character Tracker visible and an image connection configured.
  3. Click Generate portrait on a tracked character.
  4. No review dialog appears; the image is generated and saved immediately.

Environment

  • Branch: staging @ df2fe4fe0
  • Affects every install; independent of provider or model.

Notes

The fix reuses the existing pattern (preview request → review dialog → re-post with the edited prompt) rather than adding a new mechanism, so it matches the selfie, sprite and avatar routes.

Originally created by @ylli-selmani on GitHub (Oct 18, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7794 Originally assigned to: @ylli-selmani on GitHub. ## Summary With **Settings → Generations → Image Generation → "Expose media prompts before sending"** enabled, generating a Character Tracker NPC portrait sends the compiled prompt straight to the provider. Every other manual action the setting promises (avatars, selfies, sprites, Game images, videos) shows the review dialog first; "portraits" is in the tooltip, so this is the one manual path inside the promise that skips it. ## Expected behavior With the toggle on, clicking **Generate portrait** in the Character Tracker shows the compiled prompt (editable, positive and negative) before anything is sent. Confirming generates with the edited prompt; cancelling sends nothing and leaves the existing portrait alone. Automatic generations are **not** in scope: the tooltip says "Automatic generations don't stop to ask", so the after-turn NPC avatar and auto-generated portraits keep generating immediately. ## Actual behavior `POST /api/avatars/npc/:chatId/generate` builds the prompt and calls `generateTrackerPortrait`, which compiles and generates in one step. There is no preview mode and no prompt override, so the dialog can never appear. ## Steps to reproduce 1. Enable "Expose media prompts before sending". 2. Open a Roleplay chat with the Character Tracker visible and an image connection configured. 3. Click **Generate portrait** on a tracked character. 4. No review dialog appears; the image is generated and saved immediately. ## Environment - Branch: `staging` @ `df2fe4fe0` - Affects every install; independent of provider or model. ## Notes The fix reuses the existing pattern (preview request → review dialog → re-post with the edited prompt) rather than adding a new mechanism, so it matches the selfie, sprite and avatar routes.
bsakaguchi 2026-10-21 06:14:31 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ylli-selmani commented on GitHub (Oct 18, 2026):

i totally missed the helptext

<!-- gh-comment-id:6255670486 --> @ylli-selmani commented on GitHub (Oct 18, 2026): i totally missed the helptext
Author
Owner

@ylli-selmani commented on GitHub (Oct 18, 2026):

Scope correction: my first version of this issue treated automatic generations as a bug. They aren't.

The setting's own help text says "Shows you the final prompt before an image or video you asked for is made … Automatic generations don't stop to ask", and the closed reports (#3543, #5379) consistently describe the guarantee as covering manual actions only. So the in-turn Illustrator, the [illustrate: …] command, automatic backgrounds, combat assets and auto storyboard frames are exempt by design, not broken — I've narrowed the issue to the manual Character Tracker portrait, which the tooltip explicitly promises ("portraits") and which does skip the dialog.

Work in progress on fix/media-prompt-review-coverage: POST /api/avatars/npc/:chatId/generate gains a previewOnly mode that compiles the prompt and returns it without contacting the provider, and accepts the edited prompt back — the same two-phase flow the selfie, sprite and avatar routes already use.

<!-- gh-comment-id:6255734308 --> @ylli-selmani commented on GitHub (Oct 18, 2026): Scope correction: my first version of this issue treated automatic generations as a bug. They aren't. The setting's own help text says "Shows you the final prompt before an image or video **you asked for** is made … **Automatic generations don't stop to ask**", and the closed reports (#3543, #5379) consistently describe the guarantee as covering *manual* actions only. So the in-turn Illustrator, the `[illustrate: …]` command, automatic backgrounds, combat assets and auto storyboard frames are exempt by design, not broken — I've narrowed the issue to the manual Character Tracker portrait, which the tooltip explicitly promises ("portraits") and which does skip the dialog. Work in progress on `fix/media-prompt-review-coverage`: `POST /api/avatars/npc/:chatId/generate` gains a `previewOnly` mode that compiles the prompt and returns it without contacting the provider, and accepts the edited prompt back — the same two-phase flow the selfie, sprite and avatar routes already use.
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#4302
No description provided.