[GH-ISSUE #4459] [Issue]: Storyboard formatter settings can duplicate characters or drop appearance in Krea 2 Game images #2422

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

Originally created by @thetopham on GitHub (Aug 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4459

Originally assigned to: @thetopham on GitHub.

Summary

Game Mode Storyboard can lose character identity, duplicate a character, or produce split/fused compositions depending on the selected Storyboard illustration formatter and Attach Card Appearance setting.

Follow-up testing changed the original diagnosis. Send Avatar References initially correlated with twins under a mismatched prompt preset, but that result stopped reproducing after switching to the Krea 2/LTX-oriented Storyboard settings. The remaining reproducible problem is the interaction between:

  • Use Storyboard Template;
  • Storyboard Illustration Prompt (Game Scene Illustration versus Storyboard First Frame);
  • Attach Card Appearance;
  • the planner-generated ${scenePrompt};
  • ComfyUI Krea 2's handling of differently structured text prompts.

The tested Krea 2 workflow has no reference-image nodes or Marinara reference placeholders. Avatar images therefore cannot reach that workflow.

Expected behavior

  • Each named visible character or persona should appear once unless the scene explicitly requests another representation.
  • Attach Card Appearance should preserve identity without duplicating the subject or causing split-screen/fused compositions.
  • Turning Use Storyboard Template on should not silently discard appearance grounding supplied by an enabled appearance setting.
  • A formatter should make it clear whether it consumes ${appearanceNotesBlock} and ${referenceHandlingLine}.
  • Send Avatar References should be disabled or marked unsupported when the selected ComfyUI workflow has no reference-image placeholders.
  • Three keyframes should produce three distinct frame images; details from separate planned beats should not be fused into one frame.

Actual behavior

The beta tester reported the following progression:

Configuration/result Observed behavior
Earlier Google/Omni-oriented Storyboard prompt settings; references only Initially appeared prone to twins.
Earlier settings; appearance only Prone to twins, split-screen compositions, and fusion/overlap of scene beats.
Krea/LTX-oriented settings; references only Twin effect no longer reproduced.
Krea/LTX-oriented settings; appearance enabled Twin effect returned, although split/fused beats were no longer observed.
Krea/LTX-oriented settings; appearance disabled Generated generic people rather than the saved character/persona appearance.
Storyboard First Frame, Template On Character/persona identity could be generic or incorrect.
Template Off with appearance enabled Identity became substantially more accurate, but the duplication risk from the appearance path still needs controlled reproduction.

The tester's avatar images were generated directly in ComfyUI with the same Krea 2 model and the same appearance-description text stored in Marinara. A generated subject resembling an avatar is therefore not proof that the avatar image was transmitted; the shared text/model can independently produce similar likeness.

Adding duplicate, clone, or twins to the negative prompt did not reliably prevent the behavior.

Steps to reproduce

  1. Open a Game Mode chat with Storyboard installed and three keyframes per turn.
  2. Use a character and persona with saved appearance descriptions and avatar images.
  3. Select the supplied ComfyUI Krea 2 workflow. Confirm that it contains no %reference_image%, %reference_image_name%, or numbered reference placeholders.
  4. Select the Krea/LTX-oriented Storyboard settings:
    • Animation Planner: LTX Director Storyboard
    • Storyboard Illustration Prompt: Storyboard First Frame
    • Storyboard Video Prompt: LTX Director Video
  5. Enable Use Storyboard Template.
  6. Generate a controlled scene with Attach Card Appearance off, then on.
  7. Compare identity preservation, visible subject count, and the compiled prompt.
  8. Repeat with Use Storyboard Template off.
  9. Repeat the same fixed planned frame with Game Scene Illustration selected instead of Storyboard First Frame.
  10. Hold the image seed fixed and test Send Avatar References off/on as a negative control; the provider-visible payload should not change for this no-placeholder workflow when the selected formatter omits reference handling.

Environment

  • Marinara Engine version: Reporter version not provided; current staging source inspected at 4f853d37c1adcbed7cad4a83cb3c16a353bde270
  • Storyboard package version: Not provided
  • Image model: Krea 2; tester changed the supplied workflow's model variant for an RTX 5070 Ti
  • Image connection/provider adapter: ComfyUI
  • Workflow: Supplied txt2img workflow with %prompt%, %negative_prompt%, and %seed%; no reference-image nodes/placeholders; batch_size: 1; cfg: 1
  • Storyboard keyframes per turn: 3
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

The reporter's exported connection, exact Storyboard settings, and images have not been attached directly to this issue. The Discord screenshots were referenced in the report but are not available here.

Logs, screenshots, or video

No debug prompt log or resolved ComfyUI request payload has been attached.

For the next controlled reproduction, capture:

  • the complete Storyboard settings selection;
  • planner messages and returned keyframe JSON;
  • ${scenePrompt}/keyframe.imagePrompt for each of the three frames;
  • the selected illustration formatter and Template On/Off state;
  • the final compiled positive and negative prompts;
  • the unresolved workflow and resolved ComfyUI /prompt payload, with image data redacted;
  • the fixed seed and generated image for every matrix row;
  • a check that each frame contains only its own planned beat.

Additional context

Current source explains why the controls can produce counterintuitive results:

  • packages/server/src/routes/game.routes.ts always collects matched appearance descriptions for the Storyboard planner with includeCharacterDescriptions: true. This gives the planner appearance context, but does not guarantee that every trait is copied into its returned ${scenePrompt}.
  • The final frame-render stage separately uses Attach Card Appearance to decide whether characterDescriptions are available to the final formatter.
  • With Use Storyboard Template off, packages/server/src/services/game/game-asset-generation.ts builds directPromptWithAppearance from the planner's scene prompt, final visibility rule, and ${appearanceNotesBlock}.
  • With the template on, the selected formatter decides which variables survive. Storyboard First Frame is only ${scenePrompt} ${locationHandlingLine} ${imagePromptInstructionsLine} and omits ${appearanceNotesBlock}. Appearance identity is therefore lost whenever the planner did not fully reproduce it in ${scenePrompt}, even if Attach Card Appearance is enabled.
  • Game Scene Illustration includes ${appearanceNotesBlock} along with title, scene, visibility, narrative purpose, character list, reference handling, location, art direction, and image instructions. This is a denser prompt shape and was reported to produce twins and split/fused compositions with local Krea 2.
  • packages/server/src/services/image/image-generation.ts only inserts ComfyUI references where the workflow contains Marinara reference placeholders. The supplied workflow contains none, so the avatar pixels are not sent to Krea 2.
  • At cfg: 1, the negative prompt is effectively inert under ComfyUI's CFG1 optimization unless that optimization is disabled. The anti-duplication negative terms are therefore not a reliable test of subject-count control.

The observed control behavior is consistent with an unclear formatter contract and inconsistent appearance delivery. It does not yet prove that repeated appearance text alone causes Krea 2's twin output; fixed-plan, fixed-seed prompt comparisons are still required.

Suggested regression and fix boundary:

  • Make appearance delivery explicit and consistent for Template On and Template Off.
  • Do not silently drop enabled appearance grounding because the selected formatter omits ${appearanceNotesBlock}; either compose it safely or make formatter capabilities visible in the UI.
  • Avoid repeating the same appearance inventory in both ${scenePrompt} and ${appearanceNotesBlock} when the planner already emitted it.
  • Detect ComfyUI reference-placeholder support and disable/warn on Send Avatar References when unsupported.
  • Compare fixed planner output and fixed seeds across both illustration formatters and all relevant toggles.
  • Assert one intended instance per named visible subject and one planned beat per generated frame.
  • Bundle or label provider-optimized Storyboard presets so users do not unknowingly combine Google/Omni-oriented formatters with local Krea/LTX workflows.

Related issue:

  • #4458 tracks reorganizing and clarifying Shared, Roleplay, and Game controls in the Storyboard Agent settings UI. This issue is the separate prompt/identity behavior behind those controls.

Separate report:

  • The tester also reported that the entire Game Mode chat log disappeared during testing. No reproduction or evidence connects that event to image generation, so it should be tracked separately if it recurs.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Aug 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4459 Originally assigned to: @thetopham on GitHub. ## Summary Game Mode Storyboard can lose character identity, duplicate a character, or produce split/fused compositions depending on the selected Storyboard illustration formatter and **Attach Card Appearance** setting. Follow-up testing changed the original diagnosis. **Send Avatar References** initially correlated with twins under a mismatched prompt preset, but that result stopped reproducing after switching to the Krea 2/LTX-oriented Storyboard settings. The remaining reproducible problem is the interaction between: - **Use Storyboard Template**; - **Storyboard Illustration Prompt** (`Game Scene Illustration` versus `Storyboard First Frame`); - **Attach Card Appearance**; - the planner-generated `${scenePrompt}`; - ComfyUI Krea 2's handling of differently structured text prompts. The tested Krea 2 workflow has no reference-image nodes or Marinara reference placeholders. Avatar images therefore cannot reach that workflow. ## Expected behavior - Each named visible character or persona should appear once unless the scene explicitly requests another representation. - **Attach Card Appearance** should preserve identity without duplicating the subject or causing split-screen/fused compositions. - Turning **Use Storyboard Template** on should not silently discard appearance grounding supplied by an enabled appearance setting. - A formatter should make it clear whether it consumes `${appearanceNotesBlock}` and `${referenceHandlingLine}`. - **Send Avatar References** should be disabled or marked unsupported when the selected ComfyUI workflow has no reference-image placeholders. - Three keyframes should produce three distinct frame images; details from separate planned beats should not be fused into one frame. ## Actual behavior The beta tester reported the following progression: | Configuration/result | Observed behavior | | --- | --- | | Earlier Google/Omni-oriented Storyboard prompt settings; references only | Initially appeared prone to twins. | | Earlier settings; appearance only | Prone to twins, split-screen compositions, and fusion/overlap of scene beats. | | Krea/LTX-oriented settings; references only | Twin effect no longer reproduced. | | Krea/LTX-oriented settings; appearance enabled | Twin effect returned, although split/fused beats were no longer observed. | | Krea/LTX-oriented settings; appearance disabled | Generated generic people rather than the saved character/persona appearance. | | `Storyboard First Frame`, Template On | Character/persona identity could be generic or incorrect. | | Template Off with appearance enabled | Identity became substantially more accurate, but the duplication risk from the appearance path still needs controlled reproduction. | The tester's avatar images were generated directly in ComfyUI with the same Krea 2 model and the same appearance-description text stored in Marinara. A generated subject resembling an avatar is therefore not proof that the avatar image was transmitted; the shared text/model can independently produce similar likeness. Adding `duplicate`, `clone`, or `twins` to the negative prompt did not reliably prevent the behavior. ## Steps to reproduce 1. Open a Game Mode chat with Storyboard installed and three keyframes per turn. 2. Use a character and persona with saved appearance descriptions and avatar images. 3. Select the supplied ComfyUI Krea 2 workflow. Confirm that it contains no `%reference_image%`, `%reference_image_name%`, or numbered reference placeholders. 4. Select the Krea/LTX-oriented Storyboard settings: - Animation Planner: `LTX Director Storyboard` - Storyboard Illustration Prompt: `Storyboard First Frame` - Storyboard Video Prompt: `LTX Director Video` 5. Enable **Use Storyboard Template**. 6. Generate a controlled scene with **Attach Card Appearance** off, then on. 7. Compare identity preservation, visible subject count, and the compiled prompt. 8. Repeat with **Use Storyboard Template** off. 9. Repeat the same fixed planned frame with `Game Scene Illustration` selected instead of `Storyboard First Frame`. 10. Hold the image seed fixed and test **Send Avatar References** off/on as a negative control; the provider-visible payload should not change for this no-placeholder workflow when the selected formatter omits reference handling. ## Environment - Marinara Engine version: Reporter version not provided; current staging source inspected at `4f853d37c1adcbed7cad4a83cb3c16a353bde270` - Storyboard package version: Not provided - Image model: Krea 2; tester changed the supplied workflow's model variant for an RTX 5070 Ti - Image connection/provider adapter: ComfyUI - Workflow: Supplied txt2img workflow with `%prompt%`, `%negative_prompt%`, and `%seed%`; no reference-image nodes/placeholders; `batch_size: 1`; `cfg: 1` - Storyboard keyframes per turn: 3 - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided The reporter's exported connection, exact Storyboard settings, and images have not been attached directly to this issue. The Discord screenshots were referenced in the report but are not available here. ## Logs, screenshots, or video No debug prompt log or resolved ComfyUI request payload has been attached. For the next controlled reproduction, capture: - the complete Storyboard settings selection; - planner messages and returned keyframe JSON; - `${scenePrompt}`/`keyframe.imagePrompt` for each of the three frames; - the selected illustration formatter and Template On/Off state; - the final compiled positive and negative prompts; - the unresolved workflow and resolved ComfyUI `/prompt` payload, with image data redacted; - the fixed seed and generated image for every matrix row; - a check that each frame contains only its own planned beat. ## Additional context Current source explains why the controls can produce counterintuitive results: - `packages/server/src/routes/game.routes.ts` always collects matched appearance descriptions for the Storyboard planner with `includeCharacterDescriptions: true`. This gives the planner appearance context, but does not guarantee that every trait is copied into its returned `${scenePrompt}`. - The final frame-render stage separately uses **Attach Card Appearance** to decide whether `characterDescriptions` are available to the final formatter. - With **Use Storyboard Template** off, `packages/server/src/services/game/game-asset-generation.ts` builds `directPromptWithAppearance` from the planner's scene prompt, final visibility rule, and `${appearanceNotesBlock}`. - With the template on, the selected formatter decides which variables survive. `Storyboard First Frame` is only `${scenePrompt} ${locationHandlingLine} ${imagePromptInstructionsLine}` and omits `${appearanceNotesBlock}`. Appearance identity is therefore lost whenever the planner did not fully reproduce it in `${scenePrompt}`, even if **Attach Card Appearance** is enabled. - `Game Scene Illustration` includes `${appearanceNotesBlock}` along with title, scene, visibility, narrative purpose, character list, reference handling, location, art direction, and image instructions. This is a denser prompt shape and was reported to produce twins and split/fused compositions with local Krea 2. - `packages/server/src/services/image/image-generation.ts` only inserts ComfyUI references where the workflow contains Marinara reference placeholders. The supplied workflow contains none, so the avatar pixels are not sent to Krea 2. - At `cfg: 1`, the negative prompt is effectively inert under ComfyUI's CFG1 optimization unless that optimization is disabled. The anti-duplication negative terms are therefore not a reliable test of subject-count control. The observed control behavior is consistent with an unclear formatter contract and inconsistent appearance delivery. It does not yet prove that repeated appearance text alone causes Krea 2's twin output; fixed-plan, fixed-seed prompt comparisons are still required. Suggested regression and fix boundary: - Make appearance delivery explicit and consistent for Template On and Template Off. - Do not silently drop enabled appearance grounding because the selected formatter omits `${appearanceNotesBlock}`; either compose it safely or make formatter capabilities visible in the UI. - Avoid repeating the same appearance inventory in both `${scenePrompt}` and `${appearanceNotesBlock}` when the planner already emitted it. - Detect ComfyUI reference-placeholder support and disable/warn on **Send Avatar References** when unsupported. - Compare fixed planner output and fixed seeds across both illustration formatters and all relevant toggles. - Assert one intended instance per named visible subject and one planned beat per generated frame. - Bundle or label provider-optimized Storyboard presets so users do not unknowingly combine Google/Omni-oriented formatters with local Krea/LTX workflows. Related issue: - #4458 tracks reorganizing and clarifying Shared, Roleplay, and Game controls in the Storyboard Agent settings UI. This issue is the separate prompt/identity behavior behind those controls. Separate report: - The tester also reported that the entire Game Mode chat log disappeared during testing. No reproduction or evidence connects that event to image generation, so it should be tracked separately if it recurs. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:48:05 +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#2422
No description provided.