[GH-ISSUE #3081] [Issue]: /impersonate does not evaluate macros in persona description #1646

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

Originally created by @SpicyMarinara on GitHub (Jun 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3081

Originally assigned to: @SpicyMarinara on GitHub.

Summary

When using the /impersonate command, the persona description block is appended but macros inside it are not evaluated. The user reports seeing raw {{user}} macros in the console.

Expected behavior

Macros inside the persona description block should be evaluated when /impersonate is used, so placeholders like {{user}} are replaced with their resolved values.

Actual behavior

The persona description block is appended without macro evaluation, and raw {{user}} macros remain visible in the console.

Steps to reproduce

  1. Use the /impersonate command.
  2. Include a persona description that contains macros such as {{user}}.
  3. Observe the resulting console output or appended persona description.

Environment

  • Marinara Engine version: Not provided in the Discord context.
  • Install type: Not provided
  • OS + version: Not provided in the Discord context.
  • Browser or app shell: Not provided in the Discord context.

Logs, screenshots, or video

User reports seeing raw {{user}} macros in the console. No logs, screenshots, or video were provided.

Additional context

Reported by AgentX in Discord. The issue appears to affect macro evaluation specifically within the persona description block appended by /impersonate.

Discord message: Discord message from AgentX
Discord message link: https://discord.com/channels/1417099416812392641/1495493775617687775/1521319455353733142
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord message transcript (1 message)
[2026-06-30T01:00:22.905Z] AgentX: Can someone confirm this is a bug? When using /impersonate command, it appends persona description block, but it doesn't eval macros (like {{user}}) inside of  persona description.  I still see {{user}} macros in my console.
[Discord message: https://discord.com/channels/1417099416812392641/1495493775617687775/1521319455353733142]

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 30, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3081 Originally assigned to: @SpicyMarinara on GitHub. ## Summary When using the /impersonate command, the persona description block is appended but macros inside it are not evaluated. The user reports seeing raw `{{user}}` macros in the console. ## Expected behavior Macros inside the persona description block should be evaluated when /impersonate is used, so placeholders like `{{user}}` are replaced with their resolved values. ## Actual behavior The persona description block is appended without macro evaluation, and raw `{{user}}` macros remain visible in the console. ## Steps to reproduce 1. Use the `/impersonate` command. 2. Include a persona description that contains macros such as `{{user}}`. 3. Observe the resulting console output or appended persona description. ## Environment - Marinara Engine version: Not provided in the Discord context. - Install type: Not provided - OS + version: Not provided in the Discord context. - Browser or app shell: Not provided in the Discord context. ## Logs, screenshots, or video User reports seeing raw `{{user}}` macros in the console. No logs, screenshots, or video were provided. ## Additional context Reported by AgentX in Discord. The issue appears to affect macro evaluation specifically within the persona description block appended by `/impersonate`. Discord message: Discord message from AgentX Discord message link: https://discord.com/channels/1417099416812392641/1495493775617687775/1521319455353733142 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord message transcript (1 message)</summary> ```text [2026-06-30T01:00:22.905Z] AgentX: Can someone confirm this is a bug? When using /impersonate command, it appends persona description block, but it doesn't eval macros (like {{user}}) inside of persona description. I still see {{user}} macros in my console. [Discord message: https://discord.com/channels/1417099416812392641/1495493775617687775/1521319455353733142] ``` </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:41:15 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Author
Owner

@SpicyMarinara commented on GitHub (Jun 30, 2026):

Fixed in PR #3082: /impersonate now resolves prompt macros inside the persona description before adding that block to the impersonation instruction. Validation passed: server/shared/client lint, pnpm check, and pnpm regression:prompt.

<!-- gh-comment-id:4840787849 --> @SpicyMarinara commented on GitHub (Jun 30, 2026): Fixed in PR #3082: /impersonate now resolves prompt macros inside the persona description before adding that block to the impersonation instruction. Validation passed: server/shared/client lint, 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#1646
No description provided.