[PR #4030] [MERGED] Add LTX Director storyboard temporal prompting #6208

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

📋 Pull Request Information

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

Base: staging ← Head: dev/ltx-director-storyboard


📝 Commits (9)

  • f7914a7 docs: plan LTX storyboard prompt relay
  • 95ff49a docs: refine LTX Director storyboard plan
  • f1e8108 docs: move LTX Director plan to development
  • b3a4bcf feat: add LTX Director storyboard prompting
  • 044aab2 fix: allow requested LTX scene text
  • 944303d refine LTX Director image-to-video prompts
  • 9810363 refine storyboard first-frame prompts
  • 013e1fe Merge branch 'staging' into dev/ltx-director-storyboard
  • f484c5f refactor: centralize ComfyUI video frame length

📊 Changes

7 files changed (+686 additions, -26 deletions)

View changed files

➕ docs/development/ltx-director-storyboard.md (+202 -0)
📝 packages/server/src/routes/game.routes.ts (+72 -3)
📝 packages/server/src/services/video/video-generation.ts (+71 -13)
📝 packages/shared/src/constants/game-storyboard-image-prompts.ts (+13 -0)
📝 packages/shared/src/constants/game-storyboard-prompts.ts (+48 -0)
📝 packages/shared/src/constants/game-video-prompts.ts (+11 -0)
📝 scripts/regressions/prompt.regression.ts (+269 -10)

📄 Description

Linked issue

Closes #4029

Why this change

  • Storyboard generated one rich first-frame prompt and one action script, but the LTX Director workflow received the combined text only as global_prompt. With no pipe-delimited local_prompts, Director intentionally used its single-prompt path instead of temporal masking.
  • The first-frame illustration path also added the keyframe title and redundant prompt metadata around an already complete T=0 description, which could distract natural-language image models such as Krea 2.

What changed

  • Added opt-in LTX Director Storyboard, Storyboard First Frame, and LTX Director Video prompt presets without changing existing prompt strings or defaults.
  • Made the LTX planner emit one faithful T=0 image paragraph and 2–4 focused temporal action segments separated by |.
  • Kept the Director global prompt separate from local motion, camera, environmental, dialogue, and ending-hold segments.
  • Added narrow ComfyUI substitutions for %global_prompt%, %local_prompts%, %segment_lengths%, and %duration_seconds%, while retaining all existing placeholders and legacy fallbacks.
  • Left segment_lengths empty for automatic equal timing and kept one reference illustration at frame zero.
  • Added debug logging for the resolved duration, frame count, reference filename, global prompt, local segments, and queued ComfyUI prompt ID.
  • Added focused prompt/workflow regressions and a concise development plan.

Validation

Commands and host checks already run:

  • pnpm regression:prompt — passed

  • pnpm lint — passed

  • pnpm localization:check — passed

  • git diff --check — passed

  • pnpm build — passed

  • live service restart — /api/health reports 2.3.4+981036348120

  • pnpm check — blocked before lint/build by the existing Impeccable context loader did not return valid JSON guard

  • 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

Manual verification notes

  • Select LTX Director Storyboard, Storyboard First Frame, and LTX Director Video in Chat Settings while using the desired global Image Style.
  • Generate a six-second three-beat storyboard clip with debug mode enabled.
  • Verify the first-frame prompt contains no keyframe title or storyboard wrapper labels.
  • Verify LTX Director receives two | delimiters, empty segment_lengths, 96 frames at 16 FPS, and one reference image at frame zero.
  • Inspect the queued prompt ID in ComfyUI History and compare node 3678 inputs with Marinara's debug log.
  • Compare motion quality with and without the custom LTX model/LoRA stack before attributing remaining low-motion output to prompt construction.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

Development documentation was added at docs/development/ltx-director-storyboard.md. No version bump or release-file change is included.

UI evidence (if applicable)

No UI layout changes. Manual generated-image/video evidence remains to be added during review.

Summary by CodeRabbit

  • New Features

    • Added optional LTX Director storyboard and video generation workflows.
    • Added built-in templates for storyboard planning, first-frame images, and continuous video prompts.
    • Supports segmented narration beats with local prompts for improved shot planning.
    • Added ComfyUI workflow support for global prompts, local prompts, and segment lengths.
  • Tests

    • Added regression coverage for prompt formatting, segmentation, template selection, and workflow compatibility.
  • Documentation

    • Documented the LTX Director storyboard implementation and acceptance criteria.

🔄 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/4030 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/24/2026 **Status:** ✅ Merged **Merged:** 7/24/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `dev/ltx-director-storyboard` --- ### 📝 Commits (9) - [`f7914a7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f7914a743fdc477b388a4e7da03377e3e893ed5c) docs: plan LTX storyboard prompt relay - [`95ff49a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/95ff49a80c5d4c7a10b817c2909f9fc05185996c) docs: refine LTX Director storyboard plan - [`f1e8108`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f1e8108dc1c2fbf2ed74a6dc8ae9e3eef2c220c8) docs: move LTX Director plan to development - [`b3a4bcf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b3a4bcf18dea0a5afba846eb487026f1481c8bc1) feat: add LTX Director storyboard prompting - [`044aab2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/044aab2e735ca22ae8f70b2efc1c91d979fc4bb2) fix: allow requested LTX scene text - [`944303d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/944303d77f9b32e3fc2d276a7c5ce63eda76536b) refine LTX Director image-to-video prompts - [`9810363`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9810363481208c3b6ba04c40222e32f29ff75de6) refine storyboard first-frame prompts - [`013e1fe`](https://github.com/Pasta-Devs/Marinara-Engine/commit/013e1fe48100bad34b7dd448949ac3e57668fd92) Merge branch 'staging' into dev/ltx-director-storyboard - [`f484c5f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f484c5f2bf1c29f3b9d73a4759145135eab25f85) refactor: centralize ComfyUI video frame length ### 📊 Changes **7 files changed** (+686 additions, -26 deletions) <details> <summary>View changed files</summary> ➕ `docs/development/ltx-director-storyboard.md` (+202 -0) 📝 `packages/server/src/routes/game.routes.ts` (+72 -3) 📝 `packages/server/src/services/video/video-generation.ts` (+71 -13) 📝 `packages/shared/src/constants/game-storyboard-image-prompts.ts` (+13 -0) 📝 `packages/shared/src/constants/game-storyboard-prompts.ts` (+48 -0) 📝 `packages/shared/src/constants/game-video-prompts.ts` (+11 -0) 📝 `scripts/regressions/prompt.regression.ts` (+269 -10) </details> ### 📄 Description ## Linked issue Closes #4029 ## Why this change - Storyboard generated one rich first-frame prompt and one action script, but the LTX Director workflow received the combined text only as `global_prompt`. With no pipe-delimited `local_prompts`, Director intentionally used its single-prompt path instead of temporal masking. - The first-frame illustration path also added the keyframe title and redundant prompt metadata around an already complete T=0 description, which could distract natural-language image models such as Krea 2. ## What changed - Added opt-in **LTX Director Storyboard**, **Storyboard First Frame**, and **LTX Director Video** prompt presets without changing existing prompt strings or defaults. - Made the LTX planner emit one faithful T=0 image paragraph and 2–4 focused temporal action segments separated by `|`. - Kept the Director global prompt separate from local motion, camera, environmental, dialogue, and ending-hold segments. - Added narrow ComfyUI substitutions for `%global_prompt%`, `%local_prompts%`, `%segment_lengths%`, and `%duration_seconds%`, while retaining all existing placeholders and legacy fallbacks. - Left `segment_lengths` empty for automatic equal timing and kept one reference illustration at frame zero. - Added debug logging for the resolved duration, frame count, reference filename, global prompt, local segments, and queued ComfyUI prompt ID. - Added focused prompt/workflow regressions and a concise development plan. ## Validation Commands and host checks already run: - `pnpm regression:prompt` — passed - `pnpm lint` — passed - `pnpm localization:check` — passed - `git diff --check` — passed - `pnpm build` — passed - live service restart — `/api/health` reports `2.3.4+981036348120` - `pnpm check` — blocked before lint/build by the existing `Impeccable context loader did not return valid JSON` guard - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] 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` ### Manual verification notes - Select **LTX Director Storyboard**, **Storyboard First Frame**, and **LTX Director Video** in Chat Settings while using the desired global Image Style. - Generate a six-second three-beat storyboard clip with debug mode enabled. - Verify the first-frame prompt contains no keyframe title or storyboard wrapper labels. - Verify LTX Director receives two `|` delimiters, empty `segment_lengths`, 96 frames at 16 FPS, and one reference image at frame zero. - Inspect the queued prompt ID in ComfyUI History and compare node `3678` inputs with Marinara's debug log. - Compare motion quality with and without the custom LTX model/LoRA stack before attributing remaining low-motion output to prompt construction. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) Development documentation was added at `docs/development/ltx-director-storyboard.md`. No version bump or release-file change is included. ## UI evidence (if applicable) No UI layout changes. Manual generated-image/video evidence remains to be added during review. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added optional LTX Director storyboard and video generation workflows. * Added built-in templates for storyboard planning, first-frame images, and continuous video prompts. * Supports segmented narration beats with local prompts for improved shot planning. * Added ComfyUI workflow support for global prompts, local prompts, and segment lengths. * **Tests** * Added regression coverage for prompt formatting, segmentation, template selection, and workflow compatibility. * **Documentation** * Documented the LTX Director storyboard implementation and acceptance criteria. <!-- 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-23 04:08:11 +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#6208
No description provided.