mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7224] [MERGED] fix(memory): give group-chat scenes with no listed participants to every character #7632
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#7632
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/7224
Author: @SpicyMarinara
Created: 10/7/2026
Status: ✅ Merged
Merged: 10/7/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/group-missing-audience-all📝 Commits (3)
cf343f7fix(memory): give group-chat scenes with no listed participants to every characterd6a2239fix(memory): mark scenes with unconfirmed participants in Access memoriesac12288docs(memory): state the missing-audience rule consistently (#7184)📊 Changes
7 files changed (+117 additions, -43 deletions)
View changed files
📝
CHANGELOG.md(+2 -1)📝
docs/agents/memory.md(+1 -1)📝
packages/client/src/components/chat/AdvancedMemoryInspector.tsx(+27 -4)📝
packages/client/src/localization/locales/en.json(+3 -2)📝
packages/server/src/services/advanced-memory.ts(+3 -5)📝
scripts/regressions/advanced-memory-audience.regression.ts(+42 -26)📝
scripts/regressions/advanced-memory-recall-followups.regression.ts(+39 -4)📄 Description
Linked issue
Refs #7184
Refs #7203
Why this change
Since #7203, a group-chat scene stays narrator-only when the Helper model doesn't say who took part (the
audiencekey is missing ornull). The characters who were really there then can't recall it until the user fixes each scene by hand, and in a long group chat that can go unnoticed.Mari decided on 2026-10-07: "Better to include all characters in that case and allow the user to remove later those to whom it does not apply." A flagged scene shared too widely is easy to fix from the warning, while a scene nobody recalls looks like lost memory.
What changed
packages/server/src/services/advanced-memory.ts: a missing ornullaudience now gives the scene to every chat character, in group chats as well as one-character chats. The existing limits stay: only characters who can access the scene's source messages get it, and the designated narrator, who already sees everything, isn't listed. Group scenes keep thescene-audience-unmatchedflag (no audience returned), so the warning still appears. The same code handles new scene summaries, the participant-only pass and the bounded older-scene repair.{"Kaito": false}still grant nothing and are flagged. An explicit[]keeps #7203's meaning: a user-only scene, narrator-only, with no flag.en.json): the scene note no longer says the scene is narrator-only. It now says Advanced Memory couldn't confirm who was in the scene and points to Edit character access. The settings warning now says those scenes are marked in Access memories for this chat. No community UI pack translates these keys yet.AdvancedMemoryInspector.tsx: the scene list marks flagged scenes with "Check who was there" (new keychat.advancedMemory.audienceUnconfirmed, steady accent colour), and searching for that text finds them. Before this PR, the "Narrator only" label was the only clue in the list. Now these scenes list every character, the same as a confirmed scene, so without the marker the user would have to open each scene to find them.advanced-memory-audience.regression.ts: the group assertion now expects every character, with a comment citing Mari's decision. The maintainer decision changed; the test is not weakened. New assertions check the scene's flag (no audience returned), that an unknown name is flagged with that name, and that matched names and"all"are not flagged. Pantalone's recall checks now pin the exact scene set: the unlisted scene and the"all"scene, never the scene where Maukie only talked about him.advanced-memory-recall-followups.regression.ts: group cases for a missing audience,null,[],{"Kaito": false}and a description. Every matrix case now also runs through the older-scene participant check and must give the same access and warning.nullaudience still goes to that character, with no warning.docs/agents/memory.mdandCHANGELOG.md([Unreleased]).Validation
pnpm checkpasses locallyCONTRIBUTING.mdWhat the agent ran (the boxes above are left for a human):
node scripts/run-regressions.mjs --filter memory: 20/20 passed (after the verifier's follow-up commit too).advanced-memory.tsfromorigin/staging, both changed regressions fail on the new group assertions.pnpm checkandpnpm localization:check: passed.no audience returned. Such scenes exist only on staging builds made after #7203, which hasn't reachedmainor a release. They keep their warning, the new copy describes them correctly, and Edit character access fixes them. A migration or forced re-check would add code and paid helper calls for that short staging-only window.Manual verification notes
audience: after Prepare existing history, Access memories for this chat lists both characters for that scene.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Changed:
docs/agents/memory.md(participant paragraph) andCHANGELOG.md([Unreleased]). Translation follow-up: #7225. No version or storage-format change.UI evidence (if applicable)
One short marker, "Check who was there", added to the scene row's character line in Access memories for this chat. Two existing English strings were reworded.
Summary by CodeRabbit
New Features
Documentation
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.