mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7342] [MERGED] fix(images): keep the Auto style instruction out of final image prompts #7689
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#7689
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7342
Author: @SpicyMarinara
Created: 10/9/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/7318-image-prompt-instructions📝 Commits (4)
f63500efix(images): keep the Auto style instruction out of final image prompts72df329Merge origin/staging into fix/7318-image-prompt-instructions325c6ddfix(images): keep user-written Auto Style text in image prompts2527497Merge origin/staging into fix/7318-image-prompt-instructions📊 Changes
3 files changed (+62 additions, -7 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/shared/src/utils/image-prompt-compiler.ts(+13 -7)📝
scripts/regressions/prompt.regression.ts(+48 -0)📄 Description
Linked issue
Closes #7318
Why this change
masterpiece, best quality, very aesthetic, Infer a consistent visual style from the character, game, scene, and selected image model, silver hair.resolveImageStyleGuidanceText(#4028) already treats Auto as "no explicit style", and an existing regression already expects that sentence to stay out of provider prompts when a writer handles the style. The compiler now keeps the built-in Auto sentence out of the final prompt too. It still applies Style text a user wrote into Auto or a clone of it, as staging does, because those clones keep the auto base style and the user cannot see or change it.What changed
packages/shared/src/utils/image-prompt-compiler.ts: the compiler never adds the built-in Auto instruction sentence to the final prompt. Style text from every other profile, and Style text a user writes into Auto or a clone of it (Clone keeps the auto base style), is still added when no prompt writer handled the style. That behaviour is unchanged.scripts/regressions/prompt.regression.ts: new case "Auto style guidance never reaches the final image prompt as text (#7318)". It covers avatar, illustration, background and selfie compiles plus a Game background prompt, and checks that the Anime profile and an Auto clone with its own Style text still apply their Style text. It fails on staging and passes with the fix.CHANGELOG.md: one[Unreleased]entry.How each image-prompt field is treated (audit for #7318)
These go to the prompt-writing model only and already stayed out of the Engine's Illustrator, Roleplay and selfie image prompts:
These are labelled and documented as text added to the prompt, so they stay literal:
Not changed here
noodle.imagePosttemplate pastes the poster's card Personality and image habits into the image prompt. When the rewrite step is off or fails, it also appendsUser image instructions: <connection Image Prompting Instructions>. Both need a package fix.User image instructions: ….docs/game/storyboard.mdsays "Required image instructions still apply."Location handling: …sentence is added for ComfyUI, Automatic1111 and NovelAI too, which is documented indocs/agents/hierarchical-maps.md.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run checks:
pnpm check(through the shared slot limiter). Targeted regressions:prompt.regression.ts,avatar-lead-prompt,sprite-background,illustrator-character-prompts,illustrator-reference-scopeandlorebook-image-prompt, all passing. The new #7318 case was also run against the original compiler: it fails there, and it is the only failure.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)No
docs/page describes the Auto sentence being added to prompts, so no docs or translation follow-up is needed. CHANGELOG is updated.UI evidence (if applicable)
Not a UI change. The Style Profiles Test bench output changes as described above.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.