[GH-ISSUE #5083] [Issue]: Style profile's "prompt grammar" setting is ignored for character avatars, portraits and sprites #2813

Closed
opened 2026-10-21 05:56:02 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Character avatars ignore a profile's "prompt grammar" setting and instead use a hidden, non-editable "base style" field to decide the output format — so a profile set to natural language still produces tag-style avatars, with no way to fix it from the UI.

Expected behavior

The prompt grammar I choose on a style profile should apply to every image type. A profile set to "natural language" should produce natural-language prompts for avatars, no matter which style profile it was cloned from.

Actual behavior

For avatars, portraits, and sprites, the prompt compiler forces tag-style output whenever the profile's base style is not "Z-Image Turbo Narrative". Every other base style — Anime, Danbooru, Realistic, Photorealistic, Cinematic, Digital Painting, Painterly, and Custom — gets converted to tags, even when the grammar is set to natural language.

Worse, the base style field that actually drives this decision is not exposed anywhere in the UI, and it is silently inherited when cloning a profile. So there is no way to fix the problem from the interface: the only setting the user can see and change ("prompt grammar") is dead for these three image types.

Steps to reproduce

  1. Create a style profile by cloning "Anime", and set its prompt grammar to "natural language".
  2. Point an image connection at that profile.
  3. Open a character, click avatar generation, and look at the prompt preview.

Environment

  • Marinara Engine version: 2.4.2
  • Install type: docker
  • OS + version: Linux (Debian Trixie, ARM64 / Raspberry Pi)
  • Browser or app shell: Chrome and Firefox

Additional context

The prompt grammar setting works correctly for scene illustrations, backgrounds, and selfies — it's only the three character-reference types (avatar, portrait, sprite) that ignore it.

I think the problem is in the prompt compiler, where these three image types are forced into a compact tag-only mode based on the base style rather than the grammar setting.
github.com/Pasta-Devs/Marinara-Engine@266d3e1dfd/packages/shared/src/utils/image-prompt-compiler.ts (L238-L239)
Choosing "Custom" as the base style does not avoid the problem — only the "Z-Image Turbo Narrative" base style escapes the forced conversion.

As a workaround, I'm cloning my style profile from the z-image one and edit it how I need it.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @arough007 on GitHub (Aug 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5083 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Character avatars ignore a profile's "prompt grammar" setting and instead use a hidden, non-editable "base style" field to decide the output format — so a profile set to natural language still produces tag-style avatars, with no way to fix it from the UI. ## Expected behavior The prompt grammar I choose on a style profile should apply to every image type. A profile set to "natural language" should produce natural-language prompts for avatars, no matter which style profile it was cloned from. ## Actual behavior For avatars, portraits, and sprites, the prompt compiler forces tag-style output whenever the profile's base style is not "Z-Image Turbo Narrative". Every other base style — Anime, Danbooru, Realistic, Photorealistic, Cinematic, Digital Painting, Painterly, and Custom — gets converted to tags, even when the grammar is set to natural language. Worse, the base style field that actually drives this decision is not exposed anywhere in the UI, and it is silently inherited when cloning a profile. So there is no way to fix the problem from the interface: the only setting the user can see and change ("prompt grammar") is dead for these three image types. ## Steps to reproduce 1. Create a style profile by cloning "Anime", and set its prompt grammar to "natural language". 2. Point an image connection at that profile. 3. Open a character, click avatar generation, and look at the prompt preview. ## Environment - Marinara Engine version: 2.4.2 - Install type: docker - OS + version: Linux (Debian Trixie, ARM64 / Raspberry Pi) - Browser or app shell: Chrome and Firefox ## Additional context The prompt grammar setting works correctly for scene illustrations, backgrounds, and selfies — it's only the three character-reference types (avatar, portrait, sprite) that ignore it. I think the problem is in the prompt compiler, where these three image types are forced into a compact tag-only mode based on the base style rather than the grammar setting. https://github.com/Pasta-Devs/Marinara-Engine/blob/266d3e1dfd441ec854fdf5a40305799baa04dd9c/packages/shared/src/utils/image-prompt-compiler.ts#L238-L239 Choosing "Custom" as the base style does not avoid the problem — only the "Z-Image Turbo Narrative" base style escapes the forced conversion. As a workaround, I'm cloning my style profile from the z-image one and edit it how I need it. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:56:02 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 15, 2026):

I’m taking this one for the current assigned-issue sweep. I confirmed the compiler is overriding the selected prompt grammar for avatar, portrait, and sprite kinds; I’m preparing a focused fix plus prompt-regression coverage, with a draft PR against staging.

<!-- gh-comment-id:5303855866 --> @SpicyMarinara commented on GitHub (Aug 15, 2026): I’m taking this one for the current assigned-issue sweep. I confirmed the compiler is overriding the selected prompt grammar for avatar, portrait, and sprite kinds; I’m preparing a focused fix plus prompt-regression coverage, with a draft PR against `staging`.
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#2813
No description provided.