mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2964] [Issue]: Conditional macros do not resolve in persona fields #1539
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#1539
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 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2964
Originally assigned to: @SpicyMarinara on GitHub.
Summary
In roleplay mode on ME 2.0.6, variables defined in persona fields resolve with normal getvar/{{variable}} usage, but
ifconditionals do not resolve correctly. The reporter also notes this likely affects character cards and should work in both places.Expected behavior
Conditional macros in persona fields should evaluate correctly when checking defined variables, including equality checks using supported operators and values.
Actual behavior
ifconditionals in persona fields do not resolve correctly, even though normal getvar/{{variable}} resolution works. Attempts with==,is, and=operators and with quoted/unquoted values produced the same incorrect result.Steps to reproduce
ifconditional in the persona field.Environment
Logs, screenshots, or video
Two screenshots were attached in Discord showing the issue: Screenshot_2026-06-29-12-23-22-749_com.android.chrome.jpg and Screenshot_2026-06-29-12-23-51-795_com.android.chrome.jpg.
Additional context
The reporter tested multiple comparison operators (
==,is,=) and both quoted and unquoted string values ("Dottore"andDottore) with the same result. Marinara replied that it probably will not resolve in character cards either, but should for both persona fields and character cards.Discord thread: Conditional macros not working in persona fields
Discord thread link: https://discord.com/channels/1417099416812392641/1521029327863677091
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (2 messages)
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 29, 2026):
Fixed in staging: persona field condition operands/macros (personaDescription, personaPersonality, etc.) are supported in the shared macro engine. Validated with pnpm check and pnpm regression:prompt.