mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8001] [MERGED] feat(video): Roleplay /video and the storyteller's [video] command #8050
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#8050
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/8001
Author: @JamesMowery
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/roleplay-videos📝 Commits (10+)
1f45d67feat(video): Roleplay /video makes a clip of the latest reply3f182dffix(video): Roleplay clips without a picture are written as text to video120acc5fix(video): Roleplay /video clips show in the persona's galleryd24de7afix(video): review fixes for Roleplay /video4492d40fix(video): localize the Roleplay video review title219f650fix(video): Roleplay /video names its reply only when the clip landed294059bfix(video): give the Roleplay clip director room to think6177a3cfix(video): file Roleplay /video clips under the people they show87499b1fix(video): Roleplay /video and Animate use the shared clip writer5f9ed0afeat(video): Roleplay [video] command for the storyteller📊 Changes
24 files changed (+1261 additions, -195 deletions)
View changed files
📝
docs/chats/slash-commands.md(+1 -0)📝
docs/media/illustrator-agent.md(+3 -3)📝
docs/media/scene-video.md(+13 -5)📝
docs/roleplay/getting-started.md(+6 -0)📝
packages/client/src/components/chat/ChatArea.tsx(+139 -1)📝
packages/client/src/components/chat/ChatInput.tsx(+4 -0)📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+3 -0)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+32 -34)📝
packages/client/src/components/chat/RoleplayCommandsSettings.tsx(+2 -2)📝
packages/client/src/hooks/use-generate.ts(+15 -2)📝
packages/client/src/lib/slash-commands.ts(+23 -3)📝
packages/client/src/localization/locales/en.json(+5 -1)📝
packages/server/src/routes/gallery.routes.ts(+327 -107)📝
packages/server/src/routes/generate.routes.ts(+175 -26)📝
packages/server/src/routes/generate/retry-agents-route.ts(+21 -2)📝
packages/server/src/services/generation/conversation-video-runtime.ts(+5 -2)📝
packages/server/src/services/generation/illustrator-manual-prompt-generation.ts(+3 -1)📝
packages/server/src/services/generation/roleplay-commands.ts(+22 -0)📝
packages/server/src/services/video/roleplay-clip-writer.ts(+3 -4)📝
packages/shared/src/types/roleplay-command.ts(+2 -0)...and 4 more files
📄 Description
Linked issue
Closes #8000
Part of #7545 (item 7 of 8). @SpicyMarinara
Why this change
/video, and the Gallery's Video button animated the newest picture, which could come from a reply several messages back. Clips should show what is happening now, as/illustratedoes.[illustrate], but not for a clip, so moments that are about motion (a fight, a chase, something breaking) only ever became stills.What changed
Nothing that worked before changes except the Gallery's Video button in Roleplay (below). Video clips starts off.
Roleplay
/video(POST /api/gallery/:chatId/roleplay-video)/video [description]and the Gallery's Video button make a clip of the latest reply (or of the description) under the newest reply, following the chat's First frame. With a picture first frame, the latest reply is illustrated first and that picture is animated./videoand Video (previewOnly/promptOverride), and the review closes once read (as #7733 does)./videoand Animate already do./videouses it in every Illustrator mode.Roleplay
[video]command[video: subject="…" motion="…" characters="…"], preferred over[illustrate]when the moment is about motion.video_started), so the next message can start while it renders.[illustrate]is offered the clip fields too, through the sharedformatOptionalVideoOffer.Every clip
/video, Video, Animate and[video]go through the shared clip writer (services/video/roleplay-clip-writer.ts), so they follow Video Prompting Instructions like Illustrator's clips. With Attach Card Appearance for videos and instructions that speak to appearance, the writer builds the appearance in.Docs:
docs/chats/slash-commands.md,docs/media/illustrator-agent.md,docs/media/scene-video.md,docs/roleplay/getting-started.md.Review notes from #7860 / #7863 applied here
/videonow uses the shared name-part rule (regression with a multi-word card name).[video]passes the agent signal;/videopasses its request signal to the writer and the clip.[video]goes throughclaimRoleplayClip(interval with theallowedcheck, plus Videos per reply), and a refused one is logged.[video]sendsvideo_started.video_error.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated runs on 2026-10-21, Node 24.21.0:
stagingmerge (stagingbcdfb51d1into the PR rebased on #7993d6be94a30, no conflicts):pnpm checkpasses (its one lint warning, inHomeProfessorMariChat.tsx, is not from this PR);pnpm localization:checkpasses; fullpnpm regression: 965/965 pass.23758cf33:pnpm check;roleplay-video-command,roleplay-video-tagandconvo-video-commandpass. The two new checks (a short name finding its card's avatar;video_startedfor a[video]with no picture) fail without their fixes.roleplay-video-command: the director's window when animating a picture;/video(newest reply, description, context size, Prompt only, Avatar by name, short name, persona and whole words, needsPicture, not in Conversation); filing; the preview and reviewed prompt; the director's budget; appearance built in.roleplay-video-tag: parsing and offering[video], both first-frame paths end to end, the command off,[illustrate]becoming a clip, a saved-but-unattached clip, a deleted reply.--workers=1):roleplay-commands,illustrator-manual-cadence,conversation-video-gallery,private-note-narrator,atlas-cloud-options,assigned-chat-sweep.desktop-chromium46 passed, 1 skipped;mobile-chromium46 passed, 1 skipped;mobile-webkit45 passed, 2 skipped (twoassigned-chat-sweeptests that failed when the local test server restarted mid-run pass on a rerun of that spec).23758cf33(/videonow passes its request signal to the clip, not only the writer). A review of that commit: 1 finding, the[docs-i18n]follow-up, which is #8002.pnpm regression:uiandpnpm smoke:ui.Manual verification notes
/videowith First frame Prompt only: a clip of the latest reply appears under the newest reply, and no picture is drawn./video Lena runswith First frame Avatar and a character named "Dr. Lena Kowalski": the clip starts from her avatar./videoillustrates the latest reply first, then animates that picture./video, and Animate illustration on an older picture still animates that picture./videoprompt for review, and an edited prompt is the one sent.[video]clip in the reply; with Video Run Interval 0 no[video]is offered.[video]clip is still rendering.[video]clip that is waiting or being written cancels it with no error toast.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)English docs updated:
docs/chats/slash-commands.md,docs/media/illustrator-agent.md,docs/media/scene-video.md,docs/roleplay/getting-started.md. Translations: #8002UI evidence (if applicable)
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
[PR #8001] feat(video): Roleplay /video and the storyteller's [video] commandto [PR #8001] [MERGED] feat(video): Roleplay /video and the storyteller's [video] command