mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5837] [CLOSED] fix(avatars): drop the prose lead sentence for tag-grammar style profiles #6962
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#6962
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/5837
Author: @stonebystone
Created: 9/4/2026
Status: ❌ Closed
Base:
staging← Head:fix/avatar-tag-grammar-lead-prompt📝 Commits (2)
92ddc27fix(avatars): drop the prose lead sentence for tag-grammar style profilesb161913fix(avatars): import the ImageStyleProfile type used by the avatar prompt builder📊 Changes
4 files changed (+91 additions, -15 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/server/src/routes/characters.routes.ts(+18 -15)➕
packages/server/src/services/image/avatar-generation-prompt.ts(+23 -0)➕
scripts/regressions/avatar-lead-prompt.regression.ts(+49 -0)📄 Description
Closes #5836
Why
The avatar "Generate with AI" path has no prompt-writing LLM: it builds a fixed lead sentence and the compiler keeps it verbatim, since avatar prompts are never compacted. With a Danbooru or tag-grammar profile (Illustrious, Pony, NovelAI) that sentence, "Create a polished character avatar portrait for .", becomes a prose clause inside a comma-separated tag prompt. Tag models treat it as noise, and the profile's avatar subject tags already say what the image is.
What changed
services/image/avatar-generation-prompt.tswith a purebuildAvatarPortraitLeadPromptthat picks the lead by prompt grammar: tag grammars get no sentence when the profile has avatar subject tags and a tag-only composition fallback when it has none; natural and hybrid grammars keep the existing sentences unchanged.characters.routes.tsresolves the style profile once per request and passes it to the avatar prompt builder instead of only its subject tags. Character sheets still use their own prompt template and are unaffected.Validation
pnpm checknode scripts/run-regressions.mjs --filter avatar-lead(new regression covering both tag grammars with and without subject tags, both prose grammars, and the blank-name fallback)🤖 Generated with Claude Code
https://claude.ai/code/session_01VGCLPpohNDc1uPX8HcKJ9v
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.