[PR #3390] [MERGED] Scope storyboard character references #5912

Closed
opened 2026-10-23 04:05:05 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: agent/storyboard-scoped-references


📝 Commits (6)

  • 09b705c Scope storyboard character references
  • 6fa5147 Merge branch 'staging' into agent/storyboard-scoped-references
  • 97c7068 Keep storyboard prompt template unchanged
  • bdd939d Merge branch 'staging' into agent/storyboard-scoped-references
  • a8ba390 Fix storyboard illustration character scoping
  • 4166546 Attach persona refs to storyboard illustrations

📊 Changes

2 files changed (+569 additions, -46 deletions)

View changed files

📝 packages/server/src/routes/game.routes.ts (+469 -39)
📝 packages/server/src/services/game/game-asset-generation.ts (+100 -7)

📄 Description



Linked issue

Closes #3389

Why this change

Storyboard keyframe generation could resolve character references from the full saved character library, so an off-game character with similar traits could influence a generated storyboard image. The fix scopes storyboard character references to the current game roster while keeping in-game NPC portraits available.

What changed

  • Build storyboard reference lookups from current game characters, persona, game NPCs, current/tracked NPCs, and game character cards instead of every saved character.
  • Add an allowed visible character roster to storyboard planning and sanitize planned keyframe characters against it, while still allowing newly named NPCs from the GM narration.
  • Preserve full scene prompt context for storyboard keyframes only, avoiding tagged prompt distillation on that path without changing default scene illustration behavior.
  • Leave the shared storyboard prompt templates unchanged.

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

  • Automated validation run locally: pnpm regression:prompt
  • Automated validation run locally: pnpm --filter @marinara-engine/server lint
  • Automated validation run locally: git diff --check
  • Manual browser/app verification not performed.

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 docs, release metadata, or version files were changed.

UI evidence (if applicable)

Not applicable; server prompt/reference routing change only.

Summary by CodeRabbit

  • New Features

    • Storyboard generation now better limits visible characters to those relevant to the current game context, helping keyframes stay consistent with the scene.
    • Scene illustration prompts can now preserve the full scene description for richer, more faithful image generation.
  • Bug Fixes

    • Improved filtering of storyboard characters so only appropriate named characters and NPCs appear, reducing unexpected additions in generated frames.

🔄 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/3390 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/8/2026 **Status:** ✅ Merged **Merged:** 7/8/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/storyboard-scoped-references` --- ### 📝 Commits (6) - [`09b705c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/09b705c60b11ac005fed8cef9f9defee4ba475b1) Scope storyboard character references - [`6fa5147`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6fa51479c408e98220f4a488fc1d9c94da02f141) Merge branch 'staging' into agent/storyboard-scoped-references - [`97c7068`](https://github.com/Pasta-Devs/Marinara-Engine/commit/97c7068465108fb2ec9c51e4112bbc6478b2d1c7) Keep storyboard prompt template unchanged - [`bdd939d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bdd939dd195944bd7f8fbfb3210547cc337ba4ac) Merge branch 'staging' into agent/storyboard-scoped-references - [`a8ba390`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a8ba39075cd3d3a40b756674e6641d1e5100e5f5) Fix storyboard illustration character scoping - [`4166546`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4166546334599a21a7b6255e4fe1adb0b7abcaf7) Attach persona refs to storyboard illustrations ### 📊 Changes **2 files changed** (+569 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/routes/game.routes.ts` (+469 -39) 📝 `packages/server/src/services/game/game-asset-generation.ts` (+100 -7) </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #3389 ## Why this change Storyboard keyframe generation could resolve character references from the full saved character library, so an off-game character with similar traits could influence a generated storyboard image. The fix scopes storyboard character references to the current game roster while keeping in-game NPC portraits available. ## What changed - Build storyboard reference lookups from current game characters, persona, game NPCs, current/tracked NPCs, and game character cards instead of every saved character. - Add an allowed visible character roster to storyboard planning and sanitize planned keyframe characters against it, while still allowing newly named NPCs from the GM narration. - Preserve full scene prompt context for storyboard keyframes only, avoiding tagged prompt distillation on that path without changing default scene illustration behavior. - Leave the shared storyboard prompt templates unchanged. ## Validation - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] 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 - Automated validation run locally: `pnpm regression:prompt` - Automated validation run locally: `pnpm --filter @marinara-engine/server lint` - Automated validation run locally: `git diff --check` - Manual browser/app verification not performed. ## 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 docs, release metadata, or version files were changed. ## UI evidence (if applicable) Not applicable; server prompt/reference routing change only. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Storyboard generation now better limits visible characters to those relevant to the current game context, helping keyframes stay consistent with the scene. * Scene illustration prompts can now preserve the full scene description for richer, more faithful image generation. * **Bug Fixes** * Improved filtering of storyboard characters so only appropriate named characters and NPCs appear, reducing unexpected additions in generated frames. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:05:05 +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#5912
No description provided.