[GH-ISSUE #3753] [Issue]: Conversation blocks ignore preset wrap format #2021

Closed
opened 2026-10-21 05:44:38 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Some auto-inserted conversation-mode blocks use hardcoded XML tags instead of the preset's configured wrap format. This occurs with memory recall, cross-chat awareness, and connected or linked chat context blocks.

Expected behavior

All conversation-mode blocks should use the preset's wrap format, including when the format is set to "none" or Markdown.

Actual behavior

Memory recall uses hardcoded <memories> tags, cross-chat awareness uses <awareness> with Markdown headers inside, and connected or linked chat context uses tags such as <connected_roleplay>, <recent_messages>, and <influence>. These XML tags remain when the preset wrap format is "none" or Markdown.

Steps to reproduce

  1. Configure a preset with its wrap format set to "none" or Markdown.
  2. Render {{memories}} or trigger automatic memory recall insertion.
  3. Observe that recalled memories are wrapped in hardcoded <memories> tags while important memories respect the preset setting.
  4. Trigger cross-chat awareness or connected/linked chat context insertion.
  5. Observe hardcoded XML tags such as <awareness>, <connected_roleplay>, <recent_messages>, and <influence>.

Environment

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

Logs, screenshots, or video

No logs, screenshots, or video were provided.

Additional context

Cross-chat awareness also places ## Markdown headers inside the hardcoded XML block. Context, commands, important memories, lorebook, and group output format were reported to respect the preset setting. Other affected blocks may exist.

Discord thread: [Bug] Some conversation-mode blocks ignore the preset's wrap format setting
Discord thread link: https://discord.com/channels/1417099416812392641/1527728679189217410
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (1 message)
[2026-07-17T17:28:20.945Z] Kat: Some of the auto-inserted conversation blocks hardcode `<xml>` tags instead of using the preset's wrap format. On a "none" preset they still come out xml, and on markdown they're xml too.

Easiest to see with `{{memories}}`: it renders important-memories + recalled-memories. The important-memories half seems to respect the wrap setting, the recall half hardcodes `<memories>` right next to it. 

Others I found doing the same thing:

- **memory recall** — hardcoded `<memories>`, both via `{{memories}}` and the auto insert.
- **cross-chat awareness** — hardcoded `<awareness>`. It also puts `##` markdown headers inside the block, so it's xml outside / markdown inside no matter the setting.
- **connected/linked chat context** — hardcoded `<connected_roleplay>`, `<recent_messages>`, `<influence>` etc.

Everything else (context, commands, important memories, lorebook, group output format) respects the setting fine, though there might be others that don't that I didn't find.
[Discord message: https://discord.com/channels/1417099416812392641/1527728679189217410/1527728679189217410]

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 (Jul 17, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3753 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Some auto-inserted conversation-mode blocks use hardcoded XML tags instead of the preset's configured wrap format. This occurs with memory recall, cross-chat awareness, and connected or linked chat context blocks. ## Expected behavior All conversation-mode blocks should use the preset's wrap format, including when the format is set to "none" or Markdown. ## Actual behavior Memory recall uses hardcoded `<memories>` tags, cross-chat awareness uses `<awareness>` with Markdown headers inside, and connected or linked chat context uses tags such as `<connected_roleplay>`, `<recent_messages>`, and `<influence>`. These XML tags remain when the preset wrap format is "none" or Markdown. ## Steps to reproduce 1. Configure a preset with its wrap format set to "none" or Markdown. 2. Render `{{memories}}` or trigger automatic memory recall insertion. 3. Observe that recalled memories are wrapped in hardcoded `<memories>` tags while important memories respect the preset setting. 4. Trigger cross-chat awareness or connected/linked chat context insertion. 5. Observe hardcoded XML tags such as `<awareness>`, `<connected_roleplay>`, `<recent_messages>`, and `<influence>`. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video No logs, screenshots, or video were provided. ## Additional context Cross-chat awareness also places `##` Markdown headers inside the hardcoded XML block. Context, commands, important memories, lorebook, and group output format were reported to respect the preset setting. Other affected blocks may exist. Discord thread: [Bug] Some conversation-mode blocks ignore the preset's wrap format setting Discord thread link: https://discord.com/channels/1417099416812392641/1527728679189217410 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (1 message)</summary> ```text [2026-07-17T17:28:20.945Z] Kat: Some of the auto-inserted conversation blocks hardcode `<xml>` tags instead of using the preset's wrap format. On a "none" preset they still come out xml, and on markdown they're xml too. Easiest to see with `{{memories}}`: it renders important-memories + recalled-memories. The important-memories half seems to respect the wrap setting, the recall half hardcodes `<memories>` right next to it. Others I found doing the same thing: - **memory recall** — hardcoded `<memories>`, both via `{{memories}}` and the auto insert. - **cross-chat awareness** — hardcoded `<awareness>`. It also puts `##` markdown headers inside the block, so it's xml outside / markdown inside no matter the setting. - **connected/linked chat context** — hardcoded `<connected_roleplay>`, `<recent_messages>`, `<influence>` etc. Everything else (context, commands, important memories, lorebook, group output format) respects the setting fine, though there might be others that don't that I didn't find. [Discord message: https://discord.com/channels/1417099416812392641/1527728679189217410/1527728679189217410] ``` </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:44:38 +07:00
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#2021
No description provided.