[GH-ISSUE #3220] Group chats: character reactions are always credited to the first character #1731

Closed
opened 2026-10-21 05:42:07 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @SpicyMarinara, @kolacheee on GitHub.

What happens

In a group conversation chat with Commands enabled, when characters use the [react: …] emoji-reaction command (#3210 / #3211), the reaction chip is always credited to the first character in the chat — hover the chip and the tooltip says "reacted by " every time, no matter which character was reacting in the story.

Try it yourself

  1. Conversation chat with 2–3 characters, Commands on.
  2. Chat until characters start reacting (or ask them to: "someone react to my message").
  3. Hover each reaction chip. Every character reaction says "reacted by" the same character — whichever is listed first in the chat — even when the reply text makes clear a different character was the one reacting.

Why it happens

Merged group replies put all characters' turns in one response, split by Name: line prefixes, and each [react:] tag is attributed to the character whose section it sits in. But models consistently emit the react tag as the first line of the whole reply, above any character's section (confirmed by inspecting extra.conversationCommandContent of real replies — three out of three looked like this):

[react: emoji="🍿" to "User"]

Floyd Leech: oooh, corn! gimme some!
Jade Leech: It seems we have become the evening's entertainment.
Aurey Louvette: Eating while we argue... the sheer lack of decorum.

Text above the first Name: prefix falls back to the generation's primary character — the first one — in parseCharacterCommandsBySpeaker (packages/server/src/services/conversation/character-commands.ts). So a top-of-reply tag always credits character #1, deterministically.

Suggested fix direction

Two halves: tell models (in group chats) to write the tag inside the reacting character's own section so attribution is intentional, and make the fallback for tags above the first section attribute to the first section's speaker (the turn the tag visually opens) instead of always the primary character.

Found while playtesting #3211; raw reply excerpts above are from the live data of that session.

Originally created by @kolacheee on GitHub (Jul 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3220 Originally assigned to: @SpicyMarinara, @kolacheee on GitHub. **What happens** In a group conversation chat with Commands enabled, when characters use the `[react: …]` emoji-reaction command (#3210 / #3211), the reaction chip is always credited to the **first character in the chat** — hover the chip and the tooltip says "reacted by <first character>" every time, no matter which character was reacting in the story. **Try it yourself** 1. Conversation chat with 2–3 characters, Commands on. 2. Chat until characters start reacting (or ask them to: "someone react to my message"). 3. Hover each reaction chip. Every character reaction says "reacted by" the same character — whichever is listed first in the chat — even when the reply text makes clear a different character was the one reacting. **Why it happens** Merged group replies put all characters' turns in one response, split by `Name:` line prefixes, and each `[react:]` tag is attributed to the character whose section it sits in. But models consistently emit the react tag as the **first line of the whole reply, above any character's section** (confirmed by inspecting `extra.conversationCommandContent` of real replies — three out of three looked like this): ``` [react: emoji="🍿" to "User"] Floyd Leech: oooh, corn! gimme some! Jade Leech: It seems we have become the evening's entertainment. Aurey Louvette: Eating while we argue... the sheer lack of decorum. ``` Text above the first `Name:` prefix falls back to the generation's primary character — the first one — in `parseCharacterCommandsBySpeaker` (`packages/server/src/services/conversation/character-commands.ts`). So a top-of-reply tag always credits character #1, deterministically. **Suggested fix direction** Two halves: tell models (in group chats) to write the tag inside the reacting character's own section so attribution is intentional, and make the fallback for tags above the first section attribute to the first section's speaker (the turn the tag visually opens) instead of always the primary character. *Found while playtesting #3211; raw reply excerpts above are from the live data of that session.*
bsakaguchi 2026-10-21 05:42:07 +07:00
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#1731
No description provided.