mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1857] [Issue]: Greeting macro variables do not persist into character fields #901
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#901
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 @cha1latte on GitHub (Jun 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1857
Originally assigned to: @cha1latte on GitHub.
{{setvar}}values created from{{random}}in a character greeting are not available when later prompt sections render character fields such as appearance or personality. This makes randomized-per-chat character details either resolve empty or re-randomize instead of staying stable for that chat.Expected behavior
A greeting such as:
should choose one coat value when the greeting is resolved, persist that value for the chat/prompt context, and allow character fields or prompt sections to read it with:
The selected value should remain stable across later messages in that chat.
Actual behavior
{{getvar::coat}}in fields like appearance sends an empty value to the AI, or{{random}}-based values can change again on later messages instead of staying fixed after the greeting.Steps to reproduce
{{setvar::coat::{{random::red coat::blue coat::green coat::grey coat}}}}.He is wearing {{getvar::coat}}in the character appearance or another character field included in the prompt.Impact area
Environment
Logs, screenshots, or video
No logs or screenshots provided.
Regression notes
Unknown. The report compares the desired behavior to SillyTavern-style
{{pick}}behavior, but no last known good Marinara build was provided. This issue is most likely on the old codebase (1.6.1).Additional context
Original user example used
{{setvar::coat{{random::red coat::blue coat::green coat::grey coat}}, which appears to be missing the::between the variable name and value. However, the larger issue remains valid with corrected syntax: greeting/history macro side effects are not persisted in a way that later character field macro resolution can read consistently.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@cha1latte commented on GitHub (Jun 1, 2026):
fixed in #1860