mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2446] [Issue]: 12-PROMPT-RUNTIME-macro-variable-resolution deferred speaker macros missing #1198
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#1198
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 @Promansis on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2446
Originally assigned to: @Promansis on GitHub.
Summary
12-PROMPT-RUNTIME-macro-variable-resolutionparity gap from #2442: refactor prompt assembly does not preserve legacy deferred character macro resolution for multi-character individual turns.Expected behavior
Legacy
maincan defer{{char}}/character field macros during prompt assembly for multi-character individual turns, then resolve placeholders against the actual target speaker before provider send.Acceptance criteria:
12-PROMPT-RUNTIME-macro-variable-resolutionproof is updated in #2442.Actual behavior
Refactor has rich macro support, but targeted static trace found no deferred character macro placeholder/finalization path. It narrows or reorders prompt characters for some requested targets instead, which does not prove parity with legacy deferred speaker resolution.
Steps to reproduce
12-PROMPT-RUNTIME-macro-variable-resolutionin #2442.main:packages/shared/src/utils/macro-engine.tsandmain:packages/server/src/routes/generate.routes.tswith refactorsrc/engine/shared/macros/macro-engine.tsandsrc/engine/generation/prompt-assembly.ts.Impact area
Environment
Logs, screenshots, or video
Proof:
main:packages/server/src/routes/generate.routes.ts:2306deferCharacterMacrosinto assembler input:main:packages/server/src/routes/generate.routes.ts:2498main:packages/server/src/routes/generate.routes.ts:7234main:packages/shared/src/utils/macro-engine.ts:104,main:packages/shared/src/utils/macro-engine.ts:257,main:packages/shared/src/utils/macro-engine.ts:758src/engine/generation/prompt-assembly.ts:2826src/engine/shared/macros/macro-engine.ts:713Files inspected:
src/engine/shared/macros/macro-engine.tssrc/engine/generation/prompt-assembly.tsmain:packages/shared/src/utils/macro-engine.tsmain:packages/server/src/routes/generate.routes.tsmain:packages/server/src/services/prompt/assembler.tsRegression notes
Worked in legacy
mainvia deferred character macro placeholders and target-speaker finalization.Additional context
Source tracker: #2442, surface
12-PROMPT-RUNTIME-macro-variable-resolution.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: