[GH-ISSUE #5432] [Feature]: Resolve macros in character and persona card fields #3013

Closed
opened 2026-10-21 05:58:49 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Add support for resolving existing Marinara macros inside character and persona card text fields. The main use case is allowing appearance fields to reference macros so current outfits or other contextual appearance details can reach generation prompts without rewriting the shared card.

Expected behavior

  • Character and persona card text fields support the existing macro syntax.
  • Macros are resolved at read/generation time using the current chat and generation context.
  • Character and persona appearance fields resolve before they are consumed by text and image-generation paths, including Illustrator and Storyboard.
  • The stored character or persona card keeps the original macro text and is not modified by resolution.
  • Unknown or unavailable macros follow the existing macro engine behavior.

Scope

This issue only covers macro resolution in existing character and persona card fields.

It does not include:

  • An RPG character sheet or inventory manager.
  • Outfit storage or equipment management.
  • A new per-chat appearance override layer.
  • New capability-package hooks or appearance transforms.
  • Changes to tracker or agent behavior.

Acceptance criteria

  • A macro placed in a character appearance field resolves in provider-visible character context.
  • A macro placed in a persona appearance field resolves in provider-visible persona context.
  • The resolved appearance is used by existing image-generation paths that consume card appearance.
  • Resolution is scoped to the active chat/request and does not leak values into other chats.
  • The original saved card content remains unchanged.
  • Add regression coverage for character and persona appearance macro resolution.
Originally created by @SpicyMarinara on GitHub (Aug 23, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5432 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Add support for resolving existing Marinara macros inside character and persona card text fields. The main use case is allowing appearance fields to reference macros so current outfits or other contextual appearance details can reach generation prompts without rewriting the shared card. ## Expected behavior - Character and persona card text fields support the existing macro syntax. - Macros are resolved at read/generation time using the current chat and generation context. - Character and persona appearance fields resolve before they are consumed by text and image-generation paths, including Illustrator and Storyboard. - The stored character or persona card keeps the original macro text and is not modified by resolution. - Unknown or unavailable macros follow the existing macro engine behavior. ## Scope This issue only covers macro resolution in existing character and persona card fields. It does **not** include: - An RPG character sheet or inventory manager. - Outfit storage or equipment management. - A new per-chat appearance override layer. - New capability-package hooks or appearance transforms. - Changes to tracker or agent behavior. ## Acceptance criteria - A macro placed in a character appearance field resolves in provider-visible character context. - A macro placed in a persona appearance field resolves in provider-visible persona context. - The resolved appearance is used by existing image-generation paths that consume card appearance. - Resolution is scoped to the active chat/request and does not leak values into other chats. - The original saved card content remains unchanged. - Add regression coverage for character and persona appearance macro resolution.
Author
Owner

@SpicyMarinara commented on GitHub (Aug 23, 2026):

Owned by @SpicyMarinara and being handled in draft PR #5435.

<!-- gh-comment-id:5384755254 --> @SpicyMarinara commented on GitHub (Aug 23, 2026): Owned by @SpicyMarinara and being handled in draft PR #5435.
Author
Owner

@SpicyMarinara commented on GitHub (Aug 23, 2026):

Fixed on staging by #5435.

<!-- gh-comment-id:5385092623 --> @SpicyMarinara commented on GitHub (Aug 23, 2026): Fixed on staging by #5435.
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#3013
No description provided.