mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7993] [MERGED] feat(video): Generated Videos and the Video Run Interval for Conversation characters and the Roleplay Illustrator #8046
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#8046
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/7993
Author: @JamesMowery
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/illustrator-video-run-interval📝 Commits (10+)
1d59618feat(video): Generated Videos for Conversation characters and the Illustrator5bfdb3efeat(video): a Videos entry in the Conversation command listscd604e6fix(video): a character's [video] reads the recent conversationaf3a7c9fix(video): automatic clips that name the persona show in their gallery65ba5c5fix(video): review fixes for Generated Videos8c73227fix(video): keep showing pictures and tearing down after one step failsf6c834efix(video): automatic clips name a message only when they landed on it540a4aafix(video): no filler clip when Illustrator doesn't say how it moves5a3ad1afeat(video): the Roleplay Clip Director, for clips with no picture of their ownabe77cbfix(video): every Roleplay and Conversation clip follows Video Prompting Instructions📊 Changes
46 files changed (+4025 additions, -250 deletions)
View changed files
📝
docs/agents/built-in-agents.md(+1 -1)📝
docs/conversation/selfies.md(+7 -0)📝
docs/media/illustrator-agent.md(+33 -4)📝
docs/media/scene-video.md(+2 -0)📝
e2e/illustrator-manual-cadence.e2e.ts(+1 -1)📝
packages/client/src/components/agents/AgentEditor.tsx(+42 -1)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+157 -21)📝
packages/client/src/components/chat/ChatSetupWizard.tsx(+20 -12)📝
packages/client/src/components/panels/SettingsPanel.tsx(+35 -0)📝
packages/client/src/hooks/use-generate.ts(+64 -2)📝
packages/client/src/lib/agent-cadence.ts(+1 -1)📝
packages/client/src/lib/settings-registry.ts(+10 -0)📝
packages/client/src/localization/locales/en.json(+25 -0)📝
packages/server/src/routes/chats.routes.ts(+4 -0)📝
packages/server/src/routes/gallery.routes.ts(+8 -1)📝
packages/server/src/routes/generate.routes.ts(+449 -76)📝
packages/server/src/routes/generate/retry-agents-route.ts(+273 -95)📝
packages/server/src/services/agents/agent-executor.ts(+16 -0)📝
packages/server/src/services/conversation/character-commands.ts(+61 -1)📝
packages/server/src/services/generation/agent-cadence.ts(+127 -1)...and 26 more files
📄 Description
Linked issue
Closes #7992
Part of #7545 (item 6 of 8). Replaces #7860 (#7859) and #7863 (#7862). @SpicyMarinara
Why this change
[video]was made and the rest were dropped silently.What changed
Nothing that worked before stops working: Generated Videos starts off, Illustrator makes starts on Pictures, and the interval Illustrator already had is now labeled Image Run Interval and behaves as before.
Conversation
[video]command when it fits. The same switch appears as Videos in the Commands list of the new-chat setup and Chat Settings.[video]is written from the recent conversation, as/videois, so a clip you asked for shows what you asked for.[video: …]description of any length is read, brackets of its own included ([Shot 1] …); one over 2,000 characters is shortened by the Prompt Model, or cut at 2,000 if that fails. A tag that never closes makes no clip and is hidden to the end of its line.Roleplay (Chat Settings, Agents, Illustrator)
Limits (only for clips the AI makes on its own, never ones you ask for)
/video, the Gallery's Video and Animate, or a message's Illustrate button.[illustrate]clips (Clips only, or Pictures and clips) go through the same interval check and count toward Videos per reply; one held back shows its picture instead.Every clip
video_started/video_skipped), as a pending picture does.Code: the clip pieces shared by a fresh reply and a re-run (who a clip shows, its prompt, the clip offer to Illustrator) live in
services/video/roleplay-illustrator-clips.ts; the<optional_video>offer text is shared by the Illustrator agent and the Illustrate planner; the interval claim isclaimAutomaticVideoRuninservices/generation/agent-cadence.ts.Docs:
docs/agents/built-in-agents.md,docs/conversation/selfies.md,docs/media/illustrator-agent.mdanddocs/media/scene-video.md.Review fixes (from #7860 and #7863)
bc855b069): the first name is resolved on its own with reference images, so "Lena" finds "Dr. Lena Kowalski";roleplay-clip-first-framecovers a multi-word card name.bc855b069): the agent signal goes tocreateRoleplayClipTools,animateGalleryImage,generateRoleplayClip(newsignal) andstartConversationVideoCommand/generateConversationVideo; the re-run passes its ownsignal. It is checked up to the provider request and passed to it.[illustrate]clips skipping the interval (bc855b069,97a714760): both paths go throughclaimRoleplayClip(the interval claim with the sameallowedcheck as automatic clips, plus the Videos per reply cap); a refused one draws its picture.roleplay-clip-first-frameis updated.bc855b069): the Image Run Interval input has its ownaria-label, ande2e/illustrator-manual-cadence.e2e.tsusesgetByRole("spinbutton", { name: "Image Run Interval" }). Not run locally (see Validation).agent-cadence.tscatch: returns null whenallowedwas passed, so a refused clip can't slip through on a write error.illustrator-agent.mdnames the Illustrator card's Open Setup screen.Dottore review fixes (2026-10-22)
[video]is offered only when the chat has a usable video connection (hasChatVideoConnection), as[selfie]needs an image connection.built-in-agents.mdnames Illustrator makes for Roleplay clips; one sharedisConversationCommandToggleOnholds the Videos opt-in rule.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated runs on 2026-10-21, Node 24.21.0:
cb908755a(staging4d2932c05merged in, no conflicts):pnpm check: passes. Its one lint warning, inHomeProfessorMariChat.tsx, is not from this PR.pnpm localization:check: passes.pnpm regression: 960/960 pass.d6be94a30(local CodeRabbit fixes):pnpm checkpasses;agent-generated-videos,illustrator-video-run-interval,roleplay-clip-first-frame,convo-video-command,capability-gm-verbsandpromptpass.agent-generated-videos: Conversation[video]on and off, the bare[video], bracketed and unclosed tags, Pictures and clips and Clips only, a failed clip showing its picture, a saved-but-unattached clip counting as made, persona tagging, a character played as the user, appearance built in when the instructions ask for it, Videos per reply and long descriptions.roleplay-clip-first-frame: the First frame choices, a short name finding its card's avatar, Send Avatar References for videos, the Clip Director and instruction-shaped answers, no working video connection, re-running Illustrator, and[illustrate]clips inside and after the interval.illustrator-video-run-interval: both intervals, a short context window, agent default and chat override, 0, swipes, and the interval claim (racing replies, clips sharing one message, a failed write).staging4d2932c05: 11 findings.d6be94a30: a stopped Roleplay clip reported as a 502 "failed to plan" and avideo_error(two findings); a re-run whose clip failed ending with "Agent retry completed"; debug mode not logging the text sent to be shortened; the Video Run Interval paragraph inillustrator-agent.mdsplit into a list.globals.csstouch-screen rule16px(three findings). That rule already sets inputs and selects to1remunder@media (pointer: coarse); it falls short only with a smaller app font size, which affects every input in the app, not this PR. Declined:tryParseJsonRecordthrowing inresolveRoleplayVideoDirection, becauserepairJsonTextonly returns textJSON.parsealready accepted. Declined: splitting two docs paragraphs that are already short sentences.d6be94a30: 0 findings.e2e/illustrator-manual-cadence.e2e.tsand the rest ofpnpm regression:ui/pnpm smoke:ui. Playwright's Chromium download fromcdn.playwright.devtimes out on this machine, so the spec the review asked to run is left to CI or a manual run.Manual verification notes
pnpm exec playwright test e2e/illustrator-manual-cadence.e2e.tsand confirm it passes./videostill works./videoand the Gallery's Video button still work.[illustrate]gives its picture, not a clip, while a message's Illustrate button still makes a clip.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/agents/built-in-agents.md,docs/conversation/selfies.md,docs/media/illustrator-agent.md,docs/media/scene-video.md. Translations: #7994. The Marinara-Agents README follow-up: Pasta-Devs/Marinara-Agents#1492.UI evidence (if applicable)
From #7860 and #7863 (taken 2026-10-19; the settings are unchanged since).
Roleplay mode illustrator agent additions
"Pictures and Clips" illustrator setting demo
(Note: I did not have an I2V workflow activated here in ComfyUI, thus the visual difference between the image and video.)
"Clips Only" illustrator settings demo
Videos command toggle
Convo mode: requesting a clip with Videos toggle enabled
Convo mode: requesting a clip with Videos toggle disabled (reverts to image)
Videos per reply setting in Settings
Video Run Interval and renamed Image Run Interval
Videos per reply setting at default (3)
Videos per reply setting set to 2
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.