mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1428] [Issue]: D2 — Slurp2 identity tags do not lead the picture prompt in tag mode #725
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#725
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 @Gunterlie on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1428
Originally assigned to: @Gunterlie on GitHub.
Summary
D2 from the identity-tag report (D1 is #1429).
In tag mode (Danbooru-style models), a Creator's identity tags (
character tag, series tag) do not always lead the picture prompt. When the prompt writer already wrote them somewhere else, Slurp leaves them there, even with "Always in their pictures" (creatorImagePrefixes) set. Thanks to the reporter for a very precise trace — it made this easy to find.Affected package
slurp2(0.3.46, also older versions)Expected behavior
For a tag model, when the Creator's name or "Always in their pictures" text is in the prompt but not at the start of the scene, Slurp moves it to the start (after the style profile's own tags). It is never in the prompt twice.
Actual behavior
Example (Umi): the writer produced
1girl, aged up, blue eyes, blue hair, long hair, ryuuzaki umi, magic knight rayearth, …The prefix
ryuuzaki umi, magic knight rayearthwas already present, so it was skipped and the wrong order stayed.Cause
slurpApplyImageSubjectinpackages/slurp2/src/engine/packages/server/src/slp/base/media/slp-image-prompt.ts(around line 247) checks only if the text is present:It runs after the style compiler (
slp-images-service.ts, around line 627, on the body thatslurpSplitStyleLeadcut off), so the compiler's dedupe does not matter here.Suggested fix (small, one function)
In
slurpApplyImageSubject, only forfamily !== "natural":plain()), return the prompt unchanged.${who.toLocaleLowerCase()}, ${rest}. Clean up the comma/space left where it was.ryuuzaki_umi,souryuu asuka langley \(evangelion\), extra spaces, upper case.family === "natural") keep today's behavior. Do not move words inside sentences.Keep it simple: no new settings, no new files.
Test
Add cases to the existing
tests/slurp2-image-subject.regression.ts:"1girl, blue hair, ryuuzaki umi, magic knight rayearth, park"with prefix"ryuuzaki umi, magic knight rayearth"(tag family) →"ryuuzaki umi, magic knight rayearth, 1girl, blue hair, park"Run it:
npx tsx --tsconfig tests/tsconfig.regressions.json tests/slurp2-image-subject.regression.tsThen the full Slurp set:
npm run test:noodle:regressionsRelease checklist (for the PR)
staging, PR targetsstaging, link this issue.0.3.46→ next patch inscripts/build-feature-packages.mjs(theslurp2entry) andSLURP2_VERSIONinpackages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts. The build fails if they differ.MARINARA_ENGINE_ROOTto a Marinara-Engine checkout). Do not hand-editclient.js,server.mjs, the zip, catalogs or hashes — they are generated.npm run checkand the baseline commands inAGENTS.md.Not in this issue (follow-ups, ask first)
Tip for the reporter
The report shows
creatorImageNamesoff for all Creators. That switch ("The image model knows this character") puts the card name at the start of the picture prompt by itself. With "Always in their pictures" set, it is not needed, but it explains why Tina's name could go missing before.Environment
f2e5fb9a4291(2.5.0)