[PR #3399] [MERGED] Add storyboard keyframe count and animation duration settings #5919

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

📋 Pull Request Information

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

Base: staging ← Head: agent/storyboard-keyframe-count-setting


📝 Commits (3)

  • 0392502 Add storyboard keyframe count setting
  • a159942 Add storyboard animation duration setting
  • c055e1f Merge branch 'staging' into agent/storyboard-keyframe-count-setting

📊 Changes

5 files changed (+272 additions, -18 deletions)

View changed files

📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+153 -0)
📝 packages/client/src/components/game/GameSurface.tsx (+58 -0)
📝 packages/server/src/routes/game.routes.ts (+47 -14)
📝 packages/shared/src/constants/game-storyboard-prompts.ts (+10 -4)
📝 packages/shared/src/types/chat.ts (+4 -0)

📄 Description

Linked issue

Closes #3397
Closes #3400

Why this change

  • Game Mode storyboards used a fixed keyframe target, so users could not tune how many storyboard illustrations or animation clips were generated per completed GM turn.
  • Storyboard animations also need per-chat duration control so users can tune clip pacing, cost, and render time without changing the global Video Generation scene fallback.

What changed

  • Added a Storyboards setting in Game Mode chat settings -> Agents for choosing 1 to 6 keyframes per turn.
  • Added an optional per-chat Storyboards animation clip duration setting that falls back to the global Video Generation scene duration when unset.
  • Persisted both settings in chat metadata and passed them into manual and automatic storyboard generation.
  • Reused the existing ${keyframeCount} prompt variable and updated built-in storyboard prompt templates to target the selected count.
  • Updated server validation and storyboard sanitization so one-keyframe storyboards are accepted while the keyframe maximum remains capped at six and storyboard duration input remains bounded.

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

Manual verification notes

  • Automated: pnpm.cmd install --frozen-lockfile rebuilt the broken local workspace links without changing package.json, pnpm-lock.yaml, pnpm-workspace.yaml, or .npmrc.
  • Automated: pnpm.cmd build passed outside the Codex filesystem sandbox.
  • Automated: pnpm.cmd check passed outside the Codex filesystem sandbox.
  • Manual browser/app verification was not rerun by Codex in this update.

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)

No install, update, release, or version-bearing files changed.

UI evidence (if applicable)

  • Not added in this update.

Summary by CodeRabbit

  • New Features

    • Added Game Mode storyboard controls for setting the number of keyframes per turn and adjusting animation clip duration.
    • Storyboards can now use a video-generation default duration when no custom value is set.
  • Bug Fixes

    • Improved storyboard generation consistency by normalizing and clamping keyframe and duration values.
    • Prevented stale storyboard variants from being reused when settings change.

🔄 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/3399 **Author:** [@thetopham](https://github.com/thetopham) **Created:** 7/9/2026 **Status:** ✅ Merged **Merged:** 7/9/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/storyboard-keyframe-count-setting` --- ### 📝 Commits (3) - [`0392502`](https://github.com/Pasta-Devs/Marinara-Engine/commit/03925023d74acfb43a2f1242cd9f55516f2b37a8) Add storyboard keyframe count setting - [`a159942`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a159942263e2d7cbcd11ef9c04b863554ffccb58) Add storyboard animation duration setting - [`c055e1f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c055e1f6247603273e17b64eb1955570bdb8e4da) Merge branch 'staging' into agent/storyboard-keyframe-count-setting ### 📊 Changes **5 files changed** (+272 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+153 -0) 📝 `packages/client/src/components/game/GameSurface.tsx` (+58 -0) 📝 `packages/server/src/routes/game.routes.ts` (+47 -14) 📝 `packages/shared/src/constants/game-storyboard-prompts.ts` (+10 -4) 📝 `packages/shared/src/types/chat.ts` (+4 -0) </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #3397 Closes #3400 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - Game Mode storyboards used a fixed keyframe target, so users could not tune how many storyboard illustrations or animation clips were generated per completed GM turn. - Storyboard animations also need per-chat duration control so users can tune clip pacing, cost, and render time without changing the global Video Generation scene fallback. ## What changed <!-- List the key changes in this PR --> - Added a Storyboards setting in Game Mode chat settings -> Agents for choosing 1 to 6 keyframes per turn. - Added an optional per-chat Storyboards animation clip duration setting that falls back to the global Video Generation scene duration when unset. - Persisted both settings in chat metadata and passed them into manual and automatic storyboard generation. - Reused the existing `${keyframeCount}` prompt variable and updated built-in storyboard prompt templates to target the selected count. - Updated server validation and storyboard sanitization so one-keyframe storyboards are accepted while the keyframe maximum remains capped at six and storyboard duration input remains bounded. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [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 <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Automated: `pnpm.cmd install --frozen-lockfile` rebuilt the broken local workspace links without changing `package.json`, `pnpm-lock.yaml`, `pnpm-workspace.yaml`, or `.npmrc`. - Automated: `pnpm.cmd build` passed outside the Codex filesystem sandbox. - Automated: `pnpm.cmd check` passed outside the Codex filesystem sandbox. - Manual browser/app verification was not rerun by Codex in this update. ## 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) No install, update, release, or version-bearing files changed. ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for UI changes --> - Not added in this update. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added Game Mode storyboard controls for setting the number of keyframes per turn and adjusting animation clip duration. * Storyboards can now use a video-generation default duration when no custom value is set. * **Bug Fixes** * Improved storyboard generation consistency by normalizing and clamping keyframe and duration values. * Prevented stale storyboard variants from being reused when settings change. <!-- 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:05:07 +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#5919
No description provided.