mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6510] [MERGED] fix: preserve edited memories during reindexing #7206
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#7206
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/6510
Author: @SpicyMarinara
Created: 9/21/2026
Status: ✅ Merged
Merged: 9/21/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/sept21-memory-reindex-corrections📝 Commits (2)
d5e5feddocs: track edited-memory reindex regression17a5cc3fix: preserve scene corrections and only rebuild memory vectors on reindex📊 Changes
7 files changed (+293 additions, -22 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
e2e/advanced-memory.e2e.ts(+13 -0)📝
packages/client/src/components/chat/AdvancedMemoryInspector.tsx(+9 -2)📝
packages/client/src/localization/locales/en.json(+2 -1)📝
packages/server/src/routes/advanced-memory.routes.ts(+8 -2)📝
packages/server/src/services/advanced-memory.ts(+71 -15)📝
scripts/regressions/advanced-memory-core.regression.ts(+188 -2)📄 Description
Linked issue
Closes #6509
Why this change
A manually edited scene could retain dependencies on an older Chat Summary. Editing its text or character access refreshed the message fingerprint but left those dependencies stale. Reindex then ran full archive preparation, tried to replace the correction, and stopped with a misleading source-message error. The editor also disabled Save correction when the text was already correct.
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAutomated evidence:
node scripts/run-regressions.mjs --filter advanced-memory: 8/8 passed, including real generation, historical cutoffs, post-generation work and the large-archive inspector. The updated core suite also passes with the HTTP reindex/cancel/retry proof.pnpm smoke:ui --grep 'stays in Chat Settings' --workers=2: passed on desktop Chromium, mobile Chromium and mobile WebKit. The recovery action sends the unchanged correction and becomes disabled once saved. A focused mobile WebKit rerun captured its light/dark recovery state.pnpm check: passed. Server type checks rerun after the queue correction. The pre-existing GameNarration effect-dependency warning remains.Manual verification notes
Claim boundary
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUnreleased changelog and canonical English recovery copy updated. No storage-format, release-version, dependency or user-facing docs changes.
UI evidence (if applicable)
The existing Advanced Memory browser regression captures
advanced-memory-review-correction-dark.pngandadvanced-memory-review-correction-light.png, including the enabled Save correction action with unchanged text. These are included in browser-test artifacts.Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.