[GH-ISSUE #4595] [Issue]: Storyboard fallbacks can duplicate speakers and omit appearance #2509

Closed
opened 2026-10-21 05:49:14 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @thetopham on GitHub (Aug 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4595

Originally assigned to: @thetopham on GitHub.

Summary

Storyboard fallback handling still has several follow-up gaps after #4591: empty reviewed plans are sanitized into fallback keyframes without enabling fallback safeguards, fallback dialogue can repeat speaker labels, and provider-facing prompts can omit collected character appearance when the selected formatter does not render appearanceNotesBlock. The Roleplay storyboard card can also render the same fallback error twice.

Expected behavior

  • Empty or non-renderable reviewed plans are treated as effective planner fallbacks before appearance and video decisions are made.
  • Fallback narration prefixes a structured section speaker exactly once.
  • When fallback appearance attachment is enabled and native character prompts are unavailable, the final provider prompt contains the collected appearance notes even if the selected Storyboard formatter omits that variable.
  • A degraded Storyboard error is displayed once.

Actual behavior

  • sanitizeStoryboardPlan can produce fallback frames while usedFallbackStoryboardPlanner remains false, allowing downstream appearance/video behavior to follow the non-fallback path.
  • Structured dialogue such as speaker Morgana- with content Morgana-: ... becomes Morgana-: Morgana-: ... in fallback image prompts.
  • Debug output reports no-ref+appearance, but Krea/ComfyUI provider prompts contain no appearance text when Storyboard First Frame is selected.
  • RoleplayStoryboardMessageMedia renders storyboard.error in both the degraded-result banner and the empty-media state.

Steps to reproduce

  1. Enable Storyboard character appearance and select Storyboard First Frame with a Krea/ComfyUI image connection that does not support native character prompts.
  2. Cause the Storyboard planner to fail, or submit an empty reviewed Storyboard plan.
  3. Inspect the fallback keyframe prompts and Roleplay storyboard card.

Environment

  • Marinara Engine version: 2.4.1+b0c7e95a1724
  • Install type: source
  • OS + version: Ubuntu host; exact version not captured
  • Browser or app shell: not captured

Logs, screenshots, or video

Observed debug signatures:

[debug/game/storyboard-planner] nativeCharacterPrompts=false
[debug/game/storyboard-image-assets] ... details=...no-ref+appearance
[game/storyboard] Storyboard Illustrator failed; using fallback images and skipping video generation

The subsequent provider prompt contains duplicated speaker labels and no character appearance notes.

Additional context

Follow-up includes valid review findings from #4591:

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Aug 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4595 Originally assigned to: @thetopham on GitHub. ## Summary Storyboard fallback handling still has several follow-up gaps after #4591: empty reviewed plans are sanitized into fallback keyframes without enabling fallback safeguards, fallback dialogue can repeat speaker labels, and provider-facing prompts can omit collected character appearance when the selected formatter does not render `appearanceNotesBlock`. The Roleplay storyboard card can also render the same fallback error twice. ## Expected behavior - Empty or non-renderable reviewed plans are treated as effective planner fallbacks before appearance and video decisions are made. - Fallback narration prefixes a structured section speaker exactly once. - When fallback appearance attachment is enabled and native character prompts are unavailable, the final provider prompt contains the collected appearance notes even if the selected Storyboard formatter omits that variable. - A degraded Storyboard error is displayed once. ## Actual behavior - `sanitizeStoryboardPlan` can produce fallback frames while `usedFallbackStoryboardPlanner` remains false, allowing downstream appearance/video behavior to follow the non-fallback path. - Structured dialogue such as speaker `Morgana-` with content `Morgana-: ...` becomes `Morgana-: Morgana-: ...` in fallback image prompts. - Debug output reports `no-ref+appearance`, but Krea/ComfyUI provider prompts contain no appearance text when `Storyboard First Frame` is selected. - `RoleplayStoryboardMessageMedia` renders `storyboard.error` in both the degraded-result banner and the empty-media state. ## Steps to reproduce 1. Enable Storyboard character appearance and select `Storyboard First Frame` with a Krea/ComfyUI image connection that does not support native character prompts. 2. Cause the Storyboard planner to fail, or submit an empty reviewed Storyboard plan. 3. Inspect the fallback keyframe prompts and Roleplay storyboard card. ## Environment - Marinara Engine version: `2.4.1+b0c7e95a1724` - Install type: source - OS + version: Ubuntu host; exact version not captured - Browser or app shell: not captured ## Logs, screenshots, or video Observed debug signatures: ```text [debug/game/storyboard-planner] nativeCharacterPrompts=false [debug/game/storyboard-image-assets] ... details=...no-ref+appearance [game/storyboard] Storyboard Illustrator failed; using fallback images and skipping video generation ``` The subsequent provider prompt contains duplicated speaker labels and no character appearance notes. ## Additional context Follow-up includes valid review findings from #4591: - https://github.com/Pasta-Devs/Marinara-Engine/pull/4591#discussion_r3715348187 - https://github.com/Pasta-Devs/Marinara-Engine/pull/4591#discussion_r3715348199 - https://github.com/Pasta-Devs/Marinara-Engine/pull/4591#discussion_r3715348210 ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:49:14 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
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#2509
No description provided.