[PR #3129] [MERGED] Summarize Game illustration narration #5812

Closed
opened 2026-10-22 04:19:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3129
Author: @thetopham
Created: 7/2/2026
Status: ✅ Merged
Merged: 7/2/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feature/game-illustration-narration-summarizer


📝 Commits (2)

  • 0604202 Increase Game illustration prompt limits
  • abac143 Summarize Game illustration narration

📊 Changes

5 files changed (+322 additions, -24 deletions)

View changed files

📝 packages/client/src/components/game/GameSurface.tsx (+17 -5)
📝 packages/server/src/routes/game.routes.ts (+298 -15)
📝 packages/server/src/routes/sidecar.routes.ts (+1 -1)
📝 packages/server/src/services/game/game-asset-generation.ts (+5 -2)
📝 packages/server/src/services/sidecar/scene-analyzer.ts (+1 -1)

📄 Description

Linked issue

Closes #3132
Closes #3133
Closes #3134

Why this change

  • Game Mode scene illustrations can be generated from shortened prompt fragments instead of the completed assistant turn, so generated images can miss the actual scene that just happened.
  • Raw full-turn narration is often too conversational to send directly as an image prompt without visual distillation.
  • Gallery metadata can show the raw request instead of the final compiled provider prompt, which makes generated images harder to audit or reproduce.

What changed

  • Sends full cleaned turn narration for automatic rare illustrations, manual Illustrate scene requests, and boss/combat splash illustrations.
  • Adds a fail-open narration summarizer that turns the completed turn into one visual prompt covering characters, pose, expression, lighting, setting, mood, and player POV.
  • Keeps prompt-review IDs based on the original request so manual prompt overrides continue to match after summarization.
  • Captures the compiled scene-illustration provider prompt and saves that in gallery metadata instead of only reason plus raw request prompt.
  • This should be reviewed after #3128 because the branch includes the prompt-limit prerequisite changes until #3128 lands.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Ran pnpm.cmd --filter @marinara-engine/server lint.
  • Ran pnpm.cmd --filter @marinara-engine/client build.
  • pnpm check, container build, live Game Mode illustration generation, and browser gallery verification were not run in this environment.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No version-bearing files are touched.

UI evidence (if applicable)

No screenshots captured. This changes the Game Mode illustration prompt pipeline and gallery metadata, not visible layout.

Scope / follow-ups

  • The summarizer prompt is currently code-defined. Follow-up product work should add a UI/settings toggle plus an editable summarizer prompt/template and possibly model or connection routing if maintainers want that control exposed.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/3129 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/2/2026 **Status:** ✅ Merged **Merged:** 7/2/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feature/game-illustration-narration-summarizer` --- ### 📝 Commits (2) - [`0604202`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0604202adf3acf6917bfbb57d55d438a818b5e6f) Increase Game illustration prompt limits - [`abac143`](https://github.com/Pasta-Devs/Marinara-Engine/commit/abac1437c4a762eebe1e3644eba18c3ac129a492) Summarize Game illustration narration ### 📊 Changes **5 files changed** (+322 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/game/GameSurface.tsx` (+17 -5) 📝 `packages/server/src/routes/game.routes.ts` (+298 -15) 📝 `packages/server/src/routes/sidecar.routes.ts` (+1 -1) 📝 `packages/server/src/services/game/game-asset-generation.ts` (+5 -2) 📝 `packages/server/src/services/sidecar/scene-analyzer.ts` (+1 -1) </details> ### 📄 Description ## Linked issue Closes #3132 Closes #3133 Closes #3134 ## Why this change - Game Mode scene illustrations can be generated from shortened prompt fragments instead of the completed assistant turn, so generated images can miss the actual scene that just happened. - Raw full-turn narration is often too conversational to send directly as an image prompt without visual distillation. - Gallery metadata can show the raw request instead of the final compiled provider prompt, which makes generated images harder to audit or reproduce. ## What changed - Sends full cleaned turn narration for automatic rare illustrations, manual Illustrate scene requests, and boss/combat splash illustrations. - Adds a fail-open narration summarizer that turns the completed turn into one visual prompt covering characters, pose, expression, lighting, setting, mood, and player POV. - Keeps prompt-review IDs based on the original request so manual prompt overrides continue to match after summarization. - Captures the compiled scene-illustration provider prompt and saves that in gallery metadata instead of only reason plus raw request prompt. - This should be reviewed after #3128 because the branch includes the prompt-limit prerequisite changes until #3128 lands. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Ran `pnpm.cmd --filter @marinara-engine/server lint`. - Ran `pnpm.cmd --filter @marinara-engine/client build`. - `pnpm check`, container build, live Game Mode illustration generation, and browser gallery verification were not run in this environment. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No version-bearing files are touched. ## UI evidence (if applicable) No screenshots captured. This changes the Game Mode illustration prompt pipeline and gallery metadata, not visible layout. ## Scope / follow-ups - The summarizer prompt is currently code-defined. Follow-up product work should add a UI/settings toggle plus an editable summarizer prompt/template and possibly model or connection routing if maintainers want that control exposed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:19:44 +07:00
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#5812
No description provided.