mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5178] [MERGED] feat(macros): support Persona cards by ID #6659
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6659
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5178
Author: @SpicyMarinara
Created: 8/17/2026
Status: ✅ Merged
Merged: 8/17/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/persona-card-id-macro📝 Commits (4)
014be8dfeat(macros): reference Persona cards by ID272d3eafix(macros): preserve discovered persona referencesfe67c68fix(macros): retain scoped persona references28c3d7dMerge remote-tracking branch 'origin/staging' into agent/persona-card-id-macro📊 Changes
7 files changed (+405 additions, -50 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/prompts/macros.md(+3 -0)📝
packages/server/src/services/prompt/assembler.ts(+94 -39)📝
packages/server/src/services/prompt/macro-context.ts(+167 -11)📝
packages/shared/src/utils/macro-engine.ts(+14 -0)📝
scripts/regressions/open-issues.regression.ts(+95 -0)📝
scripts/regressions/prompt.regression.ts(+31 -0)📄 Description
Why
Users can reference an arbitrary Character card by copied ID, but not an arbitrary Persona card. That forces Persona text used outside the active card to be duplicated and manually kept in sync.
What changed
{{persona-<21-character-ID>}}for arbitrary Persona cards.Closes #5171
Validation
pnpm --filter @marinara-engine/shared buildpnpm --filter @marinara-engine/server lintnode ./scripts/run-regressions.mjs --filter scripts/regressions/prompt.regression.tsnode ./scripts/run-regressions.mjs --filter scripts/regressions/open-issues.regression.tsManual verification
{{persona-<ID>}}resolves in Peek Prompt.Summary by CodeRabbit
New Features
Documentation
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.