mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6538] [MERGED] fix(memory): preserve corrected access and complete missing scene ranges #7216
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#7216
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/6538
Author: @SpicyMarinara
Created: 9/22/2026
Status: ✅ Merged
Merged: 9/22/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/sept22-memory-gap-access📝 Commits (4)
daca6b9chore: start focused Advanced Memory recovery fixa73efc1fix(memory): recover incomplete scenes and preserve corrected access5a31c65test(memory): keep legacy access screenshot in the viewport9001de5fix(memory): retain shared access when importing legacy backups📊 Changes
5 files changed (+427 additions, -27 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
e2e/advanced-memory.e2e.ts(+5 -2)📝
packages/client/src/components/chat/AdvancedMemoryInspector.tsx(+1 -0)📝
packages/server/src/services/advanced-memory.ts(+86 -25)➕
scripts/regressions/advanced-memory-recovery.regression.ts(+333 -0)📄 Description
Linked issue
Closes #6537
Why this change
“Prepare scene” could report ready while a saved recap covered only the end of its scene. The participant-access update also projected older manual assignments as narrator-only, and deleted duplicate copies could revoke access from the surviving recap. Reindexing consequently appeared to erase the user's corrections.
What changed
Validation
Automated results (checkboxes below remain human verification tasks):
pnpm checkpassed, including localization, formatting, types/lint and production build.All 10 Advanced Memory regression files passed. New cases reproduce partial coverage, legacy manual access, deleted-copy interference, failed repair/resume, named participants, embedding-only reindexing, raw export preservation and shared-access import round trips.
pnpm regression:promptpassed.All 27 Advanced Memory browser checks passed across desktop Chromium, mobile Chromium and iPhone-sized WebKit. The pre-fix WebKit run reproduced the incorrect narrator-only review notice on a manually corrected scene.
Local CodeRabbit review completed. Its backup round-trip finding was fixed and regression-tested. Its suggestion to block reuse of already-complete manual records on character visibility changes was dismissed: retrieval and constant materialization already enforce source eligibility, while blocking preparation here would reintroduce unnecessary correction errors. The access check remains required when extending a corrected record's source range. A further local review attempt was rate-limited. GitHub CodeRabbit completed its review of
9001de512with no actionable findings; all eight required checks passed. Its advisory docstring-coverage warning did not require adding unrelated boilerplate.pnpm checkpasses locallyContainer (Docker / Podman) built and ran without issue
Ran the app, clicked through the changes manually
Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
Above manual verification completed (describe below)
Read and followed
CONTRIBUTING.mdManual verification notes
Manually verify the existing archive after updating: open Access memories, check the saved character assignments, then use Prepare scene for the missing range. Do not reset the archive. Reindex should keep the same text and access without summary calls.
Local container build/run was not repeated because host storage has under 3 GiB free; the required CI container build/smoke gate passed. Browser automation uses synthetic data; the maintainer's private chat was inspected read-only and is not included in this PR.
Docs and release impact
Added an Unreleased changelog entry. No install, release metadata, or user-documentation changes.
UI evidence
Before/after iPhone WebKit proof in light and dark themes. Synthetic fixtures only.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.