mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3728] [Issue]: Image prompts can duplicate explicit art styles #2012
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#2012
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 @JurijPietrowicz on GitHub (Jul 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3728
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Image prompt builders can include an explicit art style or appearance in the source prompt while also supplying the same value separately to the shared compiler. This can cause the final provider prompt to contain the same content twice.
Expected behavior
Explicit art styles and appearance descriptions should appear exactly once in the final provider-visible positive prompt. Deduplication must not remove the only surviving copy during prompt transformation, token compaction, or storyboard truncation.
Actual behavior
The compiler could preserve both the embedded source value and the separately supplied value, producing duplicated prompt content. Initial deduplication attempts could also remove the dedicated copy before later processing discarded or truncated the source copy.
Steps to reproduce
Environment
Logs, screenshots, or video
No screenshots or runtime logs attached. The issue was reproduced directly through provider-prompt compilation and covered with deterministic prompt regressions.
Additional context
The issue can affect multiple image profiles and image kinds, not only Z-Image portraits. Compact prompts and preserved storyboard prompts require special handling because token or character limits can remove the source copy after an early deduplication decision.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jul 17, 2026):
Resolved by #3729, including the CodeRabbit compaction safeguard, now merged into staging.