[PR #5045] [MERGED] fix(storyboard): preserve complete animation prompts #6601

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

📋 Pull Request Information

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

Base: staging ← Head: fix/5041-storyboard-prompt-limits


📝 Commits (3)

  • 8e2f886 fix(storyboard): preserve complete animation prompts
  • 4179bd3 Merge remote-tracking branch 'origin/staging' into fix/5041-storyboard-prompt-limits
  • 1984188 Merge remote-tracking branch 'origin/staging' into fix/5041-storyboard-prompt-limits

📊 Changes

4 files changed (+48 additions, -14 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/server/src/routes/game.routes.ts (+5 -3)
📝 packages/server/src/services/video/storyboard-animation-refinement.ts (+6 -6)
📝 scripts/regressions/prompt.regression.ts (+36 -5)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #5041

Why this change

  • Full Storyboard animation prompts were passed through generic 1,200- and 650-character summary clamps. Valid visual, motion, and audio direction could therefore disappear silently before video generation.

What changed

  • Add one dedicated 6,000-character boundary for complete Storyboard animation prompts.
  • Use it during plan sanitation, image-aware refinement, and final video prompt assembly.
  • Preserve the existing concise limits for fallback storyboards and ordinary summary-based animation paths.
  • Extend prompt regressions with a structured prompt longer than 1,200 characters and verify its ending audio direction reaches persistence and generation.
  • Add the user-facing fix to the Unreleased changelog.

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

  • pnpm regression:prompt passed, including the new long structured Storyboard prompt case.
  • git diff --check passed.
  • Provider-backed manual generation remains pending while this PR is in draft.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] <paths> follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

Risk proof

  • Core claim: complete Storyboard animation prompts within 6,000 characters survive planning, refinement, persistence, and provider handoff.
  • Risk type: prompt assembly and provider request shaping.
  • Entrypoints touched: Storyboard plan sanitation, image-aware refinement parsing, Storyboard video prompt assembly.
  • Positive row: a structured prompt over 1,200 characters retains its final AUDIO_END field through persistence and generation.
  • Negative control: ordinary non-Storyboard narration-summary limits remain unchanged and continue to clip concise paths.
  • Manual blocker: no live paid video-provider request was sent.

Summary by CodeRabbit

  • Bug Fixes
    • Preserved complete storyboard animation prompts throughout planning, refinement, and video generation.
    • Prevented generic narration limits from truncating detailed animation instructions.
    • Ensured long, structured animation prompts remain intact when saved and passed to video creation.
  • Documentation
    • Added an Unreleased changelog entry describing the improved preservation of storyboard animation prompts.

🔄 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/5045 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/15/2026 **Status:** ✅ Merged **Merged:** 8/15/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/5041-storyboard-prompt-limits` --- ### 📝 Commits (3) - [`8e2f886`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8e2f8867117ebf4fe82ddf840bc49efe5227c0f9) fix(storyboard): preserve complete animation prompts - [`4179bd3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4179bd31567ab8b88ca1ef4ee99e0a6d89af80d3) Merge remote-tracking branch 'origin/staging' into fix/5041-storyboard-prompt-limits - [`1984188`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1984188f9201b1519ed6efa5a33486e85a3534f9) Merge remote-tracking branch 'origin/staging' into fix/5041-storyboard-prompt-limits ### 📊 Changes **4 files changed** (+48 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/server/src/routes/game.routes.ts` (+5 -3) 📝 `packages/server/src/services/video/storyboard-animation-refinement.ts` (+6 -6) 📝 `scripts/regressions/prompt.regression.ts` (+36 -5) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #5041 ## Why this change - Full Storyboard animation prompts were passed through generic 1,200- and 650-character summary clamps. Valid visual, motion, and audio direction could therefore disappear silently before video generation. ## What changed - Add one dedicated 6,000-character boundary for complete Storyboard animation prompts. - Use it during plan sanitation, image-aware refinement, and final video prompt assembly. - Preserve the existing concise limits for fallback storyboards and ordinary summary-based animation paths. - Extend prompt regressions with a structured prompt longer than 1,200 characters and verify its ending audio direction reaches persistence and generation. - Add the user-facing fix to the Unreleased changelog. ## 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 - `pnpm regression:prompt` passed, including the new long structured Storyboard prompt case. - `git diff --check` passed. - Provider-backed manual generation remains pending while this PR is in draft. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n] <paths>` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) ## Risk proof - Core claim: complete Storyboard animation prompts within 6,000 characters survive planning, refinement, persistence, and provider handoff. - Risk type: prompt assembly and provider request shaping. - Entrypoints touched: Storyboard plan sanitation, image-aware refinement parsing, Storyboard video prompt assembly. - Positive row: a structured prompt over 1,200 characters retains its final `AUDIO_END` field through persistence and generation. - Negative control: ordinary non-Storyboard narration-summary limits remain unchanged and continue to clip concise paths. - Manual blocker: no live paid video-provider request was sent. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Preserved complete storyboard animation prompts throughout planning, refinement, and video generation. * Prevented generic narration limits from truncating detailed animation instructions. * Ensured long, structured animation prompts remain intact when saved and passed to video creation. * **Documentation** * Added an Unreleased changelog entry describing the improved preservation of storyboard animation prompts. <!-- 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:11:58 +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#6601
No description provided.