[PR #3307] [MERGED] [codex] Add conversation selfies, folder picks, and call video clips #5873

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3307
Author: @SpicyMarinara
Created: 7/6/2026
Status: ✅ Merged
Merged: 7/6/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/conversation-selfie-folder-select


📝 Commits (10+)

  • 992ccd6 Add conversation gallery selfies and folder setup picks
  • a89992c Add Seedance video generation support
  • 38a1b75 Fix Seedance video result parsing
  • 47a4ebd Add gallery uploads for call video clips
  • 29f6d0c Allow Seedance data URI references
  • 8845652 Clarify Seedance public reference requirement
  • 5640bbe Add Seedance temporary reference uploads
  • 4887f5a Fix Seedance temporary reference upload form
  • 9bf90c6 Frame call video references for Seedance
  • 03d9bdf Loosen call talking clip motion prompt

📊 Changes

33 files changed (+2515 additions, -282 deletions)

View changed files

📝 .env.example (+5 -0)
📝 CHANGELOG.md (+11 -1)
📝 docs/CONFIGURATION.md (+4 -2)
📝 docs/REMOTE_ACCESS.md (+1 -1)
📝 docs/SCENE_VIDEO_GENERATION.md (+4 -0)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+116 -14)
📝 packages/client/src/components/chat/ChatArea.tsx (+21 -0)
📝 packages/client/src/components/chat/ChatCommonOverlays.tsx (+7 -0)
📝 packages/client/src/components/chat/ChatConversationSurface.tsx (+9 -0)
📝 packages/client/src/components/chat/ChatGallery.tsx (+73 -2)
📝 packages/client/src/components/chat/ChatGalleryDrawer.tsx (+7 -0)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+186 -27)
📝 packages/client/src/components/chat/ConversationCallSurface.tsx (+109 -49)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+183 -36)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+82 -2)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+77 -23)
📝 packages/client/src/hooks/use-characters.ts (+61 -0)
📝 packages/client/src/hooks/use-gallery.ts (+12 -0)
📝 packages/client/src/lib/tts-service.ts (+45 -16)
📝 packages/server/src/config/env-watcher.ts (+6 -0)

...and 13 more files

📄 Description

Summary

Adds the Conversation Gallery selfie shortcut, folder-based character selection in setup wizards, and the first full pass of Conversation Call video-clip support for generated, uploaded, trimmed, and cue-synced character presence clips.

Why

This PR collects the maintainer-requested Conversation polish and video-call presence work into one staging-bound branch. It makes common gallery/setup actions faster, gives users a practical Seedance/OpenRouter/Google video-generation path for call clips, and makes character video presence feel less static during audio calls.

Changes

  • Adds a Conversation-mode Gallery Selfie button that generates a character selfie on demand and saves it to the chat gallery.
  • Supports selecting which character to selfie in group conversations.
  • Adds POST /gallery/:chatId/selfie, reusing Conversation selfie settings, image-generation defaults, avatar references, debug prompt logging, and local sidecar prompt generation where configured.
  • Adds Add from Folder controls to Conversation setup, Roleplay setup, and Game party setup while preserving Roleplay first-message greeting behavior.
  • Adds Seedance 2.0 as a Video Generation connection option and fixes Seedance result parsing for completed jobs that return MP4 URLs in data.results[].
  • Adds temporary public reference-frame uploads for Seedance, with clearer setup errors when a provider requires publicly reachable HTTPS first/last-frame URLs.
  • Sends framed 16:9 avatar references for call-video generation so providers get stable first/final-frame anchors and avoid cropping the character's head/face.
  • Adds generated and uploaded Conversation Call video clips in Gallery, including standard idle/talking/laughing/angry/crying/sighing clips, custom clips, delete support, and trim points for clipping bad starts/ends.
  • Queues Character Gallery call-clip generation one clip at a time and keeps clip generation status scoped to the specific requested slot.
  • Keeps provider-generated call videos silent during calls and Gallery previews so they do not overlap Marinara TTS.
  • Tightens call-video prompts around locked camera, loop return, current avatar references, natural talking/reaction motion, and custom action clips.
  • Adds sparse custom call clip generation through call commands, with the command prompt used as the action and the character returning to the starting pose by the final frame.
  • Sequences character video clips from ordered TTS cues during calls, so lines like [sighs] I thought so [soft laugh] play sighing, talking, and laughing clips in order.
  • Updates the v2.1.0 changelog for the new gallery, setup, Seedance, and call-video behavior.

Validation

  • pnpm --filter @marinara-engine/shared build
  • pnpm --filter @marinara-engine/server lint
  • pnpm --filter @marinara-engine/client lint
  • pnpm --filter @marinara-engine/client exec tsc --noEmit
  • git diff --check

Manual Verification Needed

  • Manually verify Conversation Gallery selfie generation with a single-character DM and a group conversation selector.
  • Manually verify setup wizard folder adds in Conversation, Roleplay, and Game modes.
  • Manually verify Roleplay folder adds still create expected initial greetings.
  • Manually verify Seedance 2.0 video connection setup, temporary reference-frame uploads, and provider errors when public references are not available.
  • Manually verify Character Gallery clip generation one slot at a time, plus uploaded clip playback, delete, and trim behavior.
  • Manually verify Conversation Call playback with idle/talking/reaction clips enabled, including [sighs], [exhale], [chuckle], [giggle], crying, and angry cues.

Linked Issue

Maintainer-requested feature sweep; no single linked issue covers the full PR scope.

Summary by CodeRabbit

  • New Features

    • Added Seedance 2.0 video generation support, including new configuration options and provider defaults.
    • Added conversation selfies from chat, plus character selection when multiple participants are present.
    • Enabled uploading MP4 clips for character and persona galleries, with replacement support and higher custom clip capacity.
    • Added folder-based bulk character selection in setup wizards.
  • Bug Fixes

    • Improved call-video cue timing and playback behavior for more reliable reactions and TTS chunk handling.
    • Refined video reference handling for better image framing and upload workflows.
  • Documentation

    • Updated setup and configuration docs for new video and reference-image settings.

🔄 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/3307 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/6/2026 **Status:** ✅ Merged **Merged:** 7/6/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/conversation-selfie-folder-select` --- ### 📝 Commits (10+) - [`992ccd6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/992ccd68a6a7caae6c91ec9644eba9feeef6360c) Add conversation gallery selfies and folder setup picks - [`a89992c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a89992c17310980ebfec7668b7420a45616e26d2) Add Seedance video generation support - [`38a1b75`](https://github.com/Pasta-Devs/Marinara-Engine/commit/38a1b75ffe4382a8e33376df9ef222424817c5f6) Fix Seedance video result parsing - [`47a4ebd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/47a4ebd0329dab8097da239053147b32b414aec9) Add gallery uploads for call video clips - [`29f6d0c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/29f6d0c68a86dc3aeb329a07547d3e8184874a4b) Allow Seedance data URI references - [`8845652`](https://github.com/Pasta-Devs/Marinara-Engine/commit/884565292756cf70239f7025776b57316c4a0e41) Clarify Seedance public reference requirement - [`5640bbe`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5640bbe871bf4d533e7b3ab6f3abed2b6796fb79) Add Seedance temporary reference uploads - [`4887f5a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4887f5a4fbb009e8e949e6258732562e10632919) Fix Seedance temporary reference upload form - [`9bf90c6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9bf90c695ed69e4711fa8e1b7c78912bccb029f9) Frame call video references for Seedance - [`03d9bdf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/03d9bdfd22f4ed34202020101c30aad38bc77f37) Loosen call talking clip motion prompt ### 📊 Changes **33 files changed** (+2515 additions, -282 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+5 -0) 📝 `CHANGELOG.md` (+11 -1) 📝 `docs/CONFIGURATION.md` (+4 -2) 📝 `docs/REMOTE_ACCESS.md` (+1 -1) 📝 `docs/SCENE_VIDEO_GENERATION.md` (+4 -0) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+116 -14) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+21 -0) 📝 `packages/client/src/components/chat/ChatCommonOverlays.tsx` (+7 -0) 📝 `packages/client/src/components/chat/ChatConversationSurface.tsx` (+9 -0) 📝 `packages/client/src/components/chat/ChatGallery.tsx` (+73 -2) 📝 `packages/client/src/components/chat/ChatGalleryDrawer.tsx` (+7 -0) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+186 -27) 📝 `packages/client/src/components/chat/ConversationCallSurface.tsx` (+109 -49) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+183 -36) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+82 -2) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+77 -23) 📝 `packages/client/src/hooks/use-characters.ts` (+61 -0) 📝 `packages/client/src/hooks/use-gallery.ts` (+12 -0) 📝 `packages/client/src/lib/tts-service.ts` (+45 -16) 📝 `packages/server/src/config/env-watcher.ts` (+6 -0) _...and 13 more files_ </details> ### 📄 Description ## Summary Adds the Conversation Gallery selfie shortcut, folder-based character selection in setup wizards, and the first full pass of Conversation Call video-clip support for generated, uploaded, trimmed, and cue-synced character presence clips. ## Why This PR collects the maintainer-requested Conversation polish and video-call presence work into one staging-bound branch. It makes common gallery/setup actions faster, gives users a practical Seedance/OpenRouter/Google video-generation path for call clips, and makes character video presence feel less static during audio calls. ## Changes - Adds a Conversation-mode Gallery `Selfie` button that generates a character selfie on demand and saves it to the chat gallery. - Supports selecting which character to selfie in group conversations. - Adds `POST /gallery/:chatId/selfie`, reusing Conversation selfie settings, image-generation defaults, avatar references, debug prompt logging, and local sidecar prompt generation where configured. - Adds `Add from Folder` controls to Conversation setup, Roleplay setup, and Game party setup while preserving Roleplay first-message greeting behavior. - Adds Seedance 2.0 as a Video Generation connection option and fixes Seedance result parsing for completed jobs that return MP4 URLs in `data.results[]`. - Adds temporary public reference-frame uploads for Seedance, with clearer setup errors when a provider requires publicly reachable HTTPS first/last-frame URLs. - Sends framed 16:9 avatar references for call-video generation so providers get stable first/final-frame anchors and avoid cropping the character's head/face. - Adds generated and uploaded Conversation Call video clips in Gallery, including standard idle/talking/laughing/angry/crying/sighing clips, custom clips, delete support, and trim points for clipping bad starts/ends. - Queues Character Gallery call-clip generation one clip at a time and keeps clip generation status scoped to the specific requested slot. - Keeps provider-generated call videos silent during calls and Gallery previews so they do not overlap Marinara TTS. - Tightens call-video prompts around locked camera, loop return, current avatar references, natural talking/reaction motion, and custom action clips. - Adds sparse custom call clip generation through call commands, with the command prompt used as the action and the character returning to the starting pose by the final frame. - Sequences character video clips from ordered TTS cues during calls, so lines like `[sighs] I thought so [soft laugh]` play sighing, talking, and laughing clips in order. - Updates the v2.1.0 changelog for the new gallery, setup, Seedance, and call-video behavior. ## Validation - `pnpm --filter @marinara-engine/shared build` - `pnpm --filter @marinara-engine/server lint` - `pnpm --filter @marinara-engine/client lint` - `pnpm --filter @marinara-engine/client exec tsc --noEmit` - `git diff --check` ## Manual Verification Needed - Manually verify Conversation Gallery selfie generation with a single-character DM and a group conversation selector. - Manually verify setup wizard folder adds in Conversation, Roleplay, and Game modes. - Manually verify Roleplay folder adds still create expected initial greetings. - Manually verify Seedance 2.0 video connection setup, temporary reference-frame uploads, and provider errors when public references are not available. - Manually verify Character Gallery clip generation one slot at a time, plus uploaded clip playback, delete, and trim behavior. - Manually verify Conversation Call playback with idle/talking/reaction clips enabled, including `[sighs]`, `[exhale]`, `[chuckle]`, `[giggle]`, crying, and angry cues. ## Linked Issue Maintainer-requested feature sweep; no single linked issue covers the full PR scope. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added Seedance 2.0 video generation support, including new configuration options and provider defaults. * Added conversation selfies from chat, plus character selection when multiple participants are present. * Enabled uploading MP4 clips for character and persona galleries, with replacement support and higher custom clip capacity. * Added folder-based bulk character selection in setup wizards. * **Bug Fixes** * Improved call-video cue timing and playback behavior for more reliable reactions and TTS chunk handling. * Refined video reference handling for better image framing and upload workflows. * **Documentation** * Updated setup and configuration docs for new video and reference-image settings. <!-- 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-22 04:20:23 +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#5873
No description provided.