[GH-ISSUE #3485] [Issue]: Character-owned custom emoji reactions never resolve an image (producer/consumer key mismatch) #1881

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

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

Originally assigned to: @kolacheee on GitHub.

Summary

Character-owned custom emoji reactions can never resolve an image, because the code that stores the emoji URL map and the code that reads it use different key formats.

Why this is a problem: the producer and consumer disagree on the map key, so the lookup always misses for the character scope. Persona-owned and global emojis use the scoped key on both sides and work.
What it negatively affects: the "Make emoji" feature on character galleries. When a character reacts with its own gallery emoji in a Conversation chat, the reaction renders without the image. It also sends anyone debugging "why doesn't the emoji show" into the UI when the bug is in the key format.

Expected behavior

A character reacting with :name: for an emoji tagged in its own gallery resolves the image URL like persona and global emojis do.

Actual behavior

  • packages/server/src/routes/generate/conversation-custom-assets.ts:257 — stores character gallery emojis under the bare name: conversationCustomEmojiUrlByName.set(String(img.customName), ...).
  • packages/server/src/services/generation/conversation-react-command-runtime.ts:106 — looks them up under the scoped key buildConversationCustomEmojiKey("character", characterId, name). The bare-name key never matches, so imageUrl resolves to null for character-owned emojis.

Steps to reproduce

  1. In a character's Gallery tab, tag an image with Make emoji and give it a name.
  2. In a Conversation chat with that character, get the character to react with :that_name:.
  3. The reaction resolves no image. Repeat with a persona-owned or global emoji of the same name: those work.

Environment

  • Marinara Engine version: 2.2.0 (staging @ 45b650de9)
  • Install type: source
  • OS + version: N/A — verified by reading the code
  • Browser or app shell: N/A

Logs, screenshots, or video

N/A — file/line references above point at the exact code.

Additional context

Likely fix is one line: build the producer's key with buildConversationCustomEmojiKey("character", info.charId, name) to match the consumer. Found by a repo-wide read-only sweep; adversarially re-verified before filing. No fix started. Part of a coordinated set of sweep catalogue issues filed together.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @kolacheee on GitHub (Jul 11, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3485 Originally assigned to: @kolacheee on GitHub. ## Summary Character-owned custom emoji reactions can never resolve an image, because the code that stores the emoji URL map and the code that reads it use different key formats. **Why this is a problem:** the producer and consumer disagree on the map key, so the lookup always misses for the character scope. Persona-owned and global emojis use the scoped key on both sides and work. **What it negatively affects:** the "Make emoji" feature on character galleries. When a character reacts with its own gallery emoji in a Conversation chat, the reaction renders without the image. It also sends anyone debugging "why doesn't the emoji show" into the UI when the bug is in the key format. ## Expected behavior A character reacting with `:name:` for an emoji tagged in its own gallery resolves the image URL like persona and global emojis do. ## Actual behavior - [ ] `packages/server/src/routes/generate/conversation-custom-assets.ts:257` — stores character gallery emojis under the bare name: `conversationCustomEmojiUrlByName.set(String(img.customName), ...)`. - [ ] `packages/server/src/services/generation/conversation-react-command-runtime.ts:106` — looks them up under the scoped key `buildConversationCustomEmojiKey("character", characterId, name)`. The bare-name key never matches, so `imageUrl` resolves to null for character-owned emojis. ## Steps to reproduce 1. In a character's Gallery tab, tag an image with **Make emoji** and give it a name. 2. In a Conversation chat with that character, get the character to react with `:that_name:`. 3. The reaction resolves no image. Repeat with a persona-owned or global emoji of the same name: those work. ## Environment - Marinara Engine version: 2.2.0 (staging @ 45b650de9) - Install type: source - OS + version: N/A — verified by reading the code - Browser or app shell: N/A ## Logs, screenshots, or video N/A — file/line references above point at the exact code. ## Additional context Likely fix is one line: build the producer's key with `buildConversationCustomEmojiKey("character", info.charId, name)` to match the consumer. Found by a repo-wide read-only sweep; adversarially re-verified before filing. No fix started. Part of a coordinated set of sweep catalogue issues filed together. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:43:30 +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#1881
No description provided.