[GH-ISSUE #2608] feat(conversation): custom emojis in the emoji picker (upload, manage, :name:) #1283

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Add user-uploaded custom emojis to Conversation mode, managed directly in the emoji picker (a new "Custom" section) rather than as a separate Gallery tab. Custom emojis are usable in messages via :name:, and a capped subset of their names is advertised to the model so characters can use them too.

Per maintainer guidance: custom emojis belong in the emoji window (not a Gallery tab); their names are sent to the model; users may accumulate hundreds, so only a capped, configurable subset is sent per call.

Conversation mode only — no Roleplay/Game codepaths.

Part 1 of 3 of the Conversation custom-emoji / sticker / reactions effort (reshapes the closed feature request #2360 around the picker, per maintainer guidance). Parts 2 (stickers) and 3 (reactions) build on this foundation.

Scope

  • Storage: a dedicated custom_emojis store (global pool) + image storage. Persona- and character-scoped emojis continue to come from their galleries via the existing tagging from #2585 — this issue does not change that.
  • Access model: every character and persona can use the full global custom-emoji set; a character additionally gets its own gallery emojis; the active persona additionally gets its gallery emojis. So the picker always shows all global emojis plus the active persona's and the chat's bots' emojis — the persona set changes as the user swaps personas.
  • Picker "Custom" section: shows global + active-persona + chat-bot emojis (grouped). Global emojis are managed here — upload, rename, delete, import a set, export a set. Persona/bot emojis are managed in their galleries.
  • Selection preferences (⚙️): a settings control in the custom-emoji section. The user configures: max custom emojis sent per call; selection mode — random, semantic (relevance-ranked via the built-in local embedder), or tool-call (with a tooltip that a capable model is required, plus a connection dropdown to choose which connection handles the call). Exclusive (persona/character) emojis are weighted above global ones.
  • Prompt advertising: the prompt makes clear the character has the full standard emoji set plus the selected X custom ones, usable via :name:.
  • Rendering: :name: renders the custom emoji inline in Conversation messages (small inline; jumbo on an emoji-only line).

Implementation notes

  • The local embedder (local-embedder.ts, all-MiniLM-L6-v2) + the cosine pattern used by lorebook/memory-recall power the semantic mode; random is the always-works floor when the embedder is unavailable.
  • The tool-call mode reuses the same ranking on demand (pull instead of push) and may land as a fast-follow within this PR.
  • Validate with pnpm check; manual verification in Conversation mode (light/dark, mobile, empty states).
Originally created by @kolacheee on GitHub (Jun 18, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2608 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Add user-uploaded **custom emojis** to Conversation mode, managed directly in the emoji picker (a new "Custom" section) rather than as a separate Gallery tab. Custom emojis are usable in messages via `:name:`, and a capped subset of their names is advertised to the model so characters can use them too. Per maintainer guidance: custom emojis belong in the emoji window (not a Gallery tab); their names are sent to the model; users may accumulate hundreds, so only a capped, configurable subset is sent per call. **Conversation mode only** — no Roleplay/Game codepaths. > Part 1 of 3 of the Conversation custom-emoji / sticker / reactions effort (reshapes the closed feature request #2360 around the picker, per maintainer guidance). Parts 2 (stickers) and 3 (reactions) build on this foundation. ## Scope - **Storage:** a dedicated `custom_emojis` store (global pool) + image storage. Persona- and character-scoped emojis continue to come from their galleries via the existing tagging from #2585 — this issue does not change that. - **Access model:** every character and persona can use the **full global** custom-emoji set; a character additionally gets its own gallery emojis; the active persona additionally gets its gallery emojis. So the picker always shows all global emojis **plus** the active persona's and the chat's bots' emojis — the persona set changes as the user swaps personas. - **Picker "Custom" section:** shows global + active-persona + chat-bot emojis (grouped). Global emojis are managed here — **upload, rename, delete, import a set, export a set**. Persona/bot emojis are managed in their galleries. - **Selection preferences (⚙️):** a settings control in the custom-emoji section. The user configures: **max custom emojis** sent per call; **selection mode** — `random`, `semantic` (relevance-ranked via the built-in local embedder), or `tool-call` (with a tooltip that a capable model is required, plus a connection dropdown to choose which connection handles the call). Exclusive (persona/character) emojis are weighted above global ones. - **Prompt advertising:** the prompt makes clear the character has the full standard emoji set **plus** the selected X custom ones, usable via `:name:`. - **Rendering:** `:name:` renders the custom emoji inline in Conversation messages (small inline; jumbo on an emoji-only line). ## Implementation notes - The local embedder (`local-embedder.ts`, all-MiniLM-L6-v2) + the cosine pattern used by lorebook/memory-recall power the `semantic` mode; `random` is the always-works floor when the embedder is unavailable. - The `tool-call` mode reuses the same ranking on demand (pull instead of push) and may land as a fast-follow within this PR. - Validate with `pnpm check`; manual verification in Conversation mode (light/dark, mobile, empty states).
bsakaguchi 2026-10-21 05:30:38 +07:00
  • closed this issue
  • added the
    in-pr
    label
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#1283
No description provided.