mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7607] [Issue]: Include macro in user message is not expanded prior to being sent #4215
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#4215
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 @usagirei on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7607
Originally assigned to: @SpicyMarinara on GitHub.
Summary
{{include}} macro is not expanded when sent from a user message
Expected behavior
Macro gets expanded, and the resolved value is sent and stored with the user message, just like random and the others
Actual behavior
Similar in essence to both #7212 and #7585
The include macro is not expanded, and is then stored as-is in the message table
however in this scenario, it will still show as {{include::the entry}} in the chat log
It is then resolved only when sent to the model, causing it to potentially resolve with different seeds when random is involved, or the included entry content changes between assistant messages
Steps to reproduce
Random Number: {{random:0:100}}, and Send a message with{{include::The Entry Name}}Environment
c55d563| StagingLogs, screenshots, or video
Additional context
Related:
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Oct 14, 2026):
Fixed on staging by #7615: Send, Post only and /send now save {{include::…}} expanded, with the entry's own macros filled in once. Game turns get the same expansion in the /send follow-up PR (fix/send-followups).