[PR #4325] [MERGED] feat: direct Roleplay Gallery animations #6334

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

📋 Pull Request Information

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

Base: staging ← Head: agent/4311-roleplay-animation-director


📝 Commits (2)

  • ec098a9 feat: direct Roleplay Gallery animations
  • b1f8916 fix: address roleplay gallery animation review

📊 Changes

7 files changed (+311 additions, -47 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 docs/game/ltx-2-3-storyboards.md (+5 -10)
📝 packages/client/src/localization/locales/en.json (+1 -1)
📝 packages/server/src/routes/gallery.routes.ts (+115 -33)
📝 packages/server/src/services/video/prompt-context.ts (+52 -3)
➕ packages/server/src/services/video/roleplay-video-direction.ts (+73 -0)
📝 scripts/regressions/prompt.regression.ts (+64 -0)

📄 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

Part of #4311

Translation follow-up: #4324

Why this change

Roleplay Gallery Animate previously reused a static image-generation description as the video prompt. That omitted the temporal action, camera, dialogue, sound, ambience, and ending direction expected by image-to-video models.

This keeps Gallery animation independent from the larger Roleplay Storyboard feature so it can be reviewed and shipped separately.

What changed

  • Added a Roleplay-only single-shot animation director using the chat's selected Illustrator Prompt Model, with the main text connection as fallback.
  • Builds the direction from the user/assistant exchange that produced the selected Gallery image.
  • Treats the selected image as the exact frame-zero reference while planning motion, camera behavior, supported dialogue, sound effects, ambience, and an ending hold.
  • Preserves explicit reviewed prompt overrides and all existing non-Roleplay/Game video prompting.
  • Corrected the LTX Director guide so %reference_image_name% lives inside the serialized timeline_data.segments array while frame, duration, and FPS values remain dynamic.

Validation

  • pnpm regression:prompt passed outside the container.

  • pnpm regression:roleplay passed outside the container.

  • pnpm --filter @marinara-engine/server run lint passed.

  • pnpm localization:check passed.

  • pnpm version:check passed.

  • pnpm --filter @marinara-engine/server build passed.

  • pnpm --filter @marinara-engine/client build passed.

  • git diff --check passed.

  • pnpm check stops at the existing Impeccable context guard because the context loader does not return valid JSON; the direct relevant checks above were run instead.

  • 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 animate a Roleplay Illustrator image with prompt review both enabled and disabled.
  • Verify the planned prompt follows the source exchange and begins from the selected frame.
  • Render at least one clip through Google Gemini Omni or Veo and one local ComfyUI/LTX workflow.
  • Confirm Game Gallery/Storyboard animation prompts remain unchanged.
  • No live provider render or browser walkthrough was performed during this implementation.

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

English LTX workflow documentation and the changelog were updated. Translation follow-up is tracked in #4324. No version bump is included.

UI evidence (if applicable)

The only client-facing change is localized explanatory copy; no layout changes are included.

Summary by CodeRabbit

  • New Features

    • Roleplay Gallery animations now use the selected Prompt Model to plan motion, camera direction, dialogue, sound effects, ambience, and the final hold.
    • Existing gallery images remain the opening frame of generated animations.
    • Planning incorporates relevant conversation, character, and setting context for more coherent results.
    • Game Storyboard animation behavior remains unchanged.
  • Documentation

    • Updated storyboard guidance for reference images, dynamic durations, frame rates, and serialized timeline values.
  • Bug Fixes

    • Improved error handling and request cancellation during prompt previews and video generation.

🔄 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/4325 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/31/2026 **Status:** ✅ Merged **Merged:** 7/31/2026 **Merged by:** [@thetopham](https://github.com/thetopham) **Base:** `staging` ← **Head:** `agent/4311-roleplay-animation-director` --- ### 📝 Commits (2) - [`ec098a9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ec098a956f6cbc11bfb71b1c0e4d1e3f794ef9aa) feat: direct Roleplay Gallery animations - [`b1f8916`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b1f8916459a06b1624ed6248157c9c5483800051) fix: address roleplay gallery animation review ### 📊 Changes **7 files changed** (+311 additions, -47 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `docs/game/ltx-2-3-storyboards.md` (+5 -10) 📝 `packages/client/src/localization/locales/en.json` (+1 -1) 📝 `packages/server/src/routes/gallery.routes.ts` (+115 -33) 📝 `packages/server/src/services/video/prompt-context.ts` (+52 -3) ➕ `packages/server/src/services/video/roleplay-video-direction.ts` (+73 -0) 📝 `scripts/regressions/prompt.regression.ts` (+64 -0) </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 Part of #4311 Translation follow-up: #4324 ## Why this change Roleplay Gallery **Animate** previously reused a static image-generation description as the video prompt. That omitted the temporal action, camera, dialogue, sound, ambience, and ending direction expected by image-to-video models. This keeps Gallery animation independent from the larger Roleplay Storyboard feature so it can be reviewed and shipped separately. ## What changed - Added a Roleplay-only single-shot animation director using the chat's selected Illustrator Prompt Model, with the main text connection as fallback. - Builds the direction from the user/assistant exchange that produced the selected Gallery image. - Treats the selected image as the exact frame-zero reference while planning motion, camera behavior, supported dialogue, sound effects, ambience, and an ending hold. - Preserves explicit reviewed prompt overrides and all existing non-Roleplay/Game video prompting. - Corrected the LTX Director guide so `%reference_image_name%` lives inside the serialized `timeline_data.segments` array while frame, duration, and FPS values remain dynamic. ## Validation - `pnpm regression:prompt` passed outside the container. - `pnpm regression:roleplay` passed outside the container. - `pnpm --filter @marinara-engine/server run lint` passed. - `pnpm localization:check` passed. - `pnpm version:check` passed. - `pnpm --filter @marinara-engine/server build` passed. - `pnpm --filter @marinara-engine/client build` passed. - `git diff --check` passed. - `pnpm check` stops at the existing Impeccable context guard because the context loader does not return valid JSON; the direct relevant checks above were run instead. - [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 animate a Roleplay Illustrator image with prompt review both enabled and disabled. - Verify the planned prompt follows the source exchange and begins from the selected frame. - Render at least one clip through Google Gemini Omni or Veo and one local ComfyUI/LTX workflow. - Confirm Game Gallery/Storyboard animation prompts remain unchanged. - No live provider render or browser walkthrough was performed during this implementation. ## 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] <paths>` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) English LTX workflow documentation and the changelog were updated. Translation follow-up is tracked in #4324. No version bump is included. ## UI evidence (if applicable) The only client-facing change is localized explanatory copy; no layout changes are included. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Roleplay Gallery animations now use the selected Prompt Model to plan motion, camera direction, dialogue, sound effects, ambience, and the final hold. - Existing gallery images remain the opening frame of generated animations. - Planning incorporates relevant conversation, character, and setting context for more coherent results. - Game Storyboard animation behavior remains unchanged. - **Documentation** - Updated storyboard guidance for reference images, dynamic durations, frame rates, and serialized timeline values. - **Bug Fixes** - Improved error handling and request cancellation during prompt previews and video generation. <!-- 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:09:26 +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#6334
No description provided.