mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6534] [MERGED] fix(memory): keep one scene memory with explicit participant access #7217
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#7217
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/6534
Author: @SpicyMarinara
Created: 9/22/2026
Status: ✅ Merged
Merged: 9/22/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/sept22-memory-audience📝 Commits (9)
3d85532docs: track Advanced Memory scene audience fixf3d79b8fix(memory): assign one scene memory to its actual participants1b66ddbMerge branch 'staging' into codex/sept22-memory-audience4658b16fix(memory): preserve canonical scene selection in backup importscda4c03Merge remote-tracking branch 'origin/codex/sept22-memory-audience' into codex/sept22-memory-audience27f509bperf(memory): check correction access once per scene753b054test(memory): count scene copies separately from indexed excerptse866196fix(memory): normalize helper output before reading scene access1a79efbfix(memory): retain saved recaps after interrupted access checks📊 Changes
11 files changed (+575 additions, -253 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
e2e/advanced-memory.e2e.ts(+10 -8)📝
packages/client/src/components/chat/AdvancedMemoryInspector.tsx(+15 -22)📝
packages/client/src/localization/locales/en.json(+5 -3)📝
packages/server/src/services/advanced-memory.ts(+223 -198)📝
packages/shared/src/types/advanced-memory.ts(+4 -1)➕
scripts/regressions/advanced-memory-audience.regression.ts(+294 -0)📝
scripts/regressions/advanced-memory-core.regression.ts(+11 -10)📝
scripts/regressions/advanced-memory-history-start.regression.ts(+2 -3)📝
scripts/regressions/advanced-memory-post-generation.regression.ts(+1 -0)📝
scripts/regressions/advanced-memory-summary.regression.ts(+9 -8)📄 Description
Linked issue
Closes #6533
Why this change
Advanced Memory prepared separate scene copies from each character's readable history. That assigned scenes to absent or inactive roster members even though source visibility does not establish participation. Empty audiences also behaved like shared access.
What changed
"all"expands the current character list; missing/unknown/empty participation means narrator only. The narrator always has access without a separate copy.Validation
Human checklist intentionally left unchecked:
pnpm checkpasses locallyCONTRIBUTING.mdRecorded automated proof:
pnpm install --frozen-lockfile,pnpm check,pnpm regression:promptpassed.node scripts/run-regressions.mjs --filter advanced-memory— 9/9 passed. Covers narrator-only defaults, absent characters, explicit all, shared/individual access, legacy repairs, source hiding, toggles, deletion, backup ordering, model-output formatting and interrupted access checks. Reindexing is explicitly proven to make no summary/classification calls.pnpm exec playwright test e2e/advanced-memory.e2e.ts --workers=3— 27/27 passed across desktop Chromium, mobile Chromium and iPhone WebKit; the three editor cases passed again after the recovery follow-up.1a79efba1.Local CodeRabbit review completed and was rerun after substantive fixes; the final recovery/shared-descriptor follow-up returned zero findings. Valid findings fixed: toggle-only requests must preserve duplicate texts/original ACLs; source eligibility should be computed once per correction; helper output needs provider normalization; an interrupted access worker must not hide its saved recap; the client/server audience descriptor must be shared. Also simplified the redundant boolean. Dismissed: a terminology preference that conflicts with the existing knowledge-start wording; a reported duplicate
finallythat is absent in the actual file (single cleanup block, executable regression passes).Manual verification notes
Browser automation exercised editing/clearing access, saving text, toggling recall, deleting with confirmation, error recovery, light/dark themes and desktop/mobile layouts. Screenshots were visually inspected.
Manually verify participant choices with the actual helper model and a real roleplay transcript, including an inactive character who is merely discussed and a user-only scene. Model judgment is not guaranteed by mocked provider tests. Mobile WebKit emulation is covered; a physical iPhone app was not tested.
An optional macOS native job timed out in the unchanged development-mode busy-terminal shutdown fixture after saving data and releasing its lease. Its install/build steps passed; a rerun was requested. All eight required merge checks passed.
Docs and release impact
User-focused
[Unreleased]changelog entry included. No version, storage-layout or translated-doc changes.UI evidence (if applicable)
Before/after desktop and iPhone WebKit screenshots, using synthetic fixtures only.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.