[GH-ISSUE #4506] [Feature]: Add an ID Macro Cards marker to prompt presets #2453

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

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

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Character cards referenced through exact 21-character ID macros are currently injected at a fixed fallback position. Preset authors cannot choose where this supporting card context appears in the assembled prompt.

Proposed solution

Add a preset section marker named ID Macro Cards. When present and enabled, referenced character card context should be inserted at that marker position and respect the section role, order, group, and depth settings. When the marker is absent, preserve the current fallback injection behavior exactly.

Alternatives considered

A plain prompt block cannot reproduce this behavior because the referenced cards are discovered dynamically while macros and lorebook entries are resolved.

Additional context

The marker should cover direct ID macros in chat or preset content and IDs discovered through activated lorebook entries. It must not duplicate the fallback card block.

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 (Aug 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4506 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Character cards referenced through exact 21-character ID macros are currently injected at a fixed fallback position. Preset authors cannot choose where this supporting card context appears in the assembled prompt. ## Proposed solution Add a preset section marker named ID Macro Cards. When present and enabled, referenced character card context should be inserted at that marker position and respect the section role, order, group, and depth settings. When the marker is absent, preserve the current fallback injection behavior exactly. ## Alternatives considered A plain prompt block cannot reproduce this behavior because the referenced cards are discovered dynamically while macros and lorebook entries are resolved. ## Additional context The marker should cover direct ID macros in chat or preset content and IDs discovered through activated lorebook entries. It must not duplicate the fallback card block. ## 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 (Aug 3, 2026):

Claimed for implementation by @SpicyMarinara in draft PR #4507. The marker will own referenced-card placement when enabled, while presets without it retain the current fallback.

<!-- gh-comment-id:5164053984 --> @SpicyMarinara commented on GitHub (Aug 3, 2026): Claimed for implementation by @SpicyMarinara in draft PR #4507. The marker will own referenced-card placement when enabled, while presets without it retain the current fallback.
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#2453
No description provided.