[PR #3629] [MERGED] Simplify Game storyboard prompts and preserve persona appearance #6023

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

📋 Pull Request Information

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

Base: staging ← Head: agent/fix-game-storyboard-prompts-3628


📝 Commits (2)

  • 2ac2f28 fix(game): simplify storyboard illustration prompts
  • 22cacba fix(game): apply storyboard review feedback

📊 Changes

12 files changed (+535 additions, -88 deletions)

View changed files

📝 docs/game/storyboard.md (+4 -5)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+13 -13)
📝 packages/client/src/lib/game-setup-share.ts (+0 -1)
📝 packages/server/src/routes/game.routes.ts (+166 -30)
📝 packages/server/src/routes/generate/illustrator-references.ts (+7 -5)
📝 packages/server/src/services/game/game-asset-generation.ts (+83 -20)
📝 packages/server/src/services/prompt-overrides/registry/game-assets.ts (+12 -6)
📝 packages/shared/src/constants/game-storyboard-image-prompts.ts (+3 -0)
📝 packages/shared/src/types/chat.ts (+3 -3)
📝 packages/shared/src/types/game.ts (+0 -2)
📝 scripts/regressions/open-issues.regression.ts (+0 -1)
📝 scripts/regressions/prompt.regression.ts (+244 -2)

📄 Description

Linked issue

Closes #3628

Why this change

  • Game narration commonly refers to the active persona as you, so literal name matching could omit persona appearance from the storyboard planner even when the planner depicted that persona.
  • Storyboard provider prompts mixed editable templates with hardcoded wrapper sentences and overlapping direct/template settings, making prompt review and customization difficult to reason about.

What changed

  • Always provide the exact active persona's appearance to the Game storyboard planner while continuing to let completed GM narration determine visibility.
  • Keep planner appearance grounding independent from the final Attach Card Appearance and Send Avatar References settings.
  • Replace the redundant direct-prompt setting with one default-on Use Storyboard Template control under Storyboards.
  • Make direct mode send the planned scene plus independently enabled appearance notes and image instructions, while leaving global style compilation and references independent.
  • Extract the final visibility rule into the editable ${finalVisibilityRuleLine} storyboard image-template variable.
  • Keep ordinary non-storyboard Game illustrations outside the storyboard-template toggle.
  • Update storyboard documentation and prompt regressions for template/direct behavior, persona grounding, references, and legacy-setting removal.

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

Automated validation run by the implementation agent:

  • pnpm regression:prompt — passed after rebasing onto current origin/staging
  • pnpm check — passed after rebasing onto current origin/staging
  • git diff --check origin/staging...HEAD — passed

Manual verification notes

  • Manually verify Use Storyboard Template appears under Storyboards, defaults on, and the old direct-prompt control is absent.
  • Manually compare Gallery → Copy Prompt with template mode on and off.
  • Manually verify second-person GM narration supplies the active persona's appearance to the planner.
  • Manually verify card appearance text and avatar references remain independently controlled.
  • Manually verify an ordinary non-storyboard Game illustration is unaffected.

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)

Updated docs/game/storyboard.md. No version or release metadata changes are included.

UI evidence (if applicable)

TODO: add a screenshot of the Storyboards settings card showing Use Storyboard Template beside the final-generation prompt controls.

Summary by CodeRabbit

  • New Features

    • Added a Use Storyboard Template setting for Game Mode storyboard generation.
    • Improved illustration and storyboard prompts with character appearance context to help maintain visual consistency.
    • Added final visibility guidance to scene and storyboard image prompts.
  • Documentation

    • Updated the Storyboard Engine Guide with revised NovelAI setup and prompt-template instructions.
  • Bug Fixes

    • Improved handling and truncation of appearance descriptions without cutting words.

🔄 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/3629 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/15/2026 **Status:** ✅ Merged **Merged:** 7/15/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/fix-game-storyboard-prompts-3628` --- ### 📝 Commits (2) - [`2ac2f28`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2ac2f2800a49252c00821ce74cbf68c593ad2678) fix(game): simplify storyboard illustration prompts - [`22cacba`](https://github.com/Pasta-Devs/Marinara-Engine/commit/22cacbaa502fab36a2b56fbff66f86663c9e95de) fix(game): apply storyboard review feedback ### 📊 Changes **12 files changed** (+535 additions, -88 deletions) <details> <summary>View changed files</summary> 📝 `docs/game/storyboard.md` (+4 -5) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+13 -13) 📝 `packages/client/src/lib/game-setup-share.ts` (+0 -1) 📝 `packages/server/src/routes/game.routes.ts` (+166 -30) 📝 `packages/server/src/routes/generate/illustrator-references.ts` (+7 -5) 📝 `packages/server/src/services/game/game-asset-generation.ts` (+83 -20) 📝 `packages/server/src/services/prompt-overrides/registry/game-assets.ts` (+12 -6) 📝 `packages/shared/src/constants/game-storyboard-image-prompts.ts` (+3 -0) 📝 `packages/shared/src/types/chat.ts` (+3 -3) 📝 `packages/shared/src/types/game.ts` (+0 -2) 📝 `scripts/regressions/open-issues.regression.ts` (+0 -1) 📝 `scripts/regressions/prompt.regression.ts` (+244 -2) </details> ### 📄 Description ## Linked issue Closes #3628 ## Why this change - Game narration commonly refers to the active persona as `you`, so literal name matching could omit persona appearance from the storyboard planner even when the planner depicted that persona. - Storyboard provider prompts mixed editable templates with hardcoded wrapper sentences and overlapping direct/template settings, making prompt review and customization difficult to reason about. ## What changed - Always provide the exact active persona's appearance to the Game storyboard planner while continuing to let completed GM narration determine visibility. - Keep planner appearance grounding independent from the final **Attach Card Appearance** and **Send Avatar References** settings. - Replace the redundant direct-prompt setting with one default-on **Use Storyboard Template** control under **Storyboards**. - Make direct mode send the planned scene plus independently enabled appearance notes and image instructions, while leaving global style compilation and references independent. - Extract the final visibility rule into the editable `${finalVisibilityRuleLine}` storyboard image-template variable. - Keep ordinary non-storyboard Game illustrations outside the storyboard-template toggle. - Update storyboard documentation and prompt regressions for template/direct behavior, persona grounding, references, and legacy-setting removal. ## 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` Automated validation run by the implementation agent: - `pnpm regression:prompt` — passed after rebasing onto current `origin/staging` - `pnpm check` — passed after rebasing onto current `origin/staging` - `git diff --check origin/staging...HEAD` — passed ### Manual verification notes - [x] Manually verify **Use Storyboard Template** appears under **Storyboards**, defaults on, and the old direct-prompt control is absent. - [x] Manually compare Gallery → Copy Prompt with template mode on and off. - [x] Manually verify second-person GM narration supplies the active persona's appearance to the planner. - [x] Manually verify card appearance text and avatar references remain independently controlled. - [x] Manually verify an ordinary non-storyboard Game illustration is unaffected. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) Updated `docs/game/storyboard.md`. No version or release metadata changes are included. ## UI evidence (if applicable) TODO: add a screenshot of the **Storyboards** settings card showing **Use Storyboard Template** beside the final-generation prompt controls. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a **Use Storyboard Template** setting for Game Mode storyboard generation. * Improved illustration and storyboard prompts with character appearance context to help maintain visual consistency. * Added final visibility guidance to scene and storyboard image prompts. * **Documentation** * Updated the Storyboard Engine Guide with revised NovelAI setup and prompt-template instructions. * **Bug Fixes** * Improved handling and truncation of appearance descriptions without cutting words. <!-- 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:06:19 +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#6023
No description provided.