[GH-ISSUE #7006] [Feature]: Let a preset prompt block skip the XML/Markdown wrapper #3923

Closed
opened 2026-10-21 06:08:46 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @JurijPietrowicz on GitHub (Oct 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7006

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

A preset's Wrap Format applies to every section. With XML or MARKDOWN selected, each prompt block is sent inside a tag or under a heading named after the block, and there is no way to exempt a single block.

Some blocks work better unwrapped, for example a block that should read as plain instructions, or one that already contains its own markup. Today the only way to send one block bare is to switch the whole preset to NONE and then hand-write the tags for every other block.

Proposed solution

Add a Send without wrapper switch to each Prompt Block in the Preset Editor's Sections tab. When it is on, that block is sent exactly as written, while the rest of the preset keeps its wrap format.

  • If the block belongs to a group, the group's tag or heading still surrounds it. Removing the block from the group sends it fully bare.
  • Markers (Character Info, Lorebook, Chat History, and so on) always keep their wrapper. The switch is not shown on them, and the prompt builder ignores the setting on markers.
  • The switch is hidden when the preset's wrap format is NONE, since nothing is wrapped then.
  • The setting carries over when a preset is duplicated, exported/imported, backed up and restored, or created by Professor Mari. Existing presets are unaffected because the setting defaults to off.

I have a working implementation with a prompt-assembly regression test on my fork: https://github.com/JurijPietrowicz/Marinara-Engine/tree/feat/section-wrap-override

Alternatives considered

  • Switch the preset to NONE and write the tags by hand: works today, but makes every other block harder to maintain just to exempt one.
  • Reuse the old per-section wrapInXml / xmlTagName fields: they still exist in the section schema but have been unused since wrapping moved to the preset level. Their stored default is "false", which would mean "unwrapped" for every existing section, so a new field that defaults to off is safer.
  • A per-section wrap format picker (XML / Markdown / None): more flexible, but mixing formats inside one preset adds complexity with no clear use case. An on/off switch covers the need.

Additional context

The English guide docs/prompts/presets.md gets a short paragraph under "Wrap formats". Translations will be tracked in a [docs-i18n] follow-up issue.

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 @JurijPietrowicz on GitHub (Oct 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7006 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? A preset's **Wrap Format** applies to every section. With **XML** or **MARKDOWN** selected, each prompt block is sent inside a tag or under a heading named after the block, and there is no way to exempt a single block. Some blocks work better unwrapped, for example a block that should read as plain instructions, or one that already contains its own markup. Today the only way to send one block bare is to switch the whole preset to **NONE** and then hand-write the tags for every other block. ## Proposed solution Add a **Send without wrapper** switch to each **Prompt Block** in the Preset Editor's **Sections** tab. When it is on, that block is sent exactly as written, while the rest of the preset keeps its wrap format. - If the block belongs to a group, the group's tag or heading still surrounds it. Removing the block from the group sends it fully bare. - Markers (Character Info, Lorebook, Chat History, and so on) always keep their wrapper. The switch is not shown on them, and the prompt builder ignores the setting on markers. - The switch is hidden when the preset's wrap format is **NONE**, since nothing is wrapped then. - The setting carries over when a preset is duplicated, exported/imported, backed up and restored, or created by Professor Mari. Existing presets are unaffected because the setting defaults to off. I have a working implementation with a prompt-assembly regression test on my fork: https://github.com/JurijPietrowicz/Marinara-Engine/tree/feat/section-wrap-override ## Alternatives considered - **Switch the preset to NONE and write the tags by hand:** works today, but makes every other block harder to maintain just to exempt one. - **Reuse the old per-section `wrapInXml` / `xmlTagName` fields:** they still exist in the section schema but have been unused since wrapping moved to the preset level. Their stored default is `"false"`, which would mean "unwrapped" for every existing section, so a new field that defaults to off is safer. - **A per-section wrap format picker (XML / Markdown / None):** more flexible, but mixing formats inside one preset adds complexity with no clear use case. An on/off switch covers the need. ## Additional context The English guide `docs/prompts/presets.md` gets a short paragraph under "Wrap formats". Translations will be tracked in a `[docs-i18n]` follow-up issue. ## 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.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 3, 2026):

Thank you!

<!-- gh-comment-id:5968423127 --> @SpicyMarinara commented on GitHub (Oct 3, 2026): Thank you!
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#3923
No description provided.