mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3173] [Issue]: Illustrator agent tag deduplication can break weighted tag blocks and cause invalid JSON #1705
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#1705
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 @SpicyMarinara on GitHub (Jul 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3173
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The Illustrator agent's tag deduplication appears to partially deconstruct weighted/tag blocks such as
(shaved head, bald:1.2). This can result in malformed prompt content and intermittentinvalid JSONerrors from the agent.Expected behavior
Tag deduplication should treat complete tag blocks as atomic units and only remove or deduplicate whole blocks without splitting or partially removing their contents.
Actual behavior
Tags inside grouped/weighted blocks can appear partially extracted, such as
(shaved headappearing without the full block. The Illustrator agent can then fail with:Connection: Agent returned invalid JSON instead of the requested image_prompt format. Check this agent's model/connection settings and try again.Steps to reproduce
(shaved head, bald:1.2).Environment
Logs, screenshots, or video
Reported error:
Connection: Agent returned invalid JSON instead of the requested image_prompt format. Check this agent's model/connection settings and try again.Example prompt evidence included partial tag content:(shaved headinstead of the full appearance tag block.Additional context
The reporter noted that removing grouped/weighted tag blocks from the card or persona generally resolves the invalid JSON issue. A separate concern about
Attach card appearanceappending appearance after tag generation was discussed, but maintainers indicated that behavior is intentional and not an issue.Discord thread: 2.0.9 Illustrator Agent tag issues
Discord thread link: https://discord.com/channels/1417099416812392641/1522501985591627796
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (7 messages)
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 3, 2026):
Codex is taking this in branch
codex/issue-sweep-3169-3173, tracked by PR #3177.@SpicyMarinara commented on GitHub (Jul 3, 2026):
Addressed in PR #3177. Local validation passed: pnpm regression:prompt; pnpm --filter @marinara-engine/shared build; pnpm check.