[GH-ISSUE #4300] [Issue]: Game backgrounds omit the latest turn from Dynamic LLM Prompt generation #2327

Closed
opened 2026-10-21 05:47:18 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Jul 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4300

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Game Mode background generation does not give the Dynamic LLM Prompt director the completed GM turn. This affects backgrounds requested by scene analysis and by the Background button in Gallery.

Expected behavior

When Dynamic LLM Prompt Generation for GM Mode Assets is enabled, every generated Game background should run the prompt model with the latest visible GM turn as first-class scene context before sending the resulting prompt to the image provider.

Actual behavior

The shared prompt director receives setup/state fields and a deterministic draft prompt assembled from predefined information. Scene-analysis backgrounds may contribute only an unresolved background tag, and manual Gallery backgrounds contribute a short assembled description, so the generated provider prompt is not authored from the completed turn.

Steps to reproduce

  1. Enable Game Illustrator and Dynamic LLM Prompt Generation for GM Mode Assets.
  2. Generate a background after a GM turn, either from scene analysis or the Gallery Background button.
  3. Inspect the prompt-model request or provider-facing image prompt and observe that the completed GM turn is absent while deterministic setup/state text is used.

Environment

  • Marinara Engine version: staging
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

No recording or logs were provided for this report. Static path inspection confirms both entry points converge on /game/generate-assets, whose dynamic prompt context does not include the latest GM message.

Additional context

Related to #4219, which routed Gallery buttons into the dynamic-aware Game endpoint but did not add the completed turn to the shared prompt-director request.

Implementation owner: @SpicyMarinara.

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 @SpicyMarinara on GitHub (Jul 30, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4300 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Game Mode background generation does not give the Dynamic LLM Prompt director the completed GM turn. This affects backgrounds requested by scene analysis and by the Background button in Gallery. ## Expected behavior When Dynamic LLM Prompt Generation for GM Mode Assets is enabled, every generated Game background should run the prompt model with the latest visible GM turn as first-class scene context before sending the resulting prompt to the image provider. ## Actual behavior The shared prompt director receives setup/state fields and a deterministic draft prompt assembled from predefined information. Scene-analysis backgrounds may contribute only an unresolved background tag, and manual Gallery backgrounds contribute a short assembled description, so the generated provider prompt is not authored from the completed turn. ## Steps to reproduce 1. Enable Game Illustrator and Dynamic LLM Prompt Generation for GM Mode Assets. 2. Generate a background after a GM turn, either from scene analysis or the Gallery Background button. 3. Inspect the prompt-model request or provider-facing image prompt and observe that the completed GM turn is absent while deterministic setup/state text is used. ## Environment - Marinara Engine version: staging - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video No recording or logs were provided for this report. Static path inspection confirms both entry points converge on `/game/generate-assets`, whose dynamic prompt context does not include the latest GM message. ## Additional context Related to #4219, which routed Gallery buttons into the dynamic-aware Game endpoint but did not add the completed turn to the shared prompt-director request. Implementation owner: @SpicyMarinara. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [x] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:47:18 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 30, 2026):

Claimed by @SpicyMarinara. Implementation is tracked in draft PR #4301 against staging.

<!-- gh-comment-id:5130658067 --> @SpicyMarinara commented on GitHub (Jul 30, 2026): Claimed by @SpicyMarinara. Implementation is tracked in draft PR #4301 against `staging`.
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#2327
No description provided.