mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#6210
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/4032
Author: @SpicyMarinara
Created: 7/24/2026
Status: ✅ Merged
Merged: 7/24/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/4028-selfie-style-guidance📝 Commits (2)
ee87efefix(selfie): feed Generation Style Text to the prompt model, not the prompta7cad11fix(selfie): honor the connection's style profile in the fallback order📊 Changes
5 files changed (+87 additions, -25 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/server/src/routes/gallery.routes.ts(+25 -12)📝
packages/server/src/services/generation/conversation-selfie-command-runtime.ts(+24 -11)📝
packages/server/src/services/image/image-prompt-compiler.ts(+6 -1)📝
packages/shared/src/utils/image-prompt-compiler.ts(+31 -1)📄 Description
Why
In Conversation Selfie mode, the image style profile's Generation Style Text was being pasted verbatim into the final image prompt submitted to the generator (#4028). Users saw their style guide duplicated in every selfie prompt — redundant, wordy, and diluting CLIP attention. The reporter confirmed this happens in Selfie mode but not Roleplay illustration.
Root cause: Roleplay illustration passes
generatedStyleintocompileImagePrompt, which suppresses the profile's rawstyleText(the style is already reflected in the generated prompt). The two selfie paths omitgeneratedStyle, so the compiler falls through to appendingprofile.styleTextverbatim.The maintainer's design intent (from the Discord thread): the style should guide the prompt-building LLM, not be copied into the output — while still reaching image providers that lack a native style field.
What changed
packages/shared/.../image-prompt-compiler.ts: newomitProfileStyleTextinput flag that suppresses the verbatimprofile.styleTextappend; two small exported helpers —resolveImageStyleGuidanceText()(the active profile's style text when a real base style is set) andformatImageStylePromptGuidance()(the guidance block appended to the prompt-builder's system prompt).[selfie]Conversation command (conversation-selfie-command-runtime.ts) and the gallery selfie route (gallery.routes.ts) — now inject the active style as guidance into the prompt-builder's system prompt and passomitProfileStyleText: true. The style still shapes the image (and still reaches providers without a style field, via the generated prompt), just not pasted verbatim.Roleplay illustration, backgrounds, portraits, avatars, sprites, and game assets are untouched.
Test plan
[selfie]in a Conversation and confirm the submitted image prompt (gallery → prompt) no longer contains the style text verbatim, while the image still reflects the style./:chatId/selfieroute), including preview-only.pnpm checkpasses. (It passed in the authoring session; re-verify locally.)Fixes #4028.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.