mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5862] [Issue]: Illustrator selects incorrect avatar references #3236
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#3236
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 (Sep 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5862
Originally assigned to: @SpicyMarinara on GitHub.
Summary
When Send Avatar References is enabled, the Illustrator agent may select avatars belonging to unrelated characters from the global character library. Deterministic selection can cause the same incorrect references to be reused repeatedly.
Expected behavior
Avatar references should correspond only to characters intended for the current scene. Passive text matching should prioritize characters active in the current chat, while global-library characters should require an explicit, unambiguous name match.
Actual behavior
The reference resolver appears to compare generated text with names of all saved characters, allowing common or ambiguous words to match unrelated global-library characters. Multiple cards with the same or similar names may also be selected.
Steps to reproduce
Environment
1a299369ac)Logs, screenshots, or video
No logs provided. Attached Mermaid logic diagram: https://cdn.discordapp.com/attachments/1545578574122192906/1545581202713616444/mermaid-diagram-2026-09-05-014644.png?ex=6a9caa2a&is=6a9b58aa&hm=55dfa709aa9b547c3b72ad766e13ed7fd1618b2aaf1dd7381919161adf76bb55
Additional context
Illustrator agent version 1.0.4. Active connection is Text through OpenRouter using z-ai/glm-5.2. If the chat has one active character and name resolution fails, the resolver could safely fall back to that character. Ambiguous names should not select multiple cards. A team member noted that characters present in the group chat should be prioritized.
Discord thread: Illustrator selects incorrect avatar references
Discord thread link: https://discord.com/channels/1417099416812392641/1545578574122192906
Requested by: Kuc0 (kuc0, Discord ID 108988150629531648)
Discord thread transcript (5 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 (Sep 5, 2026):
Owner: @SpicyMarinara, implementation by Codex in Issue Sweep PR #5865. I have read the issue and all current comments. Work will target staging, reuse existing code, and include focused regression proof; unrelated open/draft PRs remain untouched.
@SpicyMarinara commented on GitHub (Sep 5, 2026):
Completed on staging in #5865 (merge
314a71a586).Scoped passive Illustrator avatar matching to the current chat and made explicit-name resolution unambiguous.
Focused regression proof and manual verification boundaries are documented in the PR. Required checks and the full final regression matrix passed; CodeRabbit completed review with all threads resolved. Closing as completed on staging, not a main release.