mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #948] [CLOSED] Add semantic summary recall for roleplay summaries #4852
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#4852
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/948
Author: @Promansis
Created: 5/17/2026
Status: ❌ Closed
Base:
staging← Head:feature/rp-summary-semantic-recall📝 Commits (7)
ba3249bAdd: Summary Recall. Prettier code was run as a part of this.0ffa404Fix: Deletion/sync path825071dfix: repair missing summary recall embeddings9fb4fdbfeat: clarify summary recall settingsc462328fix: smooth summary recall slider41fa625docs: document summary recall controls816895dfix: simplify summary context modes📊 Changes
16 files changed (+697 additions, -21 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/CONFIGURATION.md(+1 -1)📝
docs/ROLEPLAY.md(+1 -0)📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+126 -4)📝
packages/client/src/hooks/use-chats.ts(+10 -0)📝
packages/server/src/db/migrate.ts(+23 -0)📝
packages/server/src/db/schema/chats.ts(+8 -0)📝
packages/server/src/routes/chats.routes.ts(+44 -2)📝
packages/server/src/routes/generate.routes.ts(+91 -3)📝
packages/server/src/services/agents/knowledge-router.ts(+1 -0)📝
packages/server/src/services/memory-recall.ts(+46 -6)📝
packages/server/src/services/storage/chats.storage.ts(+19 -5)➕
packages/server/src/services/summary-recall.ts(+116 -0)📝
packages/server/test/memory-recall.test.ts(+190 -0)📝
packages/shared/src/types/agent.ts(+2 -0)📝
packages/shared/src/types/chat.ts(+18 -0)📄 Description
Linked issue
Closes Issue #939
Why this change
Long roleplay chats can accumulate large rolling summaries. Injecting the entire compiled summary every turn keeps continuity, but it can also consume prompt space and carry unrelated older context into the current response.
This adds chat-level controls so roleplay users can keep legacy full-summary injection, switch to semantic rolling-summary recall, or combine both when they need broader continuity.
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm checkwas run locally and passed: impeccable context check, lint/typecheck, shared/server/client builds.pnpm db:pushwas attempted because this branch includes database schema/migration changes, but this checkout reportsCommand "db:push" not found.Docs and release impact
Docs updated:
docs/ROLEPLAY.mddocs/CONFIGURATION.mdCHANGELOG.mdNo version/release files were changed.
UI evidence (if applicable)
No screenshots or recordings captured in this pass.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.