mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2927] [Issue]: Macros not evaluating inside <memories> and <agents> blocks #1504
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#1504
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 @SpicyMarinara on GitHub (Jun 28, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2927
Summary
In Marinara Engine v2.0.6, the
{{char}}and{{user}}macros are not being evaluated when they appear inside<memories>or<agents>blocks in request payloads. The user reports this based on logs and provided examples.Expected behavior
Macros such as
{{char}}and{{user}}should be evaluated consistently inside<memories>and<agents>blocks the same way they are elsewhere in the request.Actual behavior
{{char}}and{{user}}remain unevaluated inside<memories>and<agents>blocks.Steps to reproduce
{{char}}and{{user}}macros inside<memories>and/or<agents>blocks.Environment
Logs, screenshots, or video
User reports this was observed in logs. Example blocks were provided in the Discord message, but no screenshots or video were attached.
Additional context
The issue was reported with examples showing
{{char}}and{{user}}inside<memories>and<agents>content. No further reproduction details were provided.Discord thread: [Bug] Macros not evaluating in or
Discord thread link: https://discord.com/channels/1417099416812392641/1520872026380697781
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (1 message)
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 (Jun 28, 2026):
This might have already been addressed, but checking just for sure.
@SpicyMarinara commented on GitHub (Jun 28, 2026):
Fixed in the staging workspace. Memory-recall lines are now resolved through the prompt macro resolver before they enter the block, and agent prompt templates now resolve standard prompt macros like {{char}}/{{user}} after agent setting macros before being wrapped in . Added prompt regression coverage for both paths.\n\nVerified with:\n- pnpm regression:prompt\n- pnpm check