mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3210] [Issue]: Conversation mode — can't react to individual characters' messages in a multi-character reply (only the whole block) #1725
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#1725
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 @kolacheee on GitHub (Jul 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3210
Originally assigned to: @kolacheee on GitHub.
What's being asked for (a limitation, not a crash)
In conversation mode with multiple characters, a reply from the characters is delivered as one message split into per-speaker segments (Admin / QRK-E / Bosh each get their own line). But emoji reactions are stored and shown for the whole message, so you can only react to the entire block — you can't give one reaction to character A's line and a different one to character B's. In a 1:1 chat this is invisible (one message = one speaker); with a group it means reactions can't be aimed at a specific character.
This is a direct consequence of how conversation replies are generated: all characters are merged into a single message separated by name headers (to avoid a separate API call per character, which matters especially for autonomous messaging). So the request here is a client/storage-side workaround that lets reactions target individual segments without changing that merged-generation model.
How to see it (try it yourself)
You'll see: the reaction attaches to the whole block (rendered once, at the bottom), and there's no way to react to character A's line separately from character B's.
Requested: each character's segment can be reacted to independently.
Why it happens / where it is
messagesrow. The client splits it into per-speaker segments —groupedSegments(packages/client/src/components/chat/ConversationMessage.tsx~380) — and renders them viaConversationMessageGrouped.tsx(each segment, lines 133-292).MessageReaction(packages/shared/src/types/chat.ts:555-561) is{ emoji, imageUrl?, by[] }with no segment/speaker key, andMessageExtra.reactions(line 581) is one array per message.message.id:ConversationMessage.tsxreactions = extra.reactions(173-175),handleToggleReaction→api.patch('/chats/{chatId}/messages/{id}/extra', { reactions })(333), andreactionRow/onPickReactionare used once (647, 659-668).ConversationMessageGrouped.tsxrendersConversationMessageActions(which carries the reaction picker) once at the block bottom (333-362), never per segment.Suggested workaround (keeps the one-message merged model)
Make reactions segment-aware, purely on the storage + client side — no change to generation or the number of API calls:
segment?: number(the segment index) toMessageReaction, or storereactionsas a map keyed by segment index. Reactions with no segment key keep meaning "whole message," so existing data and 1:1 chats are unaffected.ConversationMessageGrouped.tsx, render a per-segment reaction row + add affordance for each grouped segment, instead of one row at the block bottom.handleToggleReactionwith the segment's key; it's still onePATCH /messages/{id}/extra.Caveat worth a small decision: segment identity is derived by parsing the message content, so an edit or regeneration that changes the segment boundaries could misalign per-segment reactions. Keying by segment index is the simplest; index + speaker name is a bit more robust. Decide how to handle re-segmentation (e.g. drop reactions whose segment no longer exists).
On the second idea in the report ("characters seeing/responding to your reactions"): the data model already supports character reactors —
MessageReaction.byholds"user"or character ids, and the code notes character reactions are applied server-side — so bots reacting is a thing. But whether the user's reaction is surfaced back into the prompt so a character can respond to it is a separate enhancement; happy to investigate and file that on its own if wanted.AI-investigated against the current tree (v2.0.9) from the user's report (Android/Termux); the reaction type, storage, and grouped-segment rendering read and confirmed. Please verify before implementing.