[GH-ISSUE #1109] [Feature]: Add UI for game-mode image prompt templates #550

Closed
opened 2026-10-20 17:30:04 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Users can enable Game mode image prompt review and edit an individual generated prompt before sending, but there is no obvious UI for configuring the reusable prompt templates that build those prompts.

This has caused confusion for users trying to understand whether game-mode image prompts are assembled by an agent, concatenated from setup fields, or sent directly to providers such as NovelAI. In one Discord report, a user noticed NPC portrait and background prompts combining scene/NPC descriptions, art style text, SD-style positive tags, and "Avoid..." instruction text in the visible prompt preview, and could not find where that template could be changed.

Proposed solution

Add a small QoL settings surface for game-mode image prompt templates, reusing the existing prompt override keys:

  • game.npcPortrait
  • game.background
  • game.sceneIllustration

The UI should let users view/edit the template text, see the available variables, preview the rendered output, enable/disable the override, and reset to the default template.

This first slice should stay limited to exposing the existing template override mechanism. Provider-specific positive/negative prompt splitting can be handled separately if needed.

Alternatives considered

  • Keep relying on "Expose image prompts before sending": useful for one-off edits, but it does not help users configure the recurring template.
  • Document the existing behavior only: helpful, but users still cannot change the template without hidden API/database knowledge.
  • Add provider-specific positive/negative prompt templates now: likely useful for NovelAI and Stable Diffusion users, but larger than the requested QoL improvement.

Additional context

Source: Discord report from Azrael on May 22, 2026.

Observed confusion:

  • Game-mode NPC portrait/background prompt previews appear to be assembled from game setup fields, scene/NPC descriptions, style text, and hardcoded guidance.
  • The user could not find a configuration surface for the prompt structure.
  • They tried scene image instructions, extra prompt text, and lorebook entries, but those did not change the reusable structure.

Current code already has server-side prompt override keys for the relevant game asset prompts, but there does not appear to be a visible client UI for managing them.

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 @cha1latte on GitHub (May 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1109 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Users can enable Game mode image prompt review and edit an individual generated prompt before sending, but there is no obvious UI for configuring the reusable prompt templates that build those prompts. This has caused confusion for users trying to understand whether game-mode image prompts are assembled by an agent, concatenated from setup fields, or sent directly to providers such as NovelAI. In one Discord report, a user noticed NPC portrait and background prompts combining scene/NPC descriptions, art style text, SD-style positive tags, and "Avoid..." instruction text in the visible prompt preview, and could not find where that template could be changed. ## Proposed solution Add a small QoL settings surface for game-mode image prompt templates, reusing the existing prompt override keys: - `game.npcPortrait` - `game.background` - `game.sceneIllustration` The UI should let users view/edit the template text, see the available variables, preview the rendered output, enable/disable the override, and reset to the default template. This first slice should stay limited to exposing the existing template override mechanism. Provider-specific positive/negative prompt splitting can be handled separately if needed. ## Alternatives considered - Keep relying on "Expose image prompts before sending": useful for one-off edits, but it does not help users configure the recurring template. - Document the existing behavior only: helpful, but users still cannot change the template without hidden API/database knowledge. - Add provider-specific positive/negative prompt templates now: likely useful for NovelAI and Stable Diffusion users, but larger than the requested QoL improvement. ## Additional context Source: Discord report from Azrael on May 22, 2026. Observed confusion: - Game-mode NPC portrait/background prompt previews appear to be assembled from game setup fields, scene/NPC descriptions, style text, and hardcoded guidance. - The user could not find a configuration surface for the prompt structure. - They tried scene image instructions, extra prompt text, and lorebook entries, but those did not change the reusable structure. Current code already has server-side prompt override keys for the relevant game asset prompts, but there does not appear to be a visible client UI for managing them. ## 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.
Author
Owner

@cha1latte commented on GitHub (May 22, 2026):

Triage note: labeling this as normal-scope because it is a focused QoL enhancement that exposes existing game image prompt template override behavior instead of introducing a new image generation architecture.

The least risky next step is to add a small settings UI for the existing game prompt override keys and leave provider-specific positive/negative prompt splitting for a separate issue if needed.

<!-- gh-comment-id:4522935561 --> @cha1latte commented on GitHub (May 22, 2026): Triage note: labeling this as `normal-scope` because it is a focused QoL enhancement that exposes existing game image prompt template override behavior instead of introducing a new image generation architecture. The least risky next step is to add a small settings UI for the existing game prompt override keys and leave provider-specific positive/negative prompt splitting for a separate issue if needed.
Author
Owner

@SpicyMarinara commented on GitHub (May 23, 2026):

Implemented in the local staging worktree.

Summary:

  • Added a dedicated General Settings panel for Game image prompt templates covering NPC portraits, backgrounds, and scene illustrations.
  • Scoped the prompt override editor to those existing game keys, with variable insertion, enable/disable, reset, and rendered example preview support.
  • Updated CHANGELOG.md.

Validation:

  • pnpm --filter @marinara-engine/client lint
<!-- gh-comment-id:4524923546 --> @SpicyMarinara commented on GitHub (May 23, 2026): Implemented in the local staging worktree. Summary: - Added a dedicated General Settings panel for Game image prompt templates covering NPC portraits, backgrounds, and scene illustrations. - Scoped the prompt override editor to those existing game keys, with variable insertion, enable/disable, reset, and rendered example preview support. - Updated CHANGELOG.md. Validation: - pnpm --filter @marinara-engine/client lint
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#550
No description provided.