[PR #4591] [MERGED] fix(storyboard): preserve fallback warnings and appearance intent #6437

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

📋 Pull Request Information

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

Base: staging ← Head: fix/4544-storyboard-fallback-appearance


📝 Commits (1)

  • f6bd4c4 fix(storyboard): preserve fallback warnings and appearance intent

📊 Changes

8 files changed (+205 additions, -31 deletions)

View changed files

📝 packages/client/src/components/chat/RoleplayStoryboardMessageMedia.tsx (+16 -1)
📝 packages/client/src/components/game/GameStoryboardViewer.tsx (+17 -4)
📝 packages/client/src/components/game/GameSurface.tsx (+32 -11)
📝 packages/client/src/hooks/use-game-storyboards.ts (+7 -1)
📝 packages/client/src/localization/locales/en.json (+1 -0)
📝 packages/server/src/routes/game.routes.ts (+34 -11)
➕ packages/server/src/services/game/storyboard-planner-fallback.ts (+60 -0)
📝 scripts/regressions/prompt.regression.ts (+38 -3)

📄 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 #4544

Why this change

  • Storyboard planner failures could be hidden after prompt review, while appearance injection ignored the user-facing toggle or duplicated character details across planning and rendering.
  • Fallback keyframe narration was limited to 900 characters, reducing useful scene context for degraded renders.

What changed

  • Preserve planner failure and fallback provenance through preview, final submission, saved storyboard metadata, warning toasts, and persistent Game/Roleplay viewer warnings.
  • Make Attach Card Appearance authoritative and inject appearance once: through a successful planner, or during fallback rendering.
  • Increase fallback narration beats to 2,000 characters with word-boundary truncation while retaining downstream provider prompt limits.
  • Add deterministic regression coverage for fallback envelopes, truncation, warning propagation, and appearance-path behavior.

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: pnpm regression:prompt
  • Automated: pnpm check
  • Manually verify planner success/fallback with prompt review on and off, and Attach Card Appearance on and off.
  • Manually verify warning bands and warning toasts in Game and Roleplay Storyboard surfaces on desktop and mobile.

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] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • Pending exact local review deployment and browser verification.

Summary by CodeRabbit

  • New Features

    • Added clearer storyboard warning banners and localized messages for degraded or failed results.
    • Added warning notifications for planner issues during manual and automatic storyboard generation.
    • Storyboard previews now provide plan details, fallback status, and planner warnings.
  • Bug Fixes

    • Improved fallback storyboard handling and readability.
    • Prevented video generation when storyboard planning falls back after an error.
    • Avoided displaying raw errors as storyboard descriptions.

🔄 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/4591 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 8/4/2026 **Status:** ✅ Merged **Merged:** 8/4/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/4544-storyboard-fallback-appearance` --- ### 📝 Commits (1) - [`f6bd4c4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f6bd4c4680ffbd84584e8dd1bc30236d9c170e71) fix(storyboard): preserve fallback warnings and appearance intent ### 📊 Changes **8 files changed** (+205 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/RoleplayStoryboardMessageMedia.tsx` (+16 -1) 📝 `packages/client/src/components/game/GameStoryboardViewer.tsx` (+17 -4) 📝 `packages/client/src/components/game/GameSurface.tsx` (+32 -11) 📝 `packages/client/src/hooks/use-game-storyboards.ts` (+7 -1) 📝 `packages/client/src/localization/locales/en.json` (+1 -0) 📝 `packages/server/src/routes/game.routes.ts` (+34 -11) ➕ `packages/server/src/services/game/storyboard-planner-fallback.ts` (+60 -0) 📝 `scripts/regressions/prompt.regression.ts` (+38 -3) </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 #4544 ## Why this change - Storyboard planner failures could be hidden after prompt review, while appearance injection ignored the user-facing toggle or duplicated character details across planning and rendering. - Fallback keyframe narration was limited to 900 characters, reducing useful scene context for degraded renders. ## What changed - Preserve planner failure and fallback provenance through preview, final submission, saved storyboard metadata, warning toasts, and persistent Game/Roleplay viewer warnings. - Make **Attach Card Appearance** authoritative and inject appearance once: through a successful planner, or during fallback rendering. - Increase fallback narration beats to 2,000 characters with word-boundary truncation while retaining downstream provider prompt limits. - Add deterministic regression coverage for fallback envelopes, truncation, warning propagation, and appearance-path behavior. ## Validation - [x] `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: `pnpm regression:prompt` - Automated: `pnpm check` - Manually verify planner success/fallback with prompt review on and off, and **Attach Card Appearance** on and off. - Manually verify warning bands and warning toasts in Game and Roleplay Storyboard surfaces on desktop and mobile. ## Docs and release impact - [x] 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]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - Pending exact local review deployment and browser verification. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added clearer storyboard warning banners and localized messages for degraded or failed results. * Added warning notifications for planner issues during manual and automatic storyboard generation. * Storyboard previews now provide plan details, fallback status, and planner warnings. * **Bug Fixes** * Improved fallback storyboard handling and readability. * Prevented video generation when storyboard planning falls back after an error. * Avoided displaying raw errors as storyboard descriptions. <!-- 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:10:25 +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#6437
No description provided.