[PR #4331] [MERGED] feat: make Roleplay Gallery video director editable #6337

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

📋 Pull Request Information

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

Base: staging ← Head: agent/roleplay-gallery-video-prompt-override


📝 Commits (2)

  • 6419971 feat: add Roleplay video prompt override
  • 6349811 test: cover Roleplay video prompt fallbacks

📊 Changes

11 files changed (+189 additions, -48 deletions)

View changed files

📝 CHANGELOG.md (+1 -1)
📝 docs/media/scene-video.md (+4 -4)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+1 -0)
📝 packages/client/src/components/panels/settings/PromptOverridesEditor.tsx (+18 -4)
📝 packages/client/src/localization/locales/en.json (+5 -2)
📝 packages/server/src/routes/gallery.routes.ts (+13 -19)
📝 packages/server/src/services/prompt-overrides/index.ts (+2 -0)
📝 packages/server/src/services/prompt-overrides/registry.ts (+4 -0)
➕ packages/server/src/services/prompt-overrides/registry/roleplay.ts (+44 -0)
📝 packages/server/src/services/video/roleplay-video-direction.ts (+16 -10)
📝 scripts/regressions/prompt.regression.ts (+81 -8)

📄 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

Follow-up to #4325

Translation follow-up: #4330

Why this change

The Roleplay Gallery animation director introduced in #4325 was still a hardcoded server system prompt. Users could review the generated prompt for one render, but could not persistently customize the planning instructions or make those instructions explicitly follow the selected clip duration.

What changed

  • Registered roleplay.galleryVideoDirector as a persistent prompt override.
  • Exposed Roleplay Gallery Animation Director under Settings → Overall Generations → Video Generation Prompt Overrides using the existing prompt editor.
  • Added ${durationSeconds} as the supported template variable and render it from the requested video duration.
  • Routed Roleplay Gallery animation planning through the stored override with the canonical default as fallback.
  • Added localized setting copy, regression coverage, changelog notes, and scene-video documentation.

Validation

  • pnpm check passed with normal filesystem access.

  • pnpm regression:prompt passed.

  • pnpm localization:check passed.

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

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

  • git diff --check passed.

  • Live local API registered roleplay.galleryVideoDirector; a preview rendered ${durationSeconds} as 12.

  • 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 open Settings → Overall Generations → Video Generation Prompt Overrides and select Roleplay Gallery Animation Director.
  • Edit and save a template containing ${durationSeconds}, then animate Roleplay Gallery images at more than one duration.
  • Confirm prompt review still permits a one-render override without replacing the saved director template.
  • Confirm Game Gallery and Storyboard animation prompts remain unchanged.

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)

English scene-video documentation and the changelog were updated. Translation follow-up is tracked in #4330. No version bump is included.

UI evidence (if applicable)

This reuses the existing localized Prompt Overrides editor; no new layout or visual component was introduced.

Summary by CodeRabbit

  • New Features

    • Added customizable prompt overrides for Roleplay Gallery animation direction.
    • Added duration-aware animation planning with support for the ${durationSeconds} variable.
    • Updated prompt settings with dedicated labels, descriptions, reset text, and guidance.
  • Documentation

    • Clarified prompt-review settings and prompt scope across video generation, Game Mode, and Roleplay Gallery animations.
  • Bug Fixes

    • Roleplay Gallery video prompts now use the selected prompt override and requested animation duration.

🔄 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/4331 **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/roleplay-gallery-video-prompt-override` --- ### 📝 Commits (2) - [`6419971`](https://github.com/Pasta-Devs/Marinara-Engine/commit/64199713d5d19108f9870c7b51b70b9d9fe9d5e3) feat: add Roleplay video prompt override - [`6349811`](https://github.com/Pasta-Devs/Marinara-Engine/commit/634981165942d2e863a94b8a3555b41b9f3ec67b) test: cover Roleplay video prompt fallbacks ### 📊 Changes **11 files changed** (+189 additions, -48 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -1) 📝 `docs/media/scene-video.md` (+4 -4) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+1 -0) 📝 `packages/client/src/components/panels/settings/PromptOverridesEditor.tsx` (+18 -4) 📝 `packages/client/src/localization/locales/en.json` (+5 -2) 📝 `packages/server/src/routes/gallery.routes.ts` (+13 -19) 📝 `packages/server/src/services/prompt-overrides/index.ts` (+2 -0) 📝 `packages/server/src/services/prompt-overrides/registry.ts` (+4 -0) ➕ `packages/server/src/services/prompt-overrides/registry/roleplay.ts` (+44 -0) 📝 `packages/server/src/services/video/roleplay-video-direction.ts` (+16 -10) 📝 `scripts/regressions/prompt.regression.ts` (+81 -8) </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 Follow-up to #4325 Translation follow-up: #4330 ## Why this change The Roleplay Gallery animation director introduced in #4325 was still a hardcoded server system prompt. Users could review the generated prompt for one render, but could not persistently customize the planning instructions or make those instructions explicitly follow the selected clip duration. ## What changed - Registered `roleplay.galleryVideoDirector` as a persistent prompt override. - Exposed **Roleplay Gallery Animation Director** under **Settings → Overall Generations → Video Generation Prompt Overrides** using the existing prompt editor. - Added `${durationSeconds}` as the supported template variable and render it from the requested video duration. - Routed Roleplay Gallery animation planning through the stored override with the canonical default as fallback. - Added localized setting copy, regression coverage, changelog notes, and scene-video documentation. ## Validation - `pnpm check` passed with normal filesystem access. - `pnpm regression:prompt` passed. - `pnpm localization:check` passed. - `pnpm --filter @marinara-engine/server run lint` passed. - `pnpm --filter @marinara-engine/client run lint` passed. - `git diff --check` passed. - Live local API registered `roleplay.galleryVideoDirector`; a preview rendered `${durationSeconds}` as `12`. - [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 open **Settings → Overall Generations → Video Generation Prompt Overrides** and select **Roleplay Gallery Animation Director**. - Edit and save a template containing `${durationSeconds}`, then animate Roleplay Gallery images at more than one duration. - Confirm prompt review still permits a one-render override without replacing the saved director template. - Confirm Game Gallery and Storyboard animation prompts remain unchanged. ## 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 - [ ] Version/release files updated (only if this PR includes a version bump) English scene-video documentation and the changelog were updated. Translation follow-up is tracked in #4330. No version bump is included. ## UI evidence (if applicable) This reuses the existing localized Prompt Overrides editor; no new layout or visual component was introduced. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added customizable prompt overrides for Roleplay Gallery animation direction. * Added duration-aware animation planning with support for the `${durationSeconds}` variable. * Updated prompt settings with dedicated labels, descriptions, reset text, and guidance. * **Documentation** * Clarified prompt-review settings and prompt scope across video generation, Game Mode, and Roleplay Gallery animations. * **Bug Fixes** * Roleplay Gallery video prompts now use the selected prompt override and requested animation duration. <!-- 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:28 +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#6337
No description provided.