mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7644] [MERGED] fix(memory): delete a recollection and keep paid Helper replies on Resume #7854
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#7854
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/7644
Author: @SpicyMarinara
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/recollections-delete-and-keep📝 Commits (3)
f964b6efix(memory): delete a recollection and keep paid Helper replies on Resume1587ea2test(e2e): close the scene-check notice before Chat Settings in the recollections test391aa5dMerge branch 'staging' into fix/recollections-delete-and-keep📊 Changes
7 files changed (+386 additions, -34 deletions)
View changed files
📝
docs/agents/memory.md(+1 -1)📝
e2e/advanced-memory.e2e.ts(+42 -4)📝
packages/client/src/components/chat/AdvancedMemoryInspector.tsx(+53 -19)📝
packages/client/src/localization/locales/en.json(+4 -0)📝
packages/server/src/routes/advanced-memory.routes.ts(+2 -1)📝
packages/server/src/services/advanced-memory.ts(+22 -9)📝
scripts/regressions/advanced-memory-recollections.regression.ts(+262 -0)📄 Description
Linked issue
No linked issue: requested by the maintainer on 2026-10-14. Follow-up to #7637 and #7605 (#7602, character recollections).
Why this change
What changed
summarize()already caches every finished, well-formed reply before any later step that can fail. The comment "Save a completed paid response even if cancellation arrived with it" holds there: the cache write runs without the cancel signal, and Resume reuses the reply. Replies that fail their own format check, or that ended unfinished (length,error,abortand so on), are still not cached.advanced-memory-post-generationrequires that.summarize()is skipped for recollection-only requests.docs/agents/memory.mdgets one sentence about Delete.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent (results as observed, not a substitute for the boxes above):
node scripts/run-regressions.mjs --filter advanced-memory: 18/18 passed.pnpm check: exit 0. One existing lint warning inHomeProfessorMariChat.tsx, unrelated.pnpm localization:check: passed.npx playwright test e2e/advanced-memory.e2e.ts --project desktop-chromium --project mobile-chromium -g "Character recollections" --workers=1(custom ports): 2/2 passed at1587ea297. The other tests in that file andmobile-webkitwere not run.pnpm check:e2e-types: exit 0 after the e2e change.New regression sections in
advanced-memory-recollections.regression.ts:Fail-before against staging's code (
154a33092):Error: Memory text must contain between 1 and 500000 charactersat the delete call.['BACKFILL_J', 'BACKFILL_K']instead of['BACKFILL_K'], so it paid again for the scene whose reply had arrived.['0/2', '1/1', '1/2', '2/2']instead of['0/2', '1/2', '2/2'].Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/agents/memory.mdis updated (one sentence).[docs-i18n]follow-up: #7645..UI evidence (if applicable)
The e2e test captures light and dark screenshots of the delete confirm dialog and the deleted recollection (
character-recollections-delete-confirm-*.png,character-recollections-deleted-*.png). They are not attached here.Local CodeRabbit review
coderabbit review --agent --committed --base-commit 154a33092onf964b6e7d: 1 finding.docs/agents/memory.mdneeds thedocs-i18npacks updated or a[docs-i18n]follow-up: already handled by #7645, linked above. CodeRabbit only saw the diff, not the issue. No code change.The later e2e-only commit (
1587ea297) was not re-reviewed locally.Notes for the maintainer
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.