mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3135] [Issue]: Style Profile dropdown has no "Off" option — always prepends style text ahead of subject-count tag (NovelAI local image gen) #1681
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1681
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jswen4-tech on GitHub (Jul 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3135
Originally assigned to: @SpicyMarinara on GitHub.
Marinara Engine version: v2.0.8
Connection / model: NovelAI Diffusion 4.5 FULL, local image generation setup
LLM driving prompts: Gemma 4 31B-it (autonomous, no human editing of output)
Summary
The Style Profile dropdown under Local Image Defaults → NovelAI generation setup has no "Off" / "None" / "disabled" value. Every selectable option injects style text that is prepended to the image prompt ahead of the subject-count tag, at the connection/assembly layer, after the LLM's JSON has been produced. This corrupts the required NovelAI Diffusion 4.5 prompt structure, which expects the subject-count tag (e.g. 1girl, 1boy) as the first token.
Behavior by dropdown value
Auto / Use global default: prepends the sentence Infer a consistent visual style from the character, game, scene, and selected image model before the count tag.
Any named preset (Anime, Danbooru / Illustrious, Painterly Fantasy, etc.): prepends that preset's style descriptors before the count tag.
There is no value that injects nothing.
Why it's a problem
For autonomous/agentic setups where an LLM emits a strict-JSON prompt and no human edits the output, the prepended text can't be prevented from the prompt side. The prepend lands before the subject-count tag, which V4.5's structure requires to be first, and injects prose ("Infer a consistent visual style…") that is not a valid tag into a tag-only prompt.
What I've already ruled out (it's not the template or the JSON)
Positive prompt box / Prompt Prefix / Negative Prefix fields all confirmed empty — the injection is separate from the prefix fields.
Setting "style": "" in the emitted JSON does not remove it.
Adding an explicit inoculation/negative instruction in the template (telling the model never to emit that line) does not remove it — consistent with the text being injected after the JSON is produced, at the connection/assembly layer, where template text can't reach.
Switching the dropdown between values changes the injected text (Auto → the infer sentence; a named preset → that preset's tags), which localizes the source to this dropdown specifically.
Regression note
This started only after roughly a month of Marinara updates, using a template that previously never produced any prepended line. Same template, new behavior → points to a change in the image-prompt assembly layer, not the template.
Expected behavior
Add an "Off" / "None" option to the Style Profile dropdown that injects nothing, leaving the emitted prompt untouched. Alternatively (or additionally), when a Style Profile is selected, insert its text after the subject-count tag rather than before it, so the prompt structure isn't broken.
Scope question for maintainers
Is this NovelAI-specific, or does the Style Profile prepend apply to other image-gen connections too? If it's shared assembly logic, the "Off" option and the ordering fix would want to apply across all backends, not just the NovelAI path.
Environment
Marinara Engine: v2.0.8
OS / platform: Windows 11
Model backend: NovelAI Diffusion 4.5 FULL
Sampler/schedule (from the same panel, for repro): k_euler_ancestral / karras, 28 steps, seed -1
@SpicyMarinara commented on GitHub (Jul 2, 2026):
Codex is taking this in branch codex/issue-sweep-3119-3135 for a staging-targeted fix sweep.
@SpicyMarinara commented on GitHub (Jul 2, 2026):
Fix is ready in PR #3138 with CI passing. This issue will close automatically when the PR merges into staging.