mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2634] [MERGED] feat(conversation): message reactions + character reacts #5700
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#5700
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/2634
Author: @kolacheee
Created: 6/18/2026
Status: ✅ Merged
Merged: 6/19/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/staging-message-reactions📝 Commits (10+)
113f4c9feat(custom-emojis): data model + storage for global custom emojis1cea476feat(custom-emojis): routes — upload, serve, list, rename, delete, import/exportffdf5c1feat(custom-emojis): emoji-picker Custom tab + client hookse834059feat(custom-emojis): render :name: tokens as inline images in conversation messages6216af2feat(custom-emojis): jumbo rendering for emoji-only lines1e8338afeat(custom-emojis): :emoji: autocomplete in the conversation composer2ba59cbfeat(emoji): resolve per-source custom emojis in conversations4627ceffeat(emoji): show persona & character emojis in the picker's Custom tab2636930feat(emoji): advertise available custom emojis to the model35ec1fffeat(emoji): add selection preferences (max count + random/semantic)📊 Changes
43 files changed (+3775 additions, -98 deletions)
View changed files
📝
packages/client/src/components/chat/ConversationInput.tsx(+283 -2)📝
packages/client/src/components/chat/ConversationMessage.tsx(+76 -1)📝
packages/client/src/components/chat/ConversationMessageActions.tsx(+5 -0)📝
packages/client/src/components/chat/ConversationMessageBubble.tsx(+6 -4)📝
packages/client/src/components/chat/ConversationMessageGrouped.tsx(+7 -3)📝
packages/client/src/components/chat/ConversationMessageLine.tsx(+4 -2)📝
packages/client/src/components/chat/ConversationMessageShared.tsx(+20 -3)📝
packages/client/src/components/chat/ConversationView.tsx(+10 -0)➕
packages/client/src/components/chat/CustomEmojiSelectionSettings.tsx(+123 -0)➕
packages/client/src/components/chat/CustomEmojiTab.tsx(+308 -0)➕
packages/client/src/components/chat/MessageReactions.tsx(+133 -0)➕
packages/client/src/components/chat/ReactionAddButton.tsx(+83 -0)➕
packages/client/src/components/chat/StickerPicker.tsx(+413 -0)📝
packages/client/src/components/ui/AppDialogRenderer.tsx(+38 -1)📝
packages/client/src/components/ui/EmojiPicker.tsx(+108 -47)📝
packages/client/src/components/ui/GifPicker.tsx(+25 -12)➕
packages/client/src/hooks/use-conversation-custom-emojis.ts(+88 -0)➕
packages/client/src/hooks/use-conversation-custom-stickers.ts(+88 -0)➕
packages/client/src/hooks/use-custom-emojis.ts(+70 -0)➕
packages/client/src/hooks/use-custom-stickers.ts(+70 -0)...and 23 more files
📄 Description
Linked issue
Closes #2610.
Why this change
Add message reactions to Conversation mode (Part 3 of 3, after custom emojis + stickers): users can react to messages with standard or custom emojis, and characters can react too. Reactions are serialized into the prompt so characters perceive them, and a lone user reaction with no text follow-up is a valid turn that can prompt a (time-gated) character response. Conversation mode only — no Roleplay/Game codepaths.
What changed
Built in slices, reusing the custom-emoji / sticker work:
MessageReactiontype +extra.reactionson messages; puretoggleReaction/USER_REACTORhelpers; a Discord-styleMessageReactionschip row (own-reaction highlight, who-reacted tooltip, rendered outside the[data-card-css]container so a character's bubble theme can't restyle it; right-aligned under user bubbles); aReactionAddButtonin the hover action bar (standard emojis + a pick-only custom grid). Wired into the line, bubble, and grouped message layouts. Reactions persist via the existingPATCH /chats/:id/messages/:id/extraroute (optimistic, with rollback).[<who> reacted with <emoji>]note (custom emojis shown as:name:, already advertised), injected once per request so every conversation prompt path inherits it; it is not timestamp-shaped, so the conversation timestamp stripper leaves it intact.[react: emoji="😂"](custom emojis via:name:) advertised in the system prompt, parsed + stripped from the reply, and applied to the user's most recent message (the responding character becomes a reactor; a custom-emoji image URL is resolved server-side so the chip renders). Whether and how warmly to react is left emergent per personality — nothing hardcoded.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Suggested manual checks (Conversation mode):
[react: …]does not appear in the visible message, and the reaction badge lands on your latest message.Docs and release impact
UI evidence (if applicable)
Pending — reaction chips, the add-reaction button, and a character reaction badge (to be attached after manual verification).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.