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#7651
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/7256
Author: @ylli-selmani
Created: 10/7/2026
Status: ✅ Merged
Merged: 10/7/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/image-appearance-followups📝 Commits (8)
79a097ffix(selfie): stop an appearance override from replacing the card appearance01037a6fix(selfie): require override tags verbatim and keep the card as context (#7243)0167684fix(gallery): resolve the override separately from the card appearance (#7243)1e41753docs(selfie): describe how the override actually reaches the writer (#7243)13605aefix(gallery): pass personality and image instructions to selfie prompts (#7259)8325337fix(selfie): keep saved custom selfie templates working with an override (#7258)f020eccfix(selfie): tighten override wording after manual testing (#7258)56e7e33fix(selfie): drop the override block from custom templates without an override (#7258)📊 Changes
7 files changed (+122 additions, -28 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/client/src/localization/locales/en.json(+2 -2)📝
packages/server/src/routes/gallery.routes.ts(+24 -10)📝
packages/server/src/services/conversation/selfie-prompt.ts(+31 -9)📝
packages/server/src/services/generation/conversation-selfie-command-runtime.ts(+9 -4)📝
packages/server/src/services/prompt-overrides/load-prompt.ts(+5 -2)📝
packages/server/src/services/prompt-overrides/registry/conversation.ts(+49 -1)📄 Description
Linked issue
Closes #7258
Closes #7259
Also addresses #7243 (opened automatically from the Discord thread, but it only captured a follow-up message; #7258 is the full report). Follows up the Image Appearance Override feature, #7053 / PR #7059.
Why this change
agent-executor.ts:3190-3193). The help text didn't mention what the override cost./selfieand the gallery selfie button share one route (/selfieis a client-local command). That route never passed Personality or the conversation image instructions, so these selfies came out thinner than the ones a character sends on its own.What changed
The fix stops one variable from meaning two things.
${appearance}is the card's Appearance again, and the override goes beside it as${imageAppearance}. That block disappears when it's empty, the same way${personality}and${characterImageInstructions}do.fix(selfie): stop an appearance override from replacing the card appearance: resolve the override separately. No rendering change on its own.fix(selfie): require override tags verbatim and keep the card as context: when there is an override, it renders as its own block. The block says the tags must appear exactly as written, names the unrecognized-tag (LoRA) case, and makes the card Appearance background only: it fills in details the override doesn't cover and never contradicts or repeats it. The appearance line only appears when the card has text.${imageAppearance}is registered for custom templates, and its example value is non-empty on purpose. The editor rebuilds Reset to Default by swapping example values back into tokens, so an empty example would leave the block out of the editor completely.fix(gallery): resolve the override separately from the card appearance: the same split for the gallery route, which/selfiealso uses.docs(selfie): describe how the override actually reaches the writer: corrected help text and a CHANGELOG entry.fix(gallery): pass personality and image instructions to selfie prompts(#7259): the two missing fields, read the same way the character-sent selfie path reads them.fix(selfie): keep saved custom selfie templates working with an override: found by local CodeRabbit. Custom templates (global override or per-chat selfie prompt) saved before this change only use${appearance}, which used to carry the override. Unless a template mentions${imageAppearance},${appearance}keeps its old meaning there, so those users don't silently lose their LoRA trigger.fix(selfie): tighten override wording after manual testing: the background-information line no longer refers to an appearance "above" when the card has none; both override help texts trimmed.Cards without an override are unaffected. The built default prompt is byte-identical to before.
Deliberately not changed: the Attach Card Appearance append to the outgoing prompt stays. The instruction is meant to keep the token when the writer rewrites the prompt, and the append is the only channel that guarantees it reaches the image prompt verbatim.
Ruled out by running the real code: the prompt compiler (
kind: "selfie", all profiles) and the ComfyUI transport both keep the trigger byte-for-byte.Found while testing, tracked separately (not in this PR): the gallery/
/selfieroute claims "based on the current conversation context" but sends none;/selfiesaves only to the gallery, not the chat; the first tag of the appendedName's Appearance:block isn't de-duplicated (e.g.Jessica's Appearance: 1girl); the 1400-character clip on appended appearance; no ComfyUI-specific prompt guidance.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run (not a substitute for the boxes above):
pnpm check,pnpm localization:checkandpnpm regression:promptpass after rebasing onto currentstaging. Ad-hoc probes (not committed, per the no-.test.tsrule) cover:Local CodeRabbit (3 runs against current
origin/staging): two findings fixed (instruction wording in commit 2, legacy custom templates in commit 6). One minor finding rejected: it asked the character-command path to also fall back to a top-leveldata.appearance. That fallback chain predates this PR (untouched in the diff), and character Appearance lives inextensions.appearance(character.ts:42). There is no top-level field to read, so the change would affect no real card.Manual verification notes
/selfieand the gallery selfie button do the same, and their prompt-writer input now includes Character personality and traits.${imageAppearance}, and Reset to Default restores it.${appearance}still receives the override (legacy behavior).Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)CHANGELOG
[Unreleased]has two entries (#7258, #7259). Nodocs/files changed, so nodocs-i18nfollow-up.UI evidence (if applicable)
Help-text change only. A screenshot of the character card's override section can be added after manual testing.
Summary by CodeRabbit
/selfie, character-sent selfies, and Conversation gallery selfies. The card’s Appearance remains background context, and cards without an override are unaffected.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.