mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6738] [MERGED] fix(memory): recover reviewed and deleted scene summaries #7304
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#7304
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/6738
Author: @SpicyMarinara
Created: 9/26/2026
Status: ✅ Merged
Merged: 9/27/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/advanced-memory-recovery-sept27📝 Commits (7)
384b470test(memory): reproduce correction and deleted-scene recovery failures083d4d9fix(memory): unblock correction reviews and regenerate deleted scenes1a75b0ffix(memory): notify again when a cleared failure recurs3e533f1fix(memory): keep failure notices readable on small screens4a1e522fix(memory): reuse recovery work and follow failure actions across chats061d56ctest(memory): verify repeated recovery against the scene recap8a49fe7Merge staging into Advanced Memory recovery📊 Changes
10 files changed (+371 additions, -115 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
e2e/advanced-memory.e2e.ts(+152 -91)📝
packages/client/src/components/chat/AdvancedMemoryInspector.tsx(+19 -7)📝
packages/client/src/hooks/use-advanced-memory.ts(+33 -1)📝
packages/client/src/hooks/use-generate.ts(+2 -1)📝
packages/client/src/localization/locales/en.json(+5 -0)📝
packages/server/src/services/advanced-memory.ts(+43 -12)📝
packages/shared/src/types/advanced-memory.ts(+2 -0)📝
scripts/regressions/advanced-memory-core.regression.ts(+3 -3)📝
scripts/regressions/advanced-memory-recovery.regression.ts(+110 -0)📄 Description
Linked issue
Closes #6737
Why this change
A legacy scene with partial character visibility could request a correction while the inspector called it valid and disabled Save correction. Saving left the previous job error visible. Deleting a scene to recover left a permanent exclusion with no way to regenerate that one scene, and background preparation failures produced no toast.
What changed
No additional recall model calls, polling, dependencies, storage migration, or change to constant-summary source coverage. Recovery generates only the selected scene; deleted wording cannot be recovered without a backup.
Validation
Validated revision:
8a49fe7ee7cdeb1cf5a85b2a244cfcdac1e82d87, including the lateststagingchanges. Type/build checks, all 10 Advanced Memory suites, and the 18 passing browser cases were rerun on this revision.node scripts/run-regressions.mjs --filter advanced-memory: all 10 suites passed, including recovery, hidden-history coverage, character access, actual generation and large-archive performance.pnpm checkpassed; localization, touched-client ESLint and e2e type checks also passed after the final notification copy change.pnpm regression:promptpassed.3e533f117before the two review follow-ups; isolated container health and client endpoints both returned HTTP 200. No real profile was mounted.Local CodeRabbit completed three reviews. Fixed its notification-reset finding and verified recurrence in the browser. Declined unconditional error clearing for audience-only saves: those intentionally do not acknowledge stale private sections or refresh their visibility marker; clearing the error would hide an unresolved review. The requested-review UI submits the unchanged content to explicitly acknowledge it. A third local review of the follow-up fixes reported no findings. The two inline GitHub findings were fixed: stable recovery cache identity and a toast action that returns to the affected chat after switching chats. The final review also suggested clearing a visibility review after an audience-only API update removes its partial reader. Kept the explicit acknowledgment boundary: the inspector always includes content when saving a flagged manual correction, even if only access was changed or the text is unchanged; an audience-only API update changes access without acknowledging the text review. This is not a remaining failure of Save correction. The existing API behavior remains conservative and can be completed by submitting the unchanged content. The optional docstring coverage warning was not addressed with boilerplate comments; the focused regressions document and verify the changed behavior.
Manual verification still available to the maintainer
Docs and release impact
User-facing recovery guidance is in the existing inspector. Updated
[Unreleased]changelog; no version or release change.UI evidence
Synthetic desktop/mobile screenshots, before and after recovery, in light and dark themes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.