[GH-ISSUE #2964] [Issue]: Conditional macros do not resolve in persona fields #1539

Closed
opened 2026-10-21 05:38:40 +07:00 by bsakaguchi · 1 comment
Owner

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 if conditionals 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

if conditionals 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

  1. Use Marinara Engine ME 2.0.6 on Termux Android (manual install) in roleplay mode.
  2. Define a variable in persona fields.
  3. Reference that variable with an if conditional in the persona field.
  4. Observe that the conditional does not resolve correctly, while normal getvar/{{variable}} usage does.

Environment

  • Marinara Engine version: ME 2.0.6
  • Install type: termux
  • OS + version: Android (Termux, manual)
  • Browser or app shell: Chrome on Android

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" and Dottore) 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)
[2026-06-29T05:47:31.121Z] nerb: ME 2.0.6
Termux android (manual)
Roleplay mode

When a variable is defined in persona fields, `if` conditionals don't resolve correctly (but normal getvar/{{variable}} does)

I've tried with `==` / `is` / `=` operators, `"Dottore"` / `Dottore` value check, same results

[attached image 1: https://cdn.discordapp.com/attachments/1521029327863677091/1521029328190701608/Screenshot_2026-06-29-12-23-22-749_com.android.chrome.jpg?ex=6a435873&is=6a4206f3&hm=6b0acf09579f0bdbef1cbe5687173eec4de4569d4e6ef84923a26c8de8bcbe3e&]
[attached image 2: https://cdn.discordapp.com/attachments/1521029327863677091/1521029328664526999/Screenshot_2026-06-29-12-23-51-795_com.android.chrome.jpg?ex=6a435873&is=6a4206f3&hm=4cbd674bf0eff2805b21ceaa1afdce959374a244829e3d286a49bae4416cad1b&]
[Discord message: https://discord.com/channels/1417099416812392641/1521029327863677091/1521029327863677091]

[2026-06-29T05:55:57.240Z] Marinara: It probably won’t resolve in character cards either, but they absolutely should for both.
[Discord message: https://discord.com/channels/1417099416812392641/1521029327863677091/1521031450680492176]

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 @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 `if` conditionals 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 `if` conditionals 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 1. Use Marinara Engine ME 2.0.6 on Termux Android (manual install) in roleplay mode. 2. Define a variable in persona fields. 3. Reference that variable with an `if` conditional in the persona field. 4. Observe that the conditional does not resolve correctly, while normal getvar/{{variable}} usage does. ## Environment - Marinara Engine version: ME 2.0.6 - Install type: termux - OS + version: Android (Termux, manual) - Browser or app shell: Chrome on Android ## 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"` and `Dottore`) 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) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-06-29T05:47:31.121Z] nerb: ME 2.0.6 Termux android (manual) Roleplay mode When a variable is defined in persona fields, `if` conditionals don't resolve correctly (but normal getvar/{{variable}} does) I've tried with `==` / `is` / `=` operators, `"Dottore"` / `Dottore` value check, same results [attached image 1: https://cdn.discordapp.com/attachments/1521029327863677091/1521029328190701608/Screenshot_2026-06-29-12-23-22-749_com.android.chrome.jpg?ex=6a435873&is=6a4206f3&hm=6b0acf09579f0bdbef1cbe5687173eec4de4569d4e6ef84923a26c8de8bcbe3e&] [attached image 2: https://cdn.discordapp.com/attachments/1521029327863677091/1521029328664526999/Screenshot_2026-06-29-12-23-51-795_com.android.chrome.jpg?ex=6a435873&is=6a4206f3&hm=4cbd674bf0eff2805b21ceaa1afdce959374a244829e3d286a49bae4416cad1b&] [Discord message: https://discord.com/channels/1417099416812392641/1521029327863677091/1521029327863677091] [2026-06-29T05:55:57.240Z] Marinara: It probably won’t resolve in character cards either, but they absolutely should for both. [Discord message: https://discord.com/channels/1417099416812392641/1521029327863677091/1521031450680492176] ``` </details> ## 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 05:38:40 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@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.

<!-- gh-comment-id:4830958048 --> @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.
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#1539
No description provided.