mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4331] [MERGED] feat: make Roleplay Gallery video director editable #6337
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6337
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
6419971feat: add Roleplay video prompt override6349811test: 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
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
roleplay.galleryVideoDirectoras a persistent prompt override.${durationSeconds}as the supported template variable and render it from the requested video duration.Validation
pnpm checkpassed with normal filesystem access.pnpm regression:promptpassed.pnpm localization:checkpassed.pnpm --filter @marinara-engine/server run lintpassed.pnpm --filter @marinara-engine/client run lintpassed.git diff --checkpassed.Live local API registered
roleplay.galleryVideoDirector; a preview rendered${durationSeconds}as12.pnpm checkpasses locallyContainer (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.mdManual verification notes
${durationSeconds}, then animate Roleplay Gallery images at more than one duration.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n] <paths>follow-up issue openedEnglish 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
${durationSeconds}variable.Documentation
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.