[PR #7651] [MERGED] feat(video): video messages in Conversation (/video, Gallery Video, First frame) #7857

Closed
opened 2026-10-24 04:08:12 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7651
Author: @JamesMowery
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/16/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/convo-video-command


📝 Commits (10+)

  • e7fca0f feat(video): /video messages and Gallery Video in Conversation
  • 73c7112 Merge branch 'staging' into feat/convo-video-command
  • 10c6922 fix(video): review follow-ups for Conversation video messages
  • 295040e fix(video): maintainer review fixes for Conversation video messages
  • 602ae60 fix(video): keep the Gallery's character picker under Selfie
  • bfa35de fix(video): save the video First frame in settings profiles
  • 8dd425b Merge branch 'staging' into feat/convo-video-command
  • eba7c2f fix(video): review fixes for /video names, the video guard and the notice colour
  • 0ca0fcc fix(video): /video also refuses a name two characters share exactly
  • 2aa81d0 Merge branch 'staging' into feat/convo-video-command

📊 Changes

33 files changed (+1956 additions, -262 deletions)

View changed files

📝 docs/chats/slash-commands.md (+1 -0)
📝 docs/conversation/selfies.md (+15 -0)
📝 docs/media/scene-video.md (+1 -1)
📝 packages/client/src/components/chat/ChatArea.tsx (+130 -1)
📝 packages/client/src/components/chat/ChatConversationSurface.tsx (+9 -1)
📝 packages/client/src/components/chat/ChatGallery.tsx (+57 -43)
📝 packages/client/src/components/chat/ChatGalleryPanel.tsx (+4 -2)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+61 -0)
📝 packages/client/src/components/chat/ConversationInput.tsx (+6 -0)
📝 packages/client/src/components/chat/ConversationView.tsx (+3 -0)
📝 packages/client/src/components/game/GameSurface.tsx (+1 -1)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+1 -0)
📝 packages/client/src/hooks/use-chat-gallery-actions.ts (+3 -3)
📝 packages/client/src/lib/slash-commands.ts (+66 -0)
📝 packages/client/src/localization/locales/en.json (+26 -2)
📝 packages/server/src/routes/gallery.routes.ts (+152 -139)
📝 packages/server/src/routes/generate.routes.ts (+7 -1)
📝 packages/server/src/routes/generate/conversation-prompt-formatting.ts (+18 -0)
📝 packages/server/src/services/generation/conversation-selfie-command-runtime.ts (+103 -53)
➕ packages/server/src/services/generation/conversation-video-runtime.ts (+407 -0)

...and 13 more files

📄 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

Closes #7649
Part of #7545 (item 3). @SpicyMarinara

Why this change

  • Conversation chats could not make videos at all. A character could send a selfie, but there was no way to ask for a short video message, and the Conversation Gallery had no Video button or Videos tab.
  • A clip asked for this way should show what is happening in the chat right now, so it reads the recent conversation instead of only the character card.

What changed

  • /video (or /video Name) and a Video button in the Conversation Gallery: a character sends a short video message. It arrives as a new message from that character and plays inline. The button uses the character picked in the Gallery, and shows whenever Illustrator is installed (selfies don't need to be on). A name that fits more than one character (/video Smith with Alice Smith and Bob Smith, or two characters both named Aster) picks no one and asks for the full name or a pick in the Gallery.
  • The Conversation Gallery now has the Videos tab, and Animate illustration on a picture makes a clip under the newest reply, sent by the picked character and written to continue that picture (it adds no "sent a video" note).
  • A Video messages section in the Conversation Illustrator card: Video Connection, and First frame for what the clip starts from (a new selfie, the avatar or sprite, a selfie with the avatar as fallback, or no picture). The selfie choices need Generated Selfies on and a Selfie Connection. The first frame is checked before any paid call, a selfie's prompt is reviewed together with the clip's, and pictures in other formats (WebP, AVIF) are converted to PNG instead of being dropped.
  • The clip shows the latest moment of the conversation: the AI writing it reads as many recent messages as Illustrator does for a picture (its Agent Budget context size), starting at the latest conversation start and skipping messages hidden from the AI (or from that character) and messages with no text. A selfie first frame reads the same messages, so the clip starts from that moment too. The video connection's Video Prompting Instructions guide the prompt.
  • Later replies get a short note that a video was sent, so the character knows what it sent.
  • A new editable prompt, Conversation Video Message, under Settings › Generations › Video Generation Prompt Overrides.
  • If a clip is saved but can't be attached to a message, it is still reported as made (with no message), a short notice says it is in the Gallery's Videos tab, and no empty message is left behind, including when the message was deleted while the clip was being made.
  • Works on chats using the built-in local model, like /selfie.
  • Roleplay Gallery animations also accept WebP/AVIF pictures now: /generate-scene-video uses the same shared picture reader and video helper.
  • Shared video code for the next items in #7545 (services/video/chat-video-generation.ts). The selfie runtime gains optional cancel, queue, preview and reviewed-prompt parameters for a selfie first frame; a character's own [selfie] doesn't use them and behaves as before.
  • Characters sending videos on their own is not part of this PR (#7545 item 6). /selfie, Roleplay and Game Mode are unchanged.

Validation

  • 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

Automated runs on 295040e09 (based on staging at 8521f04eb):

  • pnpm check: passes.
  • Regression convo-video-command: passes. Through the real routes with fake text, image and ComfyUI services, it covers prompt preview, each First frame setting, the settings check before any prompt is written (also in preview), selfies off using the avatar, a WebP selfie reaching the video as PNG, the selfie prompt review and its override, the recent-conversation context for the video prompt and a selfie first frame (Illustrator's context size, conversation start, hidden and empty messages skipped, also after a reviewed prompt), animating a Gallery picture (newest reply, the picture's prompt, no sender note), the built-in local model, Roleplay being refused, and the history note.
  • Related regressions pass: the video regressions (including inline-chat-videos), the gallery and prompt regressions, advanced-memory-recall, slash-command-usage, image-prompt-guidance, open-issues.
  • Full pnpm regression: 882/882 pass.
  • Review fixes eba7c2f51, 0ca0fcc0d and d3b4e8e76 (on the staging merges): pnpm check, pnpm localization:check, and the convo-video, video, gallery, slash, open-issues and localization regressions pass; the new /video name check fails without the fix. Local CodeRabbit review of each commit: 0 findings.
  • Not run: pnpm smoke:ui / pnpm regression:ui (Playwright browsers not installed locally).

Manual verification notes

  • Manually verify in a Conversation chat: /video sends a video message from the character that plays inline; /video <name> picks a character in a group chat; an unknown name lists the available characters.
  • Manually verify the Conversation Gallery shows Video, Animate and the Videos tab even with Generated Selfies off, and Video sends a message from the character picked in the Gallery.
  • Manually verify each First frame choice: selfie with avatar fallback (with and without a Selfie Connection, and with Generated Selfies off), new selfie, avatar or sprite, prompt only.
  • Manually verify a selfie first frame with a WebP image provider (for example Venice) starts the clip from the selfie, not the avatar.
  • Manually verify that after chatting about something specific, the clip (and a selfie first frame) shows that moment.
  • Manually verify Animate illustration on a Conversation Gallery picture puts the clip under the newest reply, sent by the character picked in the Gallery, and continues that picture.
  • Manually verify that with Expose media prompts before sending on, the review window shows the video prompt (and the selfie prompt for a selfie first frame), an edited selfie prompt is the one drawn, and Cancel makes nothing.
  • Manually verify /video in a chat using the built-in local model.
  • Manually verify the character's next reply knows it sent a video.
  • Manually verify the Video messages settings and an inline video message at a phone-sized width, in light and dark mode.
  • Manually verify /selfie, Roleplay and Game Mode videos behave as before.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

English docs updated: docs/conversation/selfies.md (new Video messages section), docs/chats/slash-commands.md (/video), docs/media/scene-video.md (pointer to video messages). Translations: #7650

UI evidence (if app

Screenshot from 2026-10-14 13-01-52 Screenshot from 2026-10-14 13-02-07 Screenshot from 2026-10-14 13-03-03 Screenshot from 2026-10-14 13-03-09 Screenshot from 2026-10-14 13-03-50 Screenshot from 2026-10-14 13-04-17 Screenshot from 2026-10-14 13-13-02 Screenshot from 2026-10-14 13-13-25

Summary by CodeRabbit

  • New Features
    • Send short, character-specific videos in Conversation chats with /video; optionally specify a character by name, or animate an image from the Gallery.
    • Review and edit video and selfie prompts before generation, with prompts informed by recent conversation context.
    • Configure video connections and first-frame preferences in chat settings. Videos can use a generated selfie, character avatar, selected Gallery image, or no image, depending on your settings.
    • If a video can’t be added to chat, it remains available in the Gallery.
  • Documentation
    • Added guidance for video messages and clarified which chat modes support scene videos.

🔄 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/7651 **Author:** [@JamesMowery](https://github.com/JamesMowery) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/16/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/convo-video-command` --- ### 📝 Commits (10+) - [`e7fca0f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e7fca0f24c6b272aba0b3969289ecc3ce9e4695d) feat(video): /video messages and Gallery Video in Conversation - [`73c7112`](https://github.com/Pasta-Devs/Marinara-Engine/commit/73c7112daa770908da55f32046bb2595ce699543) Merge branch 'staging' into feat/convo-video-command - [`10c6922`](https://github.com/Pasta-Devs/Marinara-Engine/commit/10c6922285d86a79a5803613f0ad88d52c490adf) fix(video): review follow-ups for Conversation video messages - [`295040e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/295040e09590b98b06f363e8027b6cec7cffca79) fix(video): maintainer review fixes for Conversation video messages - [`602ae60`](https://github.com/Pasta-Devs/Marinara-Engine/commit/602ae602dc328eb9295e5b405df0c38e065d50a9) fix(video): keep the Gallery's character picker under Selfie - [`bfa35de`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bfa35de5c3adaa8161791025ebaa83dab135fc3f) fix(video): save the video First frame in settings profiles - [`8dd425b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8dd425b96cb0f0b7f27540a23e633ca86740be43) Merge branch 'staging' into feat/convo-video-command - [`eba7c2f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/eba7c2f511dd7beb9b97825e74167a653e1ade4a) fix(video): review fixes for /video names, the video guard and the notice colour - [`0ca0fcc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0ca0fcc0d5930b35c8acbb5a13ed97c77b818ffc) fix(video): /video also refuses a name two characters share exactly - [`2aa81d0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2aa81d0a89e47a54ee4d435c607a083c6bbd1f7e) Merge branch 'staging' into feat/convo-video-command ### 📊 Changes **33 files changed** (+1956 additions, -262 deletions) <details> <summary>View changed files</summary> 📝 `docs/chats/slash-commands.md` (+1 -0) 📝 `docs/conversation/selfies.md` (+15 -0) 📝 `docs/media/scene-video.md` (+1 -1) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+130 -1) 📝 `packages/client/src/components/chat/ChatConversationSurface.tsx` (+9 -1) 📝 `packages/client/src/components/chat/ChatGallery.tsx` (+57 -43) 📝 `packages/client/src/components/chat/ChatGalleryPanel.tsx` (+4 -2) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+61 -0) 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+6 -0) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+3 -0) 📝 `packages/client/src/components/game/GameSurface.tsx` (+1 -1) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+1 -0) 📝 `packages/client/src/hooks/use-chat-gallery-actions.ts` (+3 -3) 📝 `packages/client/src/lib/slash-commands.ts` (+66 -0) 📝 `packages/client/src/localization/locales/en.json` (+26 -2) 📝 `packages/server/src/routes/gallery.routes.ts` (+152 -139) 📝 `packages/server/src/routes/generate.routes.ts` (+7 -1) 📝 `packages/server/src/routes/generate/conversation-prompt-formatting.ts` (+18 -0) 📝 `packages/server/src/services/generation/conversation-selfie-command-runtime.ts` (+103 -53) ➕ `packages/server/src/services/generation/conversation-video-runtime.ts` (+407 -0) _...and 13 more files_ </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`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #7649 Part of #7545 (item 3). @SpicyMarinara ## Why this change - Conversation chats could not make videos at all. A character could send a selfie, but there was no way to ask for a short video message, and the Conversation Gallery had no **Video** button or **Videos** tab. - A clip asked for this way should show what is happening in the chat right now, so it reads the recent conversation instead of only the character card. ## What changed - **`/video`** (or `/video Name`) and a **Video** button in the Conversation Gallery: a character sends a short video message. It arrives as a new message from that character and plays inline. The button uses the character picked in the Gallery, and shows whenever Illustrator is installed (selfies don't need to be on). A name that fits more than one character (`/video Smith` with Alice Smith and Bob Smith, or two characters both named Aster) picks no one and asks for the full name or a pick in the Gallery. - The Conversation Gallery now has the **Videos** tab, and **Animate illustration** on a picture makes a clip under the newest reply, sent by the picked character and written to continue that picture (it adds no "sent a video" note). - A **Video messages** section in the Conversation Illustrator card: **Video Connection**, and **First frame** for what the clip starts from (a new selfie, the avatar or sprite, a selfie with the avatar as fallback, or no picture). The selfie choices need Generated Selfies on and a Selfie Connection. The first frame is checked before any paid call, a selfie's prompt is reviewed together with the clip's, and pictures in other formats (WebP, AVIF) are converted to PNG instead of being dropped. - The clip shows the latest moment of the conversation: the AI writing it reads as many recent messages as Illustrator does for a picture (its **Agent Budget** context size), starting at the latest conversation start and skipping messages hidden from the AI (or from that character) and messages with no text. A selfie first frame reads the same messages, so the clip starts from that moment too. The video connection's **Video Prompting Instructions** guide the prompt. - Later replies get a short note that a video was sent, so the character knows what it sent. - A new editable prompt, **Conversation Video Message**, under **Settings › Generations › Video Generation Prompt Overrides**. - If a clip is saved but can't be attached to a message, it is still reported as made (with no message), a short notice says it is in the Gallery's Videos tab, and no empty message is left behind, including when the message was deleted while the clip was being made. - Works on chats using the built-in local model, like `/selfie`. - Roleplay Gallery animations also accept WebP/AVIF pictures now: `/generate-scene-video` uses the same shared picture reader and video helper. - Shared video code for the next items in #7545 (`services/video/chat-video-generation.ts`). The selfie runtime gains optional cancel, queue, preview and reviewed-prompt parameters for a selfie first frame; a character's own `[selfie]` doesn't use them and behaves as before. - Characters sending videos on their own is not part of this PR (#7545 item 6). `/selfie`, Roleplay and Game Mode are unchanged. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` Automated runs on `295040e09` (based on `staging` at `8521f04eb`): - `pnpm check`: passes. - Regression `convo-video-command`: passes. Through the real routes with fake text, image and ComfyUI services, it covers prompt preview, each First frame setting, the settings check before any prompt is written (also in preview), selfies off using the avatar, a WebP selfie reaching the video as PNG, the selfie prompt review and its override, the recent-conversation context for the video prompt and a selfie first frame (Illustrator's context size, conversation start, hidden and empty messages skipped, also after a reviewed prompt), animating a Gallery picture (newest reply, the picture's prompt, no sender note), the built-in local model, Roleplay being refused, and the history note. - Related regressions pass: the `video` regressions (including `inline-chat-videos`), the `gallery` and `prompt` regressions, `advanced-memory-recall`, `slash-command-usage`, `image-prompt-guidance`, `open-issues`. - Full `pnpm regression`: 882/882 pass. - Review fixes `eba7c2f51`, `0ca0fcc0d` and `d3b4e8e76` (on the `staging` merges): `pnpm check`, `pnpm localization:check`, and the `convo-video`, `video`, `gallery`, `slash`, `open-issues` and `localization` regressions pass; the new `/video` name check fails without the fix. Local CodeRabbit review of each commit: 0 findings. - Not run: `pnpm smoke:ui` / `pnpm regression:ui` (Playwright browsers not installed locally). ### Manual verification notes - Manually verify in a Conversation chat: `/video` sends a video message from the character that plays inline; `/video <name>` picks a character in a group chat; an unknown name lists the available characters. - Manually verify the Conversation Gallery shows **Video**, **Animate** and the **Videos** tab even with Generated Selfies off, and **Video** sends a message from the character picked in the Gallery. - Manually verify each **First frame** choice: selfie with avatar fallback (with and without a Selfie Connection, and with Generated Selfies off), new selfie, avatar or sprite, prompt only. - Manually verify a selfie first frame with a WebP image provider (for example Venice) starts the clip from the selfie, not the avatar. - Manually verify that after chatting about something specific, the clip (and a selfie first frame) shows that moment. - Manually verify **Animate illustration** on a Conversation Gallery picture puts the clip under the newest reply, sent by the character picked in the Gallery, and continues that picture. - Manually verify that with **Expose media prompts before sending** on, the review window shows the video prompt (and the selfie prompt for a selfie first frame), an edited selfie prompt is the one drawn, and **Cancel** makes nothing. - Manually verify `/video` in a chat using the built-in local model. - Manually verify the character's next reply knows it sent a video. - Manually verify the **Video messages** settings and an inline video message at a phone-sized width, in light and dark mode. - Manually verify `/selfie`, Roleplay and Game Mode videos behave as before. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README) as needed - [x] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) English docs updated: `docs/conversation/selfies.md` (new **Video messages** section), `docs/chats/slash-commands.md` (`/video`), `docs/media/scene-video.md` (pointer to video messages). Translations: #7650 ## UI evidence (if app <img width="640" height="685" alt="Screenshot from 2026-10-14 13-01-52" src="https://github.com/user-attachments/assets/fc0e5d80-52ae-4c23-ac50-3af4ad466293" /> <img width="640" height="685" alt="Screenshot from 2026-10-14 13-02-07" src="https://github.com/user-attachments/assets/c346a464-735b-43a8-82d7-04d4b01a009a" /> <img width="1345" height="777" alt="Screenshot from 2026-10-14 13-03-03" src="https://github.com/user-attachments/assets/6905ca53-0920-4956-9368-7ce3ec076d89" /> <img width="1345" height="777" alt="Screenshot from 2026-10-14 13-03-09" src="https://github.com/user-attachments/assets/57f4ca44-d76e-4df9-ba17-0d45062befd8" /> <img width="1174" height="930" alt="Screenshot from 2026-10-14 13-03-50" src="https://github.com/user-attachments/assets/572485f7-aa71-449b-9585-edc4fdbe429b" /> <img width="1656" height="191" alt="Screenshot from 2026-10-14 13-04-17" src="https://github.com/user-attachments/assets/22c0e872-4359-4240-ad74-a405fdeae1a1" /> <img width="616" height="875" alt="Screenshot from 2026-10-14 13-13-02" src="https://github.com/user-attachments/assets/a0122902-26f2-42a9-bc10-14d19ba2de0e" /> <img width="616" height="875" alt="Screenshot from 2026-10-14 13-13-25" src="https://github.com/user-attachments/assets/f3083074-f0ad-4b31-813f-4d8b89042ba2" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Send short, character-specific videos in Conversation chats with `/video`; optionally specify a character by name, or animate an image from the Gallery. * Review and edit video and selfie prompts before generation, with prompts informed by recent conversation context. * Configure video connections and first-frame preferences in chat settings. Videos can use a generated selfie, character avatar, selected Gallery image, or no image, depending on your settings. * If a video can’t be added to chat, it remains available in the Gallery. * **Documentation** * Added guidance for video messages and clarified which chat modes support scene videos. <!-- 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-24 04:08:12 +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#7857
No description provided.