mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8361] [MERGED] feat(generation): skip built-in recall when Long-Term Memory is on #8316
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#8316
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/8361
Author: @Promansis
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @Promansis
Base:
staging← Head:feature(generation)/8359-ltm-builtin-recall📝 Commits (4)
ef4cd02feat(generation): skip built-in recall when Long-Term Memory is on (#8359)3d57e35Merge remote-tracking branch 'upstream/staging' into feature(generation)/8359-ltm-builtin-recall0d80563fix(generation): return complete game session summaries from listChatSummaries (#8359)16a410dMerge remote-tracking branch 'upstream/staging' into feature(generation)/8359-ltm-builtin-recall📊 Changes
10 files changed (+348 additions, -16 deletions)
View changed files
📝
docs/development/optional-agent-packages.md(+22 -0)📝
packages/server/src/routes/generate.routes.ts(+56 -9)➕
packages/server/src/routes/generate/memory-recall-policy.ts(+28 -0)📝
packages/server/src/services/capability-packages/capability-persistence.service.ts(+69 -0)📝
packages/server/src/services/generation/long-term-memory-runtime.ts(+5 -0)📝
packages/shared/src/schemas/capability-package.schema.ts(+3 -1)📝
packages/shared/src/types/capability-runtime.ts(+27 -1)📝
scripts/regressions/capability-package-lifecycle.regression.ts(+6 -5)📝
scripts/regressions/capability-persistence-permissions.regression.ts(+83 -0)➕
scripts/regressions/long-term-memory-recall-policy.regression.ts(+49 -0)📄 Description
Linked issue
Closes #8359
Why this change
memory_chunksrecall, so a turn could get two sets of memories. This makes the package replace the built-in recall, and gives its text the conversationmemoriesslot when the preset has one.persistence.listChatSummariesadds that (the optional second part of the issue).What changed
routes/generate/memory-recall-policy.ts, used fromgenerate.routes.ts): when the package is listed, enabled and its runtime service is registered, built-in prompt recall is off. In a conversation chat whose preset has amemoriesslot, the package's notes go in that slot, after the important block. Otherwise its agent placement is unchanged. If the runtime service is unregistered, built-in recall stays on.persistence.listChatSummaries(chat-read): returns day, week, rolling and game-session summaries. A legacy single summary is dated with the chat's last update time, not the read time. Capability API 1.386 → 1.387, with a docs section.access_vectorsagent-only recall,dry-run(which never ran this recall), andretry-agents(which runs built-in recall only foraccess_vectorsagents).Known cases where a regenerate gets no memories
Built-in recall stays off on every regenerate in a Long-Term Memory chat, and the slot text comes only from the cached notes. A regenerate therefore gets no memories when the original turn cached none:
A fresh recall here would run recall without prompt accounting, which is the behavior this change avoids, so it is left out on purpose.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Not done. Boxes are left for the human verifier.
Local commands run by the author's agent on the merged head (the boxes above stay unticked):
pnpm check,pnpm version:check, and the regressionslong-term-memory-recall-policy(new),capability-persistence-permissions(extended),capability-package-lifecycle(pins moved to 1.387),prompt,regeneration-context,roleplay-regeneration-context,memory-recall-exclusivity,agents-see-whispers,capability-prompt-preview,manual-agent-retry-resolution,prompt-attachments,context-fitandconnection-model-listthroughnode scripts/run-regressions.mjs --filter <name>.Each new test was checked to fail without its fix: removing the replay filter fails
long-term-memory-recall-policy, and removing theupdatedAtdating failscapability-persistence-permissions.Not proven:
Risk: another Engine PR that bumps the capability API to 1.387 first would collide with this one.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/development/optional-agent-packages.mddocumentslistChatSummaries. No app version bump; the capability API moves to 1.387.UI evidence (if applicable)
None. No UI change.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.