mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7252] [Issue]: Merged group chats read Chat Summary sections as the first character in chat order #4046
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#4046
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 @SpicyMarinara on GitHub (Oct 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7252
Originally assigned to: @SpicyMarinara on GitHub.
Summary
With Advanced Memory off, the classic Chat Summary in a merged Roleplay group chat checks
{{#if char == "Name"}}sections as the first character in chat order. Only that one character's private sections reach the shared prompt, and every other character's are dropped. If the narrator is first in chat order, narrator-only sections reach the prompt instead.This was found while building #7239 (the Advanced Memory fix for #7237): that PR changed Advanced Memory to keep what any present character knows and mark it "known only to …", but the classic Chat Summary path still uses the prompt's single
{{char}}.Expected behavior
As Mari decided for #7237 (2026-10-07): "things should not break; the who-remembers-what is more informative for the model." A merged reply can voice anyone present, so a Chat Summary section that depends on the character should be checked for each present character. A section not everyone knows should be kept and marked with who knows it, for example
[Known only to Maukie: …], exactly as Advanced Memory does since #7239. Narrator-only sections should never reach the shared prompt.Individual group chats, a pinned speaker, impersonation and single-character chats should read the summary exactly as before.
Actual behavior
The summary is resolved once with
charset to the first character in chat order (buildPromptMacroContextusesnames[0]). For a merged chat with Narrator, Maukie and Pantalone (in that order), this summary:reaches the prompt as:
Maukie's and Pantalone's private sections are gone, the section they share is gone, and the narrator-only section is included.
Steps to reproduce
Environment
stagingat10bdad166(after #7239)Logs, screenshots, or video
Reproduced with a prompt-assembly fixture against
staging; output shown above.Additional context
chat_summarymarker expansion and inappendFallbackChatSummaryToSystemPrompt, for both generation and the prompt preview (dry run).Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Oct 7, 2026):
Fixed on
stagingby #7254. Ships tomainwith the next promotion.