[GH-ISSUE #2904] [Issue]: Evaluate macros in exported chat files #1485

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Exported TXT and JSON chat logs currently preserve placeholder macros like {{user}} and {{char}} instead of resolving them. This makes exports inconsistent with the in-app conversation display and less useful for archiving or sharing.

Expected behavior

Before exporting a chat to TXT or JSON, all defined macros should be resolved so the output contains the actual user and character names.

Actual behavior

Exported files contain raw macro text such as {{user}} and {{char}} instead of the resolved names.

Steps to reproduce

  1. Open a chat that uses placeholder macros like {{user}} and {{char}}.
  2. Export the chat to TXT or JSON.
  3. Inspect the exported file and observe that the macros remain unresolved.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Not provided in the Discord thread.

Additional context

The report notes that resolved names are often visible in specific posts such as the initial alternative message, but the export should consistently reflect evaluated values across the entire chat.

Discord thread: [Feature Request] Eval macros on exported chats
Thread link: https://discord.com/channels/1417099416812392641/1520035348837568592
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (2 messages)
[2026-06-26T11:57:48.054Z] AgentX: **What problem does this solve?**

When exporting chats to TXT or JSON formats, placeholder macros (such as "{{user}}" and "{{char}}") are not evaluated, resulting in the output files containing raw macro text instead of the resolved character and user names. This makes exported chat logs inconsistent with what the user sees on screen and difficult to archive, analyze, create memories for, or share correctly, etc.

**Proposed solution**

Implement a mandatory pre-export evaluation step for all chat transcripts. Before writing the data to TXT or JSON, the system should automatically resolve all defined macros (e.g., replace `{{user}}` with the actual persona name and `{{char}}` with the character's name). This ensures that the exported file contains clean, readable text reflecting the final persona/character names used in the conversation.

**Alternatives considered**

Currently, no macro evaluation takes place upon export; macros are written literally into the output files. While this is technically functional (the system doesn't crash), it produces a useless or misleading data format for archiving purposes.

**Additional context**

This issue is most apparent because the fully resolved names/macros are often only visible within specific posts, such as the initial 'alternative message,' but the entire chat export should consistently reflect these evaluated values.
[Discord message: https://discord.com/channels/1417099416812392641/1520035348837568592/1520035348837568592]

[2026-06-28T09:39:22.137Z] Marinara: On it.
[Discord message: https://discord.com/channels/1417099416812392641/1520035348837568592/1520725287028134009]

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 28, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2904 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Exported TXT and JSON chat logs currently preserve placeholder macros like `{{user}}` and `{{char}}` instead of resolving them. This makes exports inconsistent with the in-app conversation display and less useful for archiving or sharing. ## Expected behavior Before exporting a chat to TXT or JSON, all defined macros should be resolved so the output contains the actual user and character names. ## Actual behavior Exported files contain raw macro text such as `{{user}}` and `{{char}}` instead of the resolved names. ## Steps to reproduce 1. Open a chat that uses placeholder macros like `{{user}}` and `{{char}}`. 2. Export the chat to TXT or JSON. 3. Inspect the exported file and observe that the macros remain unresolved. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Not provided in the Discord thread. ## Additional context The report notes that resolved names are often visible in specific posts such as the initial alternative message, but the export should consistently reflect evaluated values across the entire chat. Discord thread: [Feature Request] Eval macros on exported chats Thread link: https://discord.com/channels/1417099416812392641/1520035348837568592 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-06-26T11:57:48.054Z] AgentX: **What problem does this solve?** When exporting chats to TXT or JSON formats, placeholder macros (such as "{{user}}" and "{{char}}") are not evaluated, resulting in the output files containing raw macro text instead of the resolved character and user names. This makes exported chat logs inconsistent with what the user sees on screen and difficult to archive, analyze, create memories for, or share correctly, etc. **Proposed solution** Implement a mandatory pre-export evaluation step for all chat transcripts. Before writing the data to TXT or JSON, the system should automatically resolve all defined macros (e.g., replace `{{user}}` with the actual persona name and `{{char}}` with the character's name). This ensures that the exported file contains clean, readable text reflecting the final persona/character names used in the conversation. **Alternatives considered** Currently, no macro evaluation takes place upon export; macros are written literally into the output files. While this is technically functional (the system doesn't crash), it produces a useless or misleading data format for archiving purposes. **Additional context** This issue is most apparent because the fully resolved names/macros are often only visible within specific posts, such as the initial 'alternative message,' but the entire chat export should consistently reflect these evaluated values. [Discord message: https://discord.com/channels/1417099416812392641/1520035348837568592/1520035348837568592] [2026-06-28T09:39:22.137Z] Marinara: On it. [Discord message: https://discord.com/channels/1417099416812392641/1520035348837568592/1520725287028134009] ``` </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:36:36 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

Addressed in draft PR #2916 (commit 51dcf81e) as part of the June 28 issue sweep. Validation passed locally with pnpm check. Closing per maintainer request; please reopen or comment on the PR if anything still reproduces.

<!-- gh-comment-id:4826060856 --> @SpicyMarinara commented on GitHub (Jun 28, 2026): Addressed in draft PR #2916 (commit 51dcf81e) as part of the June 28 issue sweep. Validation passed locally with `pnpm check`. Closing per maintainer request; please reopen or comment on the PR if anything still reproduces.
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#1485
No description provided.