[GH-ISSUE #8823] [Issue]: Historical merged-chat messages show avatars for characters absent from their scene #8511

Closed
opened 2026-11-07 16:43:26 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8823

Originally assigned to: @SpicyMarinara on GitHub.

Summary

After the fix for issue #8762, historical messages in merged roleplay chats show avatars for all chat members rather than only characters who participated in each message. Characters absent from a scene appear with their regular avatars, even when other participants correctly show their saved expression portraits.

Expected behavior

Each historical message should retain the avatar roster from its original scene, including the correct expression portraits where available. Characters who were not part of that scene should not appear.

Actual behavior

Historical messages show avatars for all four chat members. Participants with saved expression data show their expression portraits, while characters absent from the scene appear with regular avatars.

Steps to reproduce

  1. Use a merged roleplay group chat with multiple character cards.
  2. Generate a reply in a scene involving only some of the chat members, such as characters A and B but not C and D.
  3. After the fix for issue #8762, view that earlier reply.
  4. Observe that characters C and D appear with regular avatars despite not participating in the scene.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Not provided.

Additional context

This was reported as a follow-up to issue #8762 after its fix landed on staging. The previous behavior retroactively changed historical avatars when the active roster changed; the fix changed the behavior, but historical messages still do not preserve their original per-scene roster.

Discord thread: Automatic character selection changes avatars on historical messages in merged chats
Discord thread link: https://discord.com/channels/1417099416812392641/1567256056734683238
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (6 messages)
[2026-11-03T19:16:02.135Z] kociol21: When using automatic active-character selection in a merged roleplay chat, changes to the active roster also affect the avatars displayed on previous messages.

An earlier reply originally showed four character avatars. After a subsequent generation changed the active scene roster to just one character, that older reply—and ALL others—also showed only that character’s avatar.

The older replies still contain speaker tags and saved expression data for all four characters. Their dialogue colors remain correct, and all four character cards still belong to the chat. But all avatars are gone from all messages excluding ones that are active in ongoing scene.

Steps to reproduce:
1. Use a merged roleplay group chat with automatic active-character selection enabled.
2. Generate a reply while multiple characters are active.
3. Advance the story so automatic selection reduces the active roster to one character.
4. Look back at earlier replies that previously displayed multiple avatars.
Expected: Automatic selection updates the characters participating in subsequent generations. Historical replies retain their original avatar roster.

Actual: Earlier replies display avatars from the current active roster, causing previously displayed portraits to disappear retroactively.

Additional clarification: Simply describing characters as absent does not reproduce this when automatic selection is disabled: the active roster remains unchanged, so all avatars remain visible. The trigger appears to be the actual change to the chat’s active-character roster.

Code inspection of the deployed revision suggests ChatRoleplaySurface passes the current activeChatCharacterIds to historical messages as mergedGroupCharacterIds, which ChatMessage uses to build their avatar lists.

And the additional issue is when this happens, even turning automatic character selection off doesn't fix it and everything stays with just one avatar.

(sorry for making like 4th report lol)
[Discord message: https://discord.com/channels/1417099416812392641/1567256056734683238/1567256056734683238]

[2026-11-03T19:16:05.081Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1567256056734683238/1567256069091364897]

[2026-11-03T19:50:50.455Z] Marinara: @Professor Mari GitHub Issue
[Discord message: https://discord.com/channels/1417099416812392641/1567256056734683238/1567264815783878660]

[2026-11-03T19:51:00.032Z] Professor Mari [bot]: Skill issue. Made a GitHub Issue here: https://github.com/Pasta-Devs/Marinara-Engine/issues/8762

This post will be marked as "Closed" on Discord since it was moved to GitHub. When the fix lands on staging, the information will be posted here.
[Issue]: Active roster changes remove avatars from historical merge...
Summary In merged roleplay chats, automatic active-character roster changes retroactively alter the avatars shown on historical messages. Previous messages lose avatars for characters who are no lo...
[Discord message: https://discord.com/channels/1417099416812392641/1567256056734683238/1567264855952720032]

[2026-11-04T09:59:25.041Z] Professor Mari [bot]: The GitHub Issue #8762 was addressed and closed! It has now landed on staging (you can change the branch to staging in Marinara Engine's **Settings -> Advanced -> Updates -> Release Channel -> Staging/UAT**), so please test it out and let us know if everything works!
[Discord message: https://discord.com/channels/1417099416812392641/1567256056734683238/1567478367035457581]

[2026-11-04T10:43:31.160Z] kociol21: Sorry for the ping, but idk if anyone will see this if the report is closed and I REALLY don't want to make yet another report lol. 

The fix changed the behavior but it's still not correct. 

After the fix, historical messages now show extra character avatars instead of preserving their original roster. A reply originally displayed only two characters, which was correct for the scene. It now displays all four chat members, using expression portraits where expression data exists and regular avatars otherwise.

The main issue is the avatar roster itself: characters who were absent from that scene should not appear on that historical reply at all.

Old message: A and B were in the scene where C and D were not. Currently for that message A and B are shown with expression engine avatars (correct) but C and D also are shown in the message despite not being in it but since they don't have expression data for that message they show as normal avatars.
[Discord message: https://discord.com/channels/1417099416812392641/1567256056734683238/1567489465662967859]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Nov 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8823 Originally assigned to: @SpicyMarinara on GitHub. ## Summary After the fix for issue #8762, historical messages in merged roleplay chats show avatars for all chat members rather than only characters who participated in each message. Characters absent from a scene appear with their regular avatars, even when other participants correctly show their saved expression portraits. ## Expected behavior Each historical message should retain the avatar roster from its original scene, including the correct expression portraits where available. Characters who were not part of that scene should not appear. ## Actual behavior Historical messages show avatars for all four chat members. Participants with saved expression data show their expression portraits, while characters absent from the scene appear with regular avatars. ## Steps to reproduce 1. Use a merged roleplay group chat with multiple character cards. 2. Generate a reply in a scene involving only some of the chat members, such as characters A and B but not C and D. 3. After the fix for issue #8762, view that earlier reply. 4. Observe that characters C and D appear with regular avatars despite not participating in the scene. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Not provided. ## Additional context This was reported as a follow-up to issue #8762 after its fix landed on staging. The previous behavior retroactively changed historical avatars when the active roster changed; the fix changed the behavior, but historical messages still do not preserve their original per-scene roster. Discord thread: Automatic character selection changes avatars on historical messages in merged chats Discord thread link: https://discord.com/channels/1417099416812392641/1567256056734683238 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (6 messages)</summary> ```text [2026-11-03T19:16:02.135Z] kociol21: When using automatic active-character selection in a merged roleplay chat, changes to the active roster also affect the avatars displayed on previous messages. An earlier reply originally showed four character avatars. After a subsequent generation changed the active scene roster to just one character, that older reply—and ALL others—also showed only that character’s avatar. The older replies still contain speaker tags and saved expression data for all four characters. Their dialogue colors remain correct, and all four character cards still belong to the chat. But all avatars are gone from all messages excluding ones that are active in ongoing scene. Steps to reproduce: 1. Use a merged roleplay group chat with automatic active-character selection enabled. 2. Generate a reply while multiple characters are active. 3. Advance the story so automatic selection reduces the active roster to one character. 4. Look back at earlier replies that previously displayed multiple avatars. Expected: Automatic selection updates the characters participating in subsequent generations. Historical replies retain their original avatar roster. Actual: Earlier replies display avatars from the current active roster, causing previously displayed portraits to disappear retroactively. Additional clarification: Simply describing characters as absent does not reproduce this when automatic selection is disabled: the active roster remains unchanged, so all avatars remain visible. The trigger appears to be the actual change to the chat’s active-character roster. Code inspection of the deployed revision suggests ChatRoleplaySurface passes the current activeChatCharacterIds to historical messages as mergedGroupCharacterIds, which ChatMessage uses to build their avatar lists. And the additional issue is when this happens, even turning automatic character selection off doesn't fix it and everything stays with just one avatar. (sorry for making like 4th report lol) [Discord message: https://discord.com/channels/1417099416812392641/1567256056734683238/1567256056734683238] [2026-11-03T19:16:05.081Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1567256056734683238/1567256069091364897] [2026-11-03T19:50:50.455Z] Marinara: @Professor Mari GitHub Issue [Discord message: https://discord.com/channels/1417099416812392641/1567256056734683238/1567264815783878660] [2026-11-03T19:51:00.032Z] Professor Mari [bot]: Skill issue. Made a GitHub Issue here: https://github.com/Pasta-Devs/Marinara-Engine/issues/8762 This post will be marked as "Closed" on Discord since it was moved to GitHub. When the fix lands on staging, the information will be posted here. [Issue]: Active roster changes remove avatars from historical merge... Summary In merged roleplay chats, automatic active-character roster changes retroactively alter the avatars shown on historical messages. Previous messages lose avatars for characters who are no lo... [Discord message: https://discord.com/channels/1417099416812392641/1567256056734683238/1567264855952720032] [2026-11-04T09:59:25.041Z] Professor Mari [bot]: The GitHub Issue #8762 was addressed and closed! It has now landed on staging (you can change the branch to staging in Marinara Engine's **Settings -> Advanced -> Updates -> Release Channel -> Staging/UAT**), so please test it out and let us know if everything works! [Discord message: https://discord.com/channels/1417099416812392641/1567256056734683238/1567478367035457581] [2026-11-04T10:43:31.160Z] kociol21: Sorry for the ping, but idk if anyone will see this if the report is closed and I REALLY don't want to make yet another report lol. The fix changed the behavior but it's still not correct. After the fix, historical messages now show extra character avatars instead of preserving their original roster. A reply originally displayed only two characters, which was correct for the scene. It now displays all four chat members, using expression portraits where expression data exists and regular avatars otherwise. The main issue is the avatar roster itself: characters who were absent from that scene should not appear on that historical reply at all. Old message: A and B were in the scene where C and D were not. Currently for that message A and B are shown with expression engine avatars (correct) but C and D also are shown in the message despite not being in it but since they don't have expression data for that message they show as normal avatars. [Discord message: https://discord.com/channels/1417099416812392641/1567256056734683238/1567489465662967859] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-11-07 16:43:26 +07:00
Author
Owner

@coderabbitai[bot] commented on GitHub (Nov 4, 2026):

⚠️ Possible Duplicate Issue(s)

📝 Issue Planner

Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

  • Create Plan

🧪 Issue enrichment is currently in open beta.

You can configure auto-planning by selecting labels in the issue_enrichment configuration.

To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

issue_enrichment:
  auto_enrich:
    enabled: false

💬 Have feedback or questions? Drop into our discord!

<!-- gh-comment-id:6628945398 --> @coderabbitai[bot] commented on GitHub (Nov 4, 2026): <!-- coderabbit-ai-generated:v1 --> <!-- This is an auto-generated issue plan by CodeRabbit --> <details> <summary>⚠️ Possible Duplicate Issue(s)</summary> <dl> <dd> - https://github.com/Pasta-Devs/Marinara-Engine/issues/8762 </dd> </dl> </details> --- <details> <summary>📝 Issue Planner</summary> <dl> <dd> <sub>Check the box below or use the `@coderabbitai plan` command to generate an implementation plan and prompts that you can use with your favorite coding assistant.</sub> - [ ] <!-- {"checkboxId":"8d4f2b9c-3e1a-4f7c-a9b2-d5e8f1c4a7b9"} --> Create Plan </dd> </dl> </details> --- <details> <summary> 🧪 Issue enrichment is currently in open beta.</summary> <dl> <dd> You can configure auto-planning by selecting labels in the issue_enrichment configuration. To disable automatic issue enrichment, add the following to your `.coderabbit.yaml`: ```yaml issue_enrichment: auto_enrich: enabled: false ``` </dd> </dl> </details> 💬 Have feedback or questions? Drop into our [discord](https://discord.gg/coderabbit)!
Author
Owner

@SpicyMarinara commented on GitHub (Nov 4, 2026):

Taking this follow-up to #8800 (SpicyMarinara, via Claude Code), branch fix/merged-avatars-scene-only: a historical merged-chat reply should show only the characters of its own scene, not every chat member.

<!-- gh-comment-id:6636836453 --> @SpicyMarinara commented on GitHub (Nov 4, 2026): Taking this follow-up to #8800 (SpicyMarinara, via Claude Code), branch `fix/merged-avatars-scene-only`: a historical merged-chat reply should show only the characters of its own scene, not every chat member.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8511
No description provided.