[PR #3462] [MERGED] Separate comic illustration and animation prompt presets #5949

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

📋 Pull Request Information

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

Base: staging ← Head: codex/improve-comic-animation-prompts


📝 Commits (7)

  • 7643372 Separate comic illustration and animation prompts
  • 6001e80 Refine comic animation playback and prompts
  • 38088da Stabilize background storyboard playback
  • 4fa7254 Fix empty game narration steps
  • d937b17 Centralize game video runtime resolution
  • 9010beb Merge remote-tracking branch 'origin/staging' into codex/improve-comic-animation-prompts
  • 2c9ab36 Merge remote-tracking branch 'origin/staging' into codex/improve-comic-animation-prompts

📊 Changes

16 files changed (+721 additions, -350 deletions)

View changed files

📝 CHANGELOG.md (+7 -1)
📝 docs/game/getting-started.md (+4 -2)
📝 docs/game/storyboard.md (+12 -3)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+19 -1)
📝 packages/client/src/components/game/GameNarration.tsx (+26 -2)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+5 -5)
📝 packages/client/src/components/game/GameSurface.tsx (+103 -11)
➕ packages/client/src/components/game/StoryboardBackgroundControls.tsx (+67 -0)
📝 packages/client/src/lib/game-tag-parser.ts (+20 -0)
📝 packages/server/src/routes/gallery.routes.ts (+20 -114)
📝 packages/server/src/routes/game.routes.ts (+32 -194)
➕ packages/server/src/services/video/game-video-runtime.ts (+149 -0)
📝 packages/server/src/services/video/prompt-context.ts (+27 -16)
📝 packages/shared/src/constants/game-storyboard-prompts.ts (+32 -1)
📝 packages/shared/src/constants/game-video-prompts.ts (+28 -0)
📝 scripts/regressions/prompt.regression.ts (+170 -0)

📄 Description

Linked issue

Closes #3461

Why this change

  • Comic illustration and comic animation need different prompt contracts. Duration and motion language improves panel-to-video generation but makes the original Comic Page prompt confusing for illustration-only use.
  • Comic-specific video direction must stay separate from the shared Game Video Prompt because manual Gallery and Game Assets videos also use it.
  • Background storyboard animations should complement reading instead of looping behind the narration or rapidly switching between clips.

What changed

  • Restored the original Comic Page illustration prompt and added Comic Page Animation as a separate duration-aware storyboard source prompt.
  • Added Comic Page Video as a separate storyboard video prompt without changing the shared Game Video Prompt.
  • Defaulted new Anime Episode games to Comic Page Animation plus Comic Page Video while retaining Anime Episode Director plus Anime Game Video.
  • Added chat-local editable-copy actions for Comic Page Animation and Comic Page Video.
  • Refined the comic prompts from Gemini Omni output review: simpler six-second beat budgets, less lettering and cast duplication, cause-before-consequence framing, immediate panel entry when a full-page establish would spoil the sequence, and an explicit final hold.
  • Removed Gemini Omni prompt-component truncation while preserving the existing default and xAI limits.
  • Changed floating and background storyboard clips from looping to one-shot playback with replay.
  • Added desktop and mobile replay, play/pause, and mute controls for Background mode. Each newly active clip starts once with sound at normal speed, narration can display while it plays, narration auto-play waits for it to finish, and the video then holds on its final frame.
  • Keyed playback state to the active video so stale pause/end events from an earlier keyframe cannot stop or restart a newer clip.
  • Fixed empty Game narration steps by rendering standalone angle-bracket status readouts literally and removing only segments made empty by display regex or macro processing.
  • Updated regression coverage, Game Mode docs, and the 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

  • Manually verify Anime Episode setup stores Comic Page Animation and Comic Page Video for a new game.
  • Manually verify original Comic Page remains selectable for Illustration Prompt.
  • Manually verify Add Comic Animation Copy and Add Comic Video Copy create editable chat-local templates.
  • Manually verify Background mode starts each newly active clip once with sound at normal speed, waits before narration auto-advances, freezes on the ending, and supports replay/play-pause/mute on desktop and mobile.
  • Manually verify a GM status block such as <CORE: SEALED> renders as literal narration and no blank narration step remains.
  • Compare Comic Page Animation + Comic Page Video output across Wan 2.7, Grok Imagine 1.5, and Gemini Omni.
  • Automated validation run: pnpm regression:prompt and pnpm check both passed.
  • pnpm smoke:ui could not complete because the Playwright web server did not become reachable within its 180-second timeout.

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)

UI evidence (if applicable)

  • No screenshots attached. The UI changes add existing-toolbar-style playback controls for Background storyboard animations and copy actions within the Chat Settings prompt libraries.

Summary by CodeRabbit

  • New Features

    • Added Comic Page Animation and Comic Page Video presets for duration-aware, ordered storyboard clips.
    • Anime Episode setup now pairs the new comic animation and video presets.
    • Added replay, play/pause, and mute controls for storyboard background videos; clips play once and hold on the final frame.
    • Added chat-editable copies of comic animation and video presets.
  • Bug Fixes

    • Fixed empty narration steps caused by status readouts.
    • Fixed storyboard playback rapidly restarting between keyframes.
  • Documentation

    • Updated Game Mode and storyboard guidance for the new presets and playback behavior.

🔄 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/3462 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/11/2026 **Status:** ✅ Merged **Merged:** 7/11/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/improve-comic-animation-prompts` --- ### 📝 Commits (7) - [`7643372`](https://github.com/Pasta-Devs/Marinara-Engine/commit/76433729c7409fb16547427a68d3c74ddbfb5271) Separate comic illustration and animation prompts - [`6001e80`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6001e80ee1f42c290934ef5332e12bc36faf4bd4) Refine comic animation playback and prompts - [`38088da`](https://github.com/Pasta-Devs/Marinara-Engine/commit/38088da6e6338717a21dd89c4b650792d5bedac0) Stabilize background storyboard playback - [`4fa7254`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4fa72545c2acb089df0b5e353d58b0e4e936a4ad) Fix empty game narration steps - [`d937b17`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d937b178be5093e4cf485406304e3c8c048b20ec) Centralize game video runtime resolution - [`9010beb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9010bebbed3252dda70b27e1a57bfef27837ad88) Merge remote-tracking branch 'origin/staging' into codex/improve-comic-animation-prompts - [`2c9ab36`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2c9ab3609355c22e1a09880b77f71143cb9775ad) Merge remote-tracking branch 'origin/staging' into codex/improve-comic-animation-prompts ### 📊 Changes **16 files changed** (+721 additions, -350 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+7 -1) 📝 `docs/game/getting-started.md` (+4 -2) 📝 `docs/game/storyboard.md` (+12 -3) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+19 -1) 📝 `packages/client/src/components/game/GameNarration.tsx` (+26 -2) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+5 -5) 📝 `packages/client/src/components/game/GameSurface.tsx` (+103 -11) ➕ `packages/client/src/components/game/StoryboardBackgroundControls.tsx` (+67 -0) 📝 `packages/client/src/lib/game-tag-parser.ts` (+20 -0) 📝 `packages/server/src/routes/gallery.routes.ts` (+20 -114) 📝 `packages/server/src/routes/game.routes.ts` (+32 -194) ➕ `packages/server/src/services/video/game-video-runtime.ts` (+149 -0) 📝 `packages/server/src/services/video/prompt-context.ts` (+27 -16) 📝 `packages/shared/src/constants/game-storyboard-prompts.ts` (+32 -1) 📝 `packages/shared/src/constants/game-video-prompts.ts` (+28 -0) 📝 `scripts/regressions/prompt.regression.ts` (+170 -0) </details> ### 📄 Description ## Linked issue Closes #3461 ## Why this change - Comic illustration and comic animation need different prompt contracts. Duration and motion language improves panel-to-video generation but makes the original Comic Page prompt confusing for illustration-only use. - Comic-specific video direction must stay separate from the shared Game Video Prompt because manual Gallery and Game Assets videos also use it. - Background storyboard animations should complement reading instead of looping behind the narration or rapidly switching between clips. ## What changed - Restored the original Comic Page illustration prompt and added Comic Page Animation as a separate duration-aware storyboard source prompt. - Added Comic Page Video as a separate storyboard video prompt without changing the shared Game Video Prompt. - Defaulted new Anime Episode games to Comic Page Animation plus Comic Page Video while retaining Anime Episode Director plus Anime Game Video. - Added chat-local editable-copy actions for Comic Page Animation and Comic Page Video. - Refined the comic prompts from Gemini Omni output review: simpler six-second beat budgets, less lettering and cast duplication, cause-before-consequence framing, immediate panel entry when a full-page establish would spoil the sequence, and an explicit final hold. - Removed Gemini Omni prompt-component truncation while preserving the existing default and xAI limits. - Changed floating and background storyboard clips from looping to one-shot playback with replay. - Added desktop and mobile replay, play/pause, and mute controls for Background mode. Each newly active clip starts once with sound at normal speed, narration can display while it plays, narration auto-play waits for it to finish, and the video then holds on its final frame. - Keyed playback state to the active video so stale pause/end events from an earlier keyframe cannot stop or restart a newer clip. - Fixed empty Game narration steps by rendering standalone angle-bracket status readouts literally and removing only segments made empty by display regex or macro processing. - Updated regression coverage, Game Mode docs, and the changelog. ## 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 - Manually verify Anime Episode setup stores Comic Page Animation and Comic Page Video for a new game. - Manually verify original Comic Page remains selectable for Illustration Prompt. - Manually verify Add Comic Animation Copy and Add Comic Video Copy create editable chat-local templates. - Manually verify Background mode starts each newly active clip once with sound at normal speed, waits before narration auto-advances, freezes on the ending, and supports replay/play-pause/mute on desktop and mobile. - Manually verify a GM status block such as `<CORE: SEALED>` renders as literal narration and no blank narration step remains. - Compare Comic Page Animation + Comic Page Video output across Wan 2.7, Grok Imagine 1.5, and Gemini Omni. - Automated validation run: `pnpm regression:prompt` and `pnpm check` both passed. - `pnpm smoke:ui` could not complete because the Playwright web server did not become reachable within its 180-second timeout. ## 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) ## UI evidence (if applicable) - No screenshots attached. The UI changes add existing-toolbar-style playback controls for Background storyboard animations and copy actions within the Chat Settings prompt libraries. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added Comic Page Animation and Comic Page Video presets for duration-aware, ordered storyboard clips. * Anime Episode setup now pairs the new comic animation and video presets. * Added replay, play/pause, and mute controls for storyboard background videos; clips play once and hold on the final frame. * Added chat-editable copies of comic animation and video presets. * **Bug Fixes** * Fixed empty narration steps caused by status readouts. * Fixed storyboard playback rapidly restarting between keyframes. * **Documentation** * Updated Game Mode and storyboard guidance for the new presets and playback behavior. <!-- 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:29 +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#5949
No description provided.