mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7237] [Issue]: Adding a character to a merged group chat hides earlier Advanced Memory recall #4040
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#4040
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/7237
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Reported on Discord by kociol21 (2026-10-07):
In a merged group chat, Advanced Memory only recalls a scene when every character currently in the chat was there. Once a character joins, no earlier scene qualifies, so all earlier memories drop out of the prompt. Character-scoped Chat Summary sections are also evaluated as one arbitrary character (whichever has the smallest random id), which can be the newcomer, so those summaries render empty.
Expected behavior
The merged prompt always comes back as one character speaking at a time, so the model should keep the memories and know who remembers what. The maintainer's design (Mari, 2026-10-07): "In the merged group chat, this should not be happening. Things should not break. It's always one character responding. So the who-remembers-what is more informative for the model."
Actual behavior
no-recall-candidates) and Chat Summary keeps only empty "Messages #a–#b" headers when the newcomer's id sorts first.Steps to reproduce
Environment
staging3fcbc4619Logs, screenshots, or video
Reproduced on
stagingwith an Advanced Memory audience script (merged Alice + Bob, then Cara added): recall returnsno-recall-candidatesand the scoped constants render empty when Cara's id sorts first. Individual mode recalls correctly per responder.Additional context
Root causes:
recallAudienceMatchesinpackages/server/src/services/advanced-memory.tsrequires every present character in a scene's audience, andrenderEntryresolves summary conditions withchar= the first audience id after sorting.@SpicyMarinara commented on GitHub (Oct 7, 2026):
Claude Code (for @SpicyMarinara) is working on this on branch
fix/merged-group-newcomer-recall; PR tostagingfollows shortly.@SpicyMarinara commented on GitHub (Oct 7, 2026):
Fixed on
stagingby #7239. Ships tomainwith the next promotion.