mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2622] [MERGED] feat(conversation): custom emojis in the emoji picker (upload, manage, :name:) #5687
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#5687
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/2622
Author: @kolacheee
Created: 6/18/2026
Status: ✅ Merged
Merged: 6/19/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/staging-custom-emojis📝 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
26 files changed (+1799 additions, -58 deletions)
View changed files
📝
packages/client/src/components/chat/ConversationInput.tsx(+179 -2)📝
packages/client/src/components/chat/ConversationMessage.tsx(+5 -0)📝
packages/client/src/components/chat/ConversationMessageBubble.tsx(+5 -4)📝
packages/client/src/components/chat/ConversationMessageGrouped.tsx(+4 -3)📝
packages/client/src/components/chat/ConversationMessageLine.tsx(+3 -2)📝
packages/client/src/components/chat/ConversationMessageShared.tsx(+9 -1)📝
packages/client/src/components/chat/ConversationView.tsx(+5 -0)➕
packages/client/src/components/chat/CustomEmojiTab.tsx(+396 -0)📝
packages/client/src/components/ui/AppDialogRenderer.tsx(+9 -0)📝
packages/client/src/components/ui/EmojiPicker.tsx(+66 -33)📝
packages/client/src/components/ui/GifPicker.tsx(+24 -12)➕
packages/client/src/hooks/use-conversation-custom-emojis.ts(+88 -0)➕
packages/client/src/hooks/use-custom-emojis.ts(+70 -0)➕
packages/client/src/lib/custom-emoji-render.tsx(+76 -0)📝
packages/client/src/stores/dialog.store.ts(+2 -0)📝
packages/server/src/db/file-backed-store.ts(+1 -0)➕
packages/server/src/db/schema/custom-emojis.ts(+17 -0)📝
packages/server/src/db/schema/index.ts(+1 -0)➕
packages/server/src/routes/custom-emojis.routes.ts(+300 -0)📝
packages/server/src/routes/generate.routes.ts(+266 -1)...and 6 more files
📄 Description
Linked issue
Closes #2608.
Why this change
Per maintainer guidance, custom emojis belong in the emoji picker (a "Custom" section), not a separate Gallery tab. Users upload their own emojis, use them in messages via
:name:, and a capped, configurable subset of names is advertised to the model so characters can use them too. Conversation mode only — no Roleplay/Game codepaths.What changed
Draft / in progress — this branch builds the feature in slices. Landed so far:
custom_emojistable (id, name slug, file path, dimensions);createCustomEmojisStorageCRUD with a name lookup for slug uniqueness; shared Zod schemas + slug/dimension constants.Still to come on this branch:
random/semantic(local embedder) /tool-callmodes; exclusive (persona/character) emojis weighted above global:name:rendering in Conversation messagesValidation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Pending — feature in progress.
Docs and release impact
UI evidence (if applicable)
Mobile Multiselector


(Stickers grayed out, will be implemented and screenshotted again in PR B)
Summary by CodeRabbit
:emoji:syntax with keyboard navigation (arrow keys, Tab/Enter to insert)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.