mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8836] [MERGED] fix(client): show only a historical merged reply's own scene in its avatars #8831
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#8831
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/8836
Author: @SpicyMarinara
Created: 11/4/2026
Status: ✅ Merged
Merged: 11/4/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/merged-avatars-scene-only📝 Commits (2)
39418eefix(client): show only a historical merged reply's own scene in its avatars2dffef2fix(client): keep unnameable members and split-reply scenes on older merged replies📊 Changes
5 files changed (+442 additions, -24 deletions)
View changed files
📝
e2e/narrator-macro-avatars.e2e.ts(+79 -0)📝
packages/client/src/components/chat/ChatMessage.tsx(+17 -1)📝
packages/client/src/components/chat/ChatRoleplaySurface.tsx(+45 -2)📝
packages/client/src/components/chat/merged-avatar-roster.ts(+97 -15)📝
scripts/regressions/merged-chat-historical-avatars.regression.ts(+204 -6)📄 Description
Linked issue
Closes #8823
Why this change
Issue #8823 is a follow-up to #8762 / PR #8800. In a merged Roleplay group chat, historical replies showed avatars for every chat member. Characters who were not in a reply's scene appeared with their regular avatars next to the participants' expression portraits. #8800 kept older replies from losing avatars when the roster shrank, but its fallback also added the whole live roster. So whenever the active roster was larger than the reply's scene (auto-selection off, or members reactivated), older replies gained the absent characters. A historical reply should show only the cast of its own scene: its saved roster, or for an older reply the members its own expression result names. It should fall back to the live roster only when it carries no per-character data at all.
What changed
resolveMergedAvatarRoster(packages/client/src/components/chat/merged-avatar-roster.ts): a saved reply now shows only its own scene. That ismergedReplyRoster(extra, chatCharacterIds)filtered to current members: the saved roster, or for an older reply the members named byexpressionSpriteIdsand thespriteExpressionskeys. The live roster is no longer added. A reply with no per-character data at all keeps the old live-roster behaviour; so does a reply whose saved roster has entirely left the chat. Aponytail:comment documents this, with the upgrade path of backfilling from speaker tags.mergedReplyRoster, ChatMessage, ChatRoleplaySurface and the outside-card avatars fromreferencedCharacterIdsare untouched. The persona and non-members are still filtered out of the fallback.[Ana, Ben]. With everyone active again it asserts the exact avatar list for (a) the saved reply[Ana, Ben], (b) an older reply with an expression list[Ana, Ben], (b) an older reply with expression keys only[Ana, Ben], (c) an older reply with no expression data (all four), (d) a greeting created through the API as Cal's message (all four), plus a new streaming reply (all four). The header comment was updated to describe the new rule..mari-message-avatar imgcount and which portrait srcs appear for each row.Validation
pnpm checkpasses locallyManual verification notes
Agent-run checks (for reference):
Independent review of
39418eea1f: changes (1 medium, 1 low), both fixed in2dffef22ca: older replies keep active members no expression result could name (no sprites, or outside the sprite selection), and older split replies show their own scene from the reply's last part. Dottore Review: Viable, With Notes, no defects.Known limits and risks:
mergedRosterCharacterIdsfrom speaker tags.spriteExpressionskeys remain the limit noted in #8800. If an Expression Engine retry wrote an emptyexpressionSpriteIdsbut left the old map, the old map's members still count as the reply's scene.referencedCharacterIds(ID-macro references) still appear as before. They never include chat members.mergedRosterCharacterIdsfrom speaker tags.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.