[GH-ISSUE #2877] [Issue]: Conversation reacts leak as raw [react: emoji="…"] text when Character Commands is off #1463

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

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

Originally assigned to: @Romuromylus on GitHub.

Summary

In Conversation mode, when "Character Commands" is turned off for a chat, characters still emit [react: emoji="…"] tags but they are shown as raw literal text instead of posting an emoji reaction badge.

Expected behavior

Emoji reactions should be consistent with the Character Commands toggle: when commands are enabled the [react: …] tag is stripped and posted as a reaction badge (this already works); when commands are disabled the tag should never reach the visible message as raw text.

Actual behavior

With Character Commands disabled, the model is still told it can react, so it writes lines like [react: emoji="✨"]. The server skips command parsing entirely in that state, so the tag is saved and rendered verbatim in the character's message and no reaction badge is posted.

Steps to reproduce

  1. Open a Conversation-mode chat (this reproduces in both solo and group chats).
  2. Chat Settings → Commands → turn the master Commands toggle off.
  3. Send a message that nudges the characters to react (e.g. "everyone just emoji-react to this").
  4. The reply(ies) contain literal [react: emoji="…"] text instead of a reaction badge.

Environment

  • Marinara Engine version: 2.0.5 (staging)
  • Install type: source
  • OS + version: reproduced in-browser
  • Browser or app shell: Chrome

Logs, screenshots, or video

Reproduced live with an A/B test in a group chat: with Commands on, six characters' reactions rendered as badges (😍 🙄 ✨ 💕 🎮 ☕); with Commands off, the identical prompt produced literal [react: emoji="…"] text in each character's message and no badges.

Additional context

Root cause: the react capability instruction is appended to the conversation system prompt unconditionally (packages/server/src/routes/generate.routes.ts, in the chatMode === "conversation" block), but the react parse/strip/apply path is gated behind conversationCommandsEnabled (chatMode === "conversation" && metadata.characterCommands !== false). When the toggle is off, the instruction is still injected while the handler that would strip and apply the tag is skipped.

Originally reported in the community Discord as group-chat-only; it is not group-specific. The trigger is the Character Commands toggle, not group vs. solo — group chats just happened to have commands disabled.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Romuromylus on GitHub (Jun 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2877 Originally assigned to: @Romuromylus on GitHub. ## Summary In Conversation mode, when "Character Commands" is turned off for a chat, characters still emit `[react: emoji="…"]` tags but they are shown as raw literal text instead of posting an emoji reaction badge. ## Expected behavior Emoji reactions should be consistent with the Character Commands toggle: when commands are enabled the `[react: …]` tag is stripped and posted as a reaction badge (this already works); when commands are disabled the tag should never reach the visible message as raw text. ## Actual behavior With Character Commands disabled, the model is still told it can react, so it writes lines like `[react: emoji="✨"]`. The server skips command parsing entirely in that state, so the tag is saved and rendered verbatim in the character's message and no reaction badge is posted. ## Steps to reproduce 1. Open a Conversation-mode chat (this reproduces in both solo and group chats). 2. Chat Settings → Commands → turn the master **Commands** toggle off. 3. Send a message that nudges the characters to react (e.g. "everyone just emoji-react to this"). 4. The reply(ies) contain literal `[react: emoji="…"]` text instead of a reaction badge. ## Environment - Marinara Engine version: 2.0.5 (staging) - Install type: source - OS + version: reproduced in-browser - Browser or app shell: Chrome ## Logs, screenshots, or video Reproduced live with an A/B test in a group chat: with Commands **on**, six characters' reactions rendered as badges (😍 🙄 ✨ 💕 🎮 ☕); with Commands **off**, the identical prompt produced literal `[react: emoji="…"]` text in each character's message and no badges. ## Additional context Root cause: the react capability instruction is appended to the conversation system prompt unconditionally (`packages/server/src/routes/generate.routes.ts`, in the `chatMode === "conversation"` block), but the react parse/strip/apply path is gated behind `conversationCommandsEnabled` (`chatMode === "conversation" && metadata.characterCommands !== false`). When the toggle is off, the instruction is still injected while the handler that would strip and apply the tag is skipped. Originally reported in the community Discord as group-chat-only; it is not group-specific. The trigger is the Character Commands toggle, not group vs. solo — group chats just happened to have commands disabled. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:35:49 +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#1463
No description provided.