[GH-ISSUE #1529] [Feature]: Extend registered prompt overrides to sprite and game image builders #776

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

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

Originally assigned to: @cha1latte on GitHub.

What problem does this solve?

The refactor branch now has registered prompt overrides for conversation.selfie, including the Settings editor and import normalization for the supported key. Legacy prompt override support was broader and included image-generation surfaces beyond conversation selfies.

Sprite prompt builders and Game Mode image prompt builders are still outside the registered override system. Users can review/edit some prompts per generation through transient prompt override payloads, but there is no durable Settings-level registry for sprite or game asset prompt templates.

Proposed behavior

Design and add registered prompt override support for sprite and Game Mode image builders only where the actual prompt builders consume the registered keys.

The design should cover:

  • Which sprite and game image prompt keys are officially registered.
  • How TS prompt registry code and Rust sprite prompt builders share or consume registered templates safely.
  • How Settings lists, previews, validates, saves, resets, imports, and exports the new keys.
  • How transient prompt-review overrides interact with persistent registered defaults.
  • Verification that the prompt sent to the provider actually uses the registered override.

Expected owner or impact area

  • App shell, navigation, startup, or providers
  • Catalog resources: chats, characters, personas, lorebooks, presets, connections, agents, gallery, or knowledge
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Refactor branch considerations

  • Do not add registry keys that are only displayed in Settings but ignored by the actual prompt builders.
  • Sprite prompt builders currently live in Rust under src-tauri; Game Mode image prompt builders live in TS under src/features/modes/game/api.
  • Keep engine code React-free and keep feature code on focused shared API wrappers.
  • Import/export normalization should only preserve supported registered keys.
  • Remote runtime behavior needs to be considered for sprite/image generation commands.

Alternatives considered

Leaving conversation.selfie as the only registered prompt override keeps the current implementation small, but it leaves legacy image-prompt customization parity incomplete. Relying only on transient prompt-review edits helps one generation at a time, but does not provide durable reusable defaults. Adding unconnected registry keys was rejected because it would create fake customization.

Additional context

Related prior work: issue #329 delivered the original user-editable image prompt direction, and the refactor port currently supports the conversation selfie key. This issue tracks the remaining parity/design gap for sprite and Game Mode image builders.

Template check

Please uncheck 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 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1529 Originally assigned to: @cha1latte on GitHub. ## What problem does this solve? The refactor branch now has registered prompt overrides for `conversation.selfie`, including the Settings editor and import normalization for the supported key. Legacy prompt override support was broader and included image-generation surfaces beyond conversation selfies. Sprite prompt builders and Game Mode image prompt builders are still outside the registered override system. Users can review/edit some prompts per generation through transient prompt override payloads, but there is no durable Settings-level registry for sprite or game asset prompt templates. ## Proposed behavior Design and add registered prompt override support for sprite and Game Mode image builders only where the actual prompt builders consume the registered keys. The design should cover: - Which sprite and game image prompt keys are officially registered. - How TS prompt registry code and Rust sprite prompt builders share or consume registered templates safely. - How Settings lists, previews, validates, saves, resets, imports, and exports the new keys. - How transient prompt-review overrides interact with persistent registered defaults. - Verification that the prompt sent to the provider actually uses the registered override. ## Expected owner or impact area - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources: chats, characters, personas, lorebooks, presets, connections, agents, gallery, or knowledge - [ ] Chat mode - [ ] Roleplay mode - [x] Game mode - [x] Shared mode UI - [x] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [x] React-free engine behavior, contracts, agents, or capability ports - [x] Shared API wrapper or remote runtime routing - [x] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Refactor branch considerations - Do not add registry keys that are only displayed in Settings but ignored by the actual prompt builders. - Sprite prompt builders currently live in Rust under `src-tauri`; Game Mode image prompt builders live in TS under `src/features/modes/game/api`. - Keep engine code React-free and keep feature code on focused shared API wrappers. - Import/export normalization should only preserve supported registered keys. - Remote runtime behavior needs to be considered for sprite/image generation commands. ## Alternatives considered Leaving `conversation.selfie` as the only registered prompt override keeps the current implementation small, but it leaves legacy image-prompt customization parity incomplete. Relying only on transient prompt-review edits helps one generation at a time, but does not provide durable reusable defaults. Adding unconnected registry keys was rejected because it would create fake customization. ## Additional context Related prior work: issue #329 delivered the original user-editable image prompt direction, and the refactor port currently supports the conversation selfie key. This issue tracks the remaining parity/design gap for sprite and Game Mode image builders. ## Template check Please uncheck 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 29, 2026):

Triage note: labeling this as scope-risk because it expands registered prompt override contracts beyond conversation selfies into sprite and game image builders, crossing multiple generation surfaces.

A good next step is to decide the supported override keys, then implement one image surface at a time.

<!-- gh-comment-id:4578268137 --> @cha1latte commented on GitHub (May 29, 2026): Triage note: labeling this as `scope-risk` because it expands registered prompt override contracts beyond conversation selfies into sprite and game image builders, crossing multiple generation surfaces. A good next step is to decide the supported override keys, then implement one image surface at a time.
Author
Owner

@cha1latte commented on GitHub (Jun 1, 2026):

added in #1762

<!-- gh-comment-id:4588968098 --> @cha1latte commented on GitHub (Jun 1, 2026): added in #1762
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#776
No description provided.