mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2315] [MERGED] Fix Memory Recall relevance bounds #5533
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#5533
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/2315
Author: @Xelvanis
Created: 6/5/2026
Status: ✅ Merged
Merged: 6/5/2026
Merged by: @Xelvanis
Base:
refactor← Head:fix/memory-recall-relevance-floor-2287📝 Commits (3)
2b10978Fix memory recall relevance bounds3286469Address memory recall review findingsfc2f953Fix memory recall review gaps📊 Changes
7 files changed (+675 additions, -29 deletions)
View changed files
📝
src-tauri/src/commands/storage/chats.rs(+391 -0)📝
src-tauri/src/commands/storage/commands/chats.rs(+18 -3)📝
src-tauri/src/http_dispatch.rs(+102 -3)📝
src/engine/capabilities/storage.ts(+10 -1)📝
src/engine/generation/prompt-assembly.ts(+127 -13)📝
src/shared/api/chat-command-api.ts(+23 -1)📝
src/shared/api/storage-api.ts(+4 -8)📄 Description
Linked issue
Closes #2286
Closes #2287
Why this change
What changed
0.25Memory Recall relevance floor while allowing strong exact-token lexical matches to pass when semantic score is just below the floor.listChatMemoriesoptions on the engine storage port and routed the shared storage adapter through the focused chat command API./api/invokechat_memories_listhandling to supportlimitandorder: "recent".Refactor impact
Primary owner:
Impact areas reviewed:
/api/invokeBoundary notes:
StorageGatewayport and does not import Tauri or shared API adapters.chat_memories_list.chat_memories_listcommand path.Pressure points touched:
src/engine/generation/prompt-assembly.tssrc-tauri/src/http_dispatch.rssrc-tauri/src/lib.rscommand registration changes.Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
pnpm exec vitest run src/engine/generation/prompt-assembly.test.tspnpm typecheckpnpm check:architecturecargo test --manifest-path src-tauri/Cargo.toml list_chat_memories_can_return_recent_limited_chunkscargo check --manifest-path src-tauri/Cargo.toml --workspacepnpm checkblue umbrellastrong lexical match case.Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
Remaining risk
chat.memories, so the Rust command still materializes the chat record internally before applying the bounded command response. Moving chunks to a dedicated collection or sidecar storage path is a larger storage migration and is left for follow-up.Summary by CodeRabbit
New Features
limitparameter and sorting options: retrieve memories in stored insertion order (default) or sorted by recency.Improvements
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.