mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3868] [MERGED] fix(game): keep NPC avoid rules in negative prompt #6135
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#6135
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/3868
Author: @JurijPietrowicz
Created: 7/20/2026
Status: ✅ Merged
Merged: 7/20/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/3867-z-image-avoid-list📝 Commits (6)
78de25afix(image): keep standalone avoid lists negative035c671Merge branch 'staging' into fix/3867-z-image-avoid-list62551dafix(game): keep NPC avoid rules in negative prompt378ea27Revert "fix(game): keep NPC avoid rules in negative prompt"572dca2Address image prompt review feedback206c1deMerge branch 'staging' into fix/3867-z-image-avoid-list📊 Changes
2 files changed (+166 additions, -7 deletions)
View changed files
📝
packages/shared/src/utils/image-prompt-compiler.ts(+94 -7)📝
scripts/regressions/prompt.regression.ts(+72 -0)📄 Description
Linked issue
Closes #3867
Why this change
Z-Image Turbo NPC portrait prompts leaked artifact-avoidance terms into the positive prompt because the deterministic template placed the avoid-list in the positive source text. Natural-language scope heuristics cannot safely distinguish every standalone list from affirmative or inline clauses.
What changed
GAME_PORTRAIT_NEGATIVE_PROMPTas the single provider-visible artifact exclusion channel.Validation
Commands run locally:
pnpm regression:promptpnpm check(running after this commit)Manual browser verification was not performed because this is a shared/server prompt compiler change.
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Docs and release impact
UI evidence (if applicable)
Not applicable.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.