[GH-ISSUE #7585] [Issue]: /send stores user message with raw macros #4209

Closed
opened 2026-10-21 06:12:27 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @usagirei on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7585

Originally assigned to: @SpicyMarinara on GitHub.

Summary

When sending an message with the /send command, the message is stored verbatim, including raw macros (e.g. {{random::...}}).

Expected behavior

Sending a message containing a macro, be it with /send or not, stores the resolved values.

Actual behavior

A Mismatch of what the user is currently seeing in the chat log, and what is sent to the model.
A message sent by /send is stored raw, then the user message macros are re-ran on every request, because the messages table content stored the raw macros instead of the resolved values.

Steps to reproduce

  1. Start a chat with a model
  2. Send the following message: Reply with the following word: {{random::red::green::blue::yellow::cyan::magenta}}
  3. Model replies with the correct word
  4. Send the same message, but now as /send Reply with the following word: {{random::red::green::blue::yellow::cyan::magenta}}, followed by a /continue
  5. User interface displays one word, while model replies with something else entirely
  6. Check the prompt log and spot the issue

Environment

  • Marinara Engine version: Release: v2.5.0 | Build: 09c6eed | Staging
  • Install type: Source
  • OS + version: Fedora 44
  • Browser or app shell: Firefox

Logs, screenshots, or video

Image Image Image
cat g%4Db%44l%4Dexr%53sop%50%58%55b%44gsv.json | jq '.[].content'
"Debug Assistant has joined the chat."
"Reply with the following word: green"
"green"
"Reply with the following word: {{random::red::green::blue::yellow::cyan::magenta}}"
"magenta"

Additional context

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 @usagirei on GitHub (Oct 14, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7585 Originally assigned to: @SpicyMarinara on GitHub. ## Summary <!-- What is wrong in one or two sentences? --> When sending an message with the /send command, the message is stored verbatim, including raw macros (e.g. {{random::...}}). ## Expected behavior <!-- What should have happened? --> Sending a message containing a macro, be it with /send or not, stores the resolved values. ## Actual behavior <!-- What happened instead? --> A Mismatch of what the user is currently seeing in the chat log, and what is sent to the model. A message sent by /send is stored raw, then the user message macros are re-ran on every request, because the messages table content stored the raw macros instead of the resolved values. ## Steps to reproduce 1. Start a chat with a model 2. Send the following message: `Reply with the following word: {{random::red::green::blue::yellow::cyan::magenta}}` 3. Model replies with the correct word 4. Send the same message, but now as `/send Reply with the following word: {{random::red::green::blue::yellow::cyan::magenta}}`, followed by a `/continue` 5. User interface displays one word, while model replies with something else entirely 6. Check the prompt log and spot the issue ## Environment - Marinara Engine version: Release: v2.5.0 | Build: 09c6eed | Staging - Install type: Source - OS + version: Fedora 44 - Browser or app shell: Firefox ## Logs, screenshots, or video <!-- Paste relevant logs and add screenshots when possible --> <img width="961" height="603" alt="Image" src="https://github.com/user-attachments/assets/5ca04b99-2016-434b-a15b-ae48595847d4" /> <img width="822" height="335" alt="Image" src="https://github.com/user-attachments/assets/3fb529a2-96a3-4135-88cc-1b16cae2aeaa" /> <img width="822" height="256" alt="Image" src="https://github.com/user-attachments/assets/f0e8770e-495a-4fe1-aaf8-ca8aac1a128d" /> ``` cat g%4Db%44l%4Dexr%53sop%50%58%55b%44gsv.json | jq '.[].content' "Debug Assistant has joined the chat." "Reply with the following word: green" "green" "Reply with the following word: {{random::red::green::blue::yellow::cyan::magenta}}" "magenta" ``` ## Additional context <!-- Optional: related issue links, temporary workaround, etc. --> ## 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 06:12:27 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Oct 14, 2026):

Fixed on staging by #7600.

<!-- gh-comment-id:6166981341 --> @SpicyMarinara commented on GitHub (Oct 14, 2026): Fixed on staging by #7600.
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#4209
No description provided.