mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#7446
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/7050
Author: @Promansis
Created: 10/4/2026
Status: ✅ Merged
Merged: 10/5/2026
Merged by: @Promansis
Base:
staging← Head:fix(ltm)/7044-recall-history-only📝 Commits (7)
c44e1e0fix(ltm): limit recall input to conversation history (#7044)f384002Merge upstream/staging into fix(ltm)/7044-recall-history-onlybe36665style(test): format prompt regression fixture (#7044)c02c4b5test(ltm): streamline recall handoff regression coverage (#7044)05290fcMerge remote-tracking branch 'upstream/staging' into fix(ltm)/7044-recall-history-onlyfe681c7test(ltm): remove LTM-specific route regression from Engine (#7044)b006025Merge remote-tracking branch 'upstream/staging' into fix(ltm)/7044-recall-history-only📊 Changes
5 files changed (+175 additions, -19 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/server/src/routes/generate.routes.ts(+6 -1)📝
packages/server/src/routes/generate/conversation-history-runtime.ts(+28 -11)📝
packages/server/src/services/generation/prompt-message-scope.ts(+13 -0)📝
scripts/regressions/prompt.regression.ts(+126 -7)📄 Description
Linked issue
Closes #7044
Why this change
Marinara Engine sent the fully assembled prompt — preset sections, agent
injections and other non-history text — to Long-Term Memory as recall input.
The package takes the last configured number of supplied messages as its query
window, so tail injections could enter the query and displace recent
conversation turns, adding or displacing recalled memories unrelated to the
actual conversation.
What changed
selectHistoryMessagesForRecall, which filters bycontextKind === "history"instead of by role, so legitimate narrator/system history is kept while prompt and injection text is excluded.Other agents' inputs, query-window settings and the final provider prompt are
unchanged.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
at the route level with a stubbed capability runtime and a fake provider. The
activated Agents package query was not captured locally.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.