[GH-ISSUE #7712] [Issue]: Individual group mode saves every character's expression on the last reply only #4261

Closed
opened 2026-10-21 06:13:43 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @surrealle on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7712

Originally assigned to: @SpicyMarinara on GitHub.

Summary

In a Roleplay group chat in Individual mode, each character replies as her own message, but the Expression Engine runs once after the whole round and saves all characters' expressions on the last message only. Earlier replies in the round carry no spriteExpressions, so sprites do not change while you read them, and each character gets one expression for the whole round.

Expected behavior

Each character's reply carries that character's own expression, judged from her own text, so her sprite changes when her reply lands.

Actual behavior

Only the last reply of the round has extra.spriteExpressions, and it holds the map for all characters.

Steps to reproduce

  1. Roleplay group chat with 3 sprite-enabled characters, group mode Individual, Expression Engine on.
  2. Send a message and let every character reply.
  3. Check each reply's extra: only the last one has spriteExpressions.

Environment

  • Marinara Engine version: 2.5.0
  • Install type: docker
  • OS + version: Ubuntu 24.04.5 LTS
  • Browser or app shell: any (server-side)

Logs, screenshots, or video

One round from my chat (message order, extra.spriteExpressions):

user     -> { persona: armor-neutral }
Narrator -> none
Char A   -> none
Char B   -> none
Char C   -> { C: smirk, B: neutral, A: neutral }

Every round in the chat shows this.
Cause: generate.routes.ts (staging f040d9067) runs post-processing once after the Individual loop and writes the whole map to lastSavedMsg (~L12355 messageId = lastSavedMsg?.id, ~L12516 updateMessageExtraForSwipe). Possible fix: in the Individual loop, write each character's entry to her own reply in the round (or run the Expression Engine per reply). Related: #6872 (same symptom in Merged mode, fixed), #4454.

None

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 @surrealle on GitHub (Oct 16, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7712 Originally assigned to: @SpicyMarinara on GitHub. ## Summary In a Roleplay group chat in Individual mode, each character replies as her own message, but the Expression Engine runs once after the whole round and saves all characters' expressions on the last message only. Earlier replies in the round carry no spriteExpressions, so sprites do not change while you read them, and each character gets one expression for the whole round. ## Expected behavior Each character's reply carries that character's own expression, judged from her own text, so her sprite changes when her reply lands. ## Actual behavior Only the last reply of the round has extra.spriteExpressions, and it holds the map for all characters. ## Steps to reproduce 1. Roleplay group chat with 3 sprite-enabled characters, group mode Individual, Expression Engine on. 2. Send a message and let every character reply. 3. Check each reply's extra: only the last one has spriteExpressions. ## Environment - Marinara Engine version: 2.5.0 - Install type: docker - OS + version: Ubuntu 24.04.5 LTS - Browser or app shell: any (server-side) ## Logs, screenshots, or video One round from my chat (message order, extra.spriteExpressions): ``` user -> { persona: armor-neutral } Narrator -> none Char A -> none Char B -> none Char C -> { C: smirk, B: neutral, A: neutral } ``` Every round in the chat shows this. Cause: `generate.routes.ts` (staging f040d9067) runs post-processing once after the Individual loop and writes the whole map to `lastSavedMsg` (~L12355 `messageId = lastSavedMsg?.id`, ~L12516 `updateMessageExtraForSwipe`). Possible fix: in the Individual loop, write each character's entry to her own reply in the round (or run the Expression Engine per reply). Related: #6872 (same symptom in Merged mode, fixed), #4454. <!-- Optional: related issue links, temporary workaround, etc. --> None ## 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-10-21 06:13:43 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 16, 2026):

Working on this in #7715.

<!-- gh-comment-id:6211732443 --> @SpicyMarinara commented on GitHub (Oct 16, 2026): Working on this in #7715.
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#4261
No description provided.