mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2877] [Issue]: Conversation reacts leak as raw [react: emoji="…"] text when Character Commands is off #1463
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#1463
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?
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
[react: emoji="…"]text instead of a reaction badge.Environment
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 thechatMode === "conversation"block), but the react parse/strip/apply path is gated behindconversationCommandsEnabled(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