[PR #7553] [MERGED] feat(video): add Video Prompting Instructions to video connections #7792

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

📋 Pull Request Information

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

Base: staging ← Head: feat/video-prompting-instructions


📝 Commits (5)

  • 0ba1a71 feat(video): add Video Prompting Instructions to video connections
  • 4724b15 fix(video): theme colours and a shorter help text for Video Prompting Instructions
  • 818fd84 test(video): cover the connection editor's save route for Video Prompting Instructions
  • dccc901 Merge branch 'staging' into feat/video-prompting-instructions
  • 76f53a6 Merge branch 'staging' into feat/video-prompting-instructions

📊 Changes

15 files changed (+287 additions, -8 deletions)

View changed files

📝 packages/client/src/components/connections/ConnectionEditor.tsx (+26 -0)
📝 packages/client/src/hooks/use-connections.ts (+1 -0)
📝 packages/client/src/lib/connection-transfer.ts (+8 -0)
📝 packages/client/src/localization/locales/en.json (+3 -0)
📝 packages/server/src/db/schema/connections.ts (+2 -0)
📝 packages/server/src/routes/gallery.routes.ts (+6 -1)
📝 packages/server/src/routes/game.routes.ts (+4 -0)
📝 packages/server/src/services/generation/image-prompt-instructions.ts (+11 -2)
📝 packages/server/src/services/storage/connections.storage.ts (+5 -0)
📝 packages/server/src/services/video/roleplay-video-direction.ts (+6 -1)
📝 packages/server/src/services/video/storyboard-animation-refinement.ts (+17 -3)
📝 packages/shared/src/constants/defaults.ts (+4 -1)
📝 packages/shared/src/schemas/connection.schema.ts (+1 -0)
📝 packages/shared/src/types/connection.ts (+2 -0)
➕ scripts/regressions/video-prompt-instructions.regression.ts (+191 -0)

📄 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 #7559
Part of #7545 (item 1 of 7).

Why this change

  • Image connections have Image Prompting Instructions that tell the AI writing image prompts what that image model expects. Video connections had nothing like it, so there was no way to tell the AI writing video prompts how a particular video model wants to be prompted (camera and motion wording, prompt length, audio cues, or a strict format some models require).

What changed

  • Video Generation connections now have a Video Prompting Instructions field, like Image Prompting Instructions on image connections. Use it to tell the AI that writes your video prompts what your video model expects, such as camera and motion wording, prompt length or audio cues.
  • It guides the AI that animates a Roleplay gallery image and Storyboard's Image-aware shot planning. A full sentence of it the AI copies word for word is removed from the video prompt.
  • Game scene videos, call clips and animated sprites use fixed prompt templates, so they don't use it yet.
  • The field is kept when you duplicate, export or import a connection.
  • Nothing that worked before stops working: connections without the field behave exactly as before.

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 commit 0ba1a7151 (based on staging at 171d45068):

  • pnpm check: passes (one existing lint warning in HomeProfessorMariChat.tsx, also on staging).
  • New regression video-prompt-instructions: passes. It fails when the server change is removed.
  • Related regressions pass: image-prompt-guidance, the 7 prompt regressions, scene-video-range, atlas-cloud-video-schema, swarmui-video-origin, and the 6 connection regressions.
  • Full pnpm regression (628 files): all pass, run on the full set of video branches built on this commit.
  • Not run: pnpm smoke:ui / pnpm regression:ui (Playwright browsers not installed locally).

Manual verification notes

  • Manually verify: open Connections, edit a Video Generation connection, and confirm the Video Prompting Instructions field appears, saves, and survives a page reload.
  • Manually verify: in a Roleplay chat, animate a Gallery image with Review prompt on, and confirm the written prompt follows the instructions (for example, "Always end with: camera slowly pushes in").
  • Manually verify: duplicate, export and re-import the connection and confirm the field is kept.
  • Manually verify: a video connection with the field empty animates exactly as before.
  • Manually verify: the field in light and dark mode, and on a phone-width window.

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)

UI evidence (if applicable)

Screenshot from 2026-10-13 14-23-18 Screenshot from 2026-10-13 14-23-09

Summary by CodeRabbit

Summary by CodeRabbit

  • New Features
    • Added editable video-generation instructions to connection settings. Instructions are saved with connections and included in connection exports and imports.
    • Roleplay scene previews and Storyboard animations now use the selected connection’s video instructions. Copied instruction text is removed from generated prompts when possible.
    • Added help text and an example in the connection editor.

🔄 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/7553 **Author:** [@JamesMowery](https://github.com/JamesMowery) **Created:** 10/13/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/video-prompting-instructions` --- ### 📝 Commits (5) - [`0ba1a71`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0ba1a7151de44fec3dd23f45909385e737a82965) feat(video): add Video Prompting Instructions to video connections - [`4724b15`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4724b15430f94293312de0a8162282872c1dabae) fix(video): theme colours and a shorter help text for Video Prompting Instructions - [`818fd84`](https://github.com/Pasta-Devs/Marinara-Engine/commit/818fd84025eb3ee676cbb74afaa0821349f7545b) test(video): cover the connection editor's save route for Video Prompting Instructions - [`dccc901`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dccc901cbb2a382525efc00ed78d1163246b09a5) Merge branch 'staging' into feat/video-prompting-instructions - [`76f53a6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/76f53a60d7846d0ee3e588a13a19bc22ffbf62cb) Merge branch 'staging' into feat/video-prompting-instructions ### 📊 Changes **15 files changed** (+287 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+26 -0) 📝 `packages/client/src/hooks/use-connections.ts` (+1 -0) 📝 `packages/client/src/lib/connection-transfer.ts` (+8 -0) 📝 `packages/client/src/localization/locales/en.json` (+3 -0) 📝 `packages/server/src/db/schema/connections.ts` (+2 -0) 📝 `packages/server/src/routes/gallery.routes.ts` (+6 -1) 📝 `packages/server/src/routes/game.routes.ts` (+4 -0) 📝 `packages/server/src/services/generation/image-prompt-instructions.ts` (+11 -2) 📝 `packages/server/src/services/storage/connections.storage.ts` (+5 -0) 📝 `packages/server/src/services/video/roleplay-video-direction.ts` (+6 -1) 📝 `packages/server/src/services/video/storyboard-animation-refinement.ts` (+17 -3) 📝 `packages/shared/src/constants/defaults.ts` (+4 -1) 📝 `packages/shared/src/schemas/connection.schema.ts` (+1 -0) 📝 `packages/shared/src/types/connection.ts` (+2 -0) ➕ `scripts/regressions/video-prompt-instructions.regression.ts` (+191 -0) </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 #7559 Part of #7545 (item 1 of 7). ## Why this change - Image connections have **Image Prompting Instructions** that tell the AI writing image prompts what that image model expects. Video connections had nothing like it, so there was no way to tell the AI writing video prompts how a particular video model wants to be prompted (camera and motion wording, prompt length, audio cues, or a strict format some models require). ## What changed - Video Generation connections now have a **Video Prompting Instructions** field, like **Image Prompting Instructions** on image connections. Use it to tell the AI that writes your video prompts what your video model expects, such as camera and motion wording, prompt length or audio cues. - It guides the AI that animates a Roleplay gallery image and Storyboard's **Image-aware shot planning**. A full sentence of it the AI copies word for word is removed from the video prompt. - Game scene videos, call clips and animated sprites use fixed prompt templates, so they don't use it yet. - The field is kept when you duplicate, export or import a connection. - Nothing that worked before stops working: connections without the field behave exactly as before. ## 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 commit `0ba1a7151` (based on `staging` at `171d45068`): - `pnpm check`: passes (one existing lint warning in `HomeProfessorMariChat.tsx`, also on `staging`). - New regression `video-prompt-instructions`: passes. It fails when the server change is removed. - Related regressions pass: `image-prompt-guidance`, the 7 `prompt` regressions, `scene-video-range`, `atlas-cloud-video-schema`, `swarmui-video-origin`, and the 6 `connection` regressions. - Full `pnpm regression` (628 files): all pass, run on the full set of video branches built on this commit. - Not run: `pnpm smoke:ui` / `pnpm regression:ui` (Playwright browsers not installed locally). ### Manual verification notes - Manually verify: open **Connections**, edit a Video Generation connection, and confirm the **Video Prompting Instructions** field appears, saves, and survives a page reload. - Manually verify: in a Roleplay chat, animate a Gallery image with **Review prompt** on, and confirm the written prompt follows the instructions (for example, "Always end with: camera slowly pushes in"). - Manually verify: duplicate, export and re-import the connection and confirm the field is kept. - Manually verify: a video connection with the field empty animates exactly as before. - Manually verify: the field in light and dark mode, and on a phone-width window. ## Docs and release impact - [x] 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) ## UI evidence (if applicable) <img width="907" height="203" alt="Screenshot from 2026-10-13 14-23-18" src="https://github.com/user-attachments/assets/0d7595a0-bab7-4d20-be8c-edf9808545e4" /> <img width="907" height="203" alt="Screenshot from 2026-10-13 14-23-09" src="https://github.com/user-attachments/assets/a1944c9c-54f3-42b5-9860-94ab4295d616" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit * **New Features** * Added editable video-generation instructions to connection settings. Instructions are saved with connections and included in connection exports and imports. * Roleplay scene previews and Storyboard animations now use the selected connection’s video instructions. Copied instruction text is removed from generated prompts when possible. * Added help text and an example in the connection editor. <!-- 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:07:33 +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#7792
No description provided.