mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6924] [Issue]: Unresolved Character-Id macro for active chat characters #3884
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#3884
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?
Originally created by @argxentakato on GitHub (Oct 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6924
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The
{{21-character-card-ID}}macro appears not to resolve when it references a character who is already participating in the current chat. Instead of replacing the macro with that character's name, the literal{{21-character-card-ID}}text remains in the prompt content.This appears to contradict the documentation. The documentation describes
{{21-character-card-ID}}as:While it is certainly desirable to avoid duplicating the active character's card content in the referenced-character context block, this macro should still be replaced with that character's name regardless of whether the character is already active in the chat.
Expected behavior
When
{{21-character-card-ID}}references a character who is already an active participant in the chat, the macro should still resolve to that character's name in the output, even though the full card context does not need to be duplicated.Actual behavior
When
{{21-character-card-ID}}references a character who is already an active participant in the chat, the macro is left unresolved (the literal{{21-character-card-ID}}text remains in the prompt) instead of being replaced with that character's name.Steps to reproduce
{{21-character-card-ID}}.Environment
Logs, screenshots, or video
No logs or media provided.
Additional context
As part of the current implementation specifications,
macro-context.tsexcludes the active character before replacing{{21-character-card-ID}}with the character's name:github.com/Pasta-Devs/Marinara-Engine@12a0acd5b7/packages/server/src/services/prompt/macro-context.ts (L431-L433)Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: