mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7283] [MERGED] fix(memory): skip the Decision excerpt request when no excerpt can fit #7662
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#7662
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/7283
Author: @SpicyMarinara
Created: 10/7/2026
Status: ✅ Merged
Merged: 10/8/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/excerpts-behaviour-followup📝 Commits (4)
8e461f2fix(memory): skip the Decision excerpt request when no excerpt can fit1375764Merge origin/staging into fix/excerpts-behaviour-followup5efc10eMerge origin/staging into fix/excerpts-behaviour-followup1d39d36Merge origin/staging into fix/excerpts-behaviour-followup📊 Changes
5 files changed (+99 additions, -35 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/agents/memory.md(+1 -1)📝
packages/client/src/localization/locales/en.json(+1 -1)📝
packages/server/src/services/advanced-memory.ts(+39 -33)📝
scripts/regressions/advanced-memory-decisions.regression.ts(+57 -0)📄 Description
Linked issue
Closes #7269 (follow-up to #7277 and #7278, found while checking their behaviour)
Why this change
Mari asked whether recall with the Decision model (Jev) works correctly when scene summaries are picked but no message excerpts appear, and guessed it might be lack of room. In that exact case, when the summaries use up the memory space, recall still sent Jev its second request to pick messages from each chosen scene. No excerpt could fit, so the request only added a possible hosted charge and up to 10 seconds before the reply (each recall pass has a 10-second limit).
The receipt reason added in #7277/#7278 for that case also said "the summaries used all the memory space". That is not always true: a better scene's minimum excerpt, or one long message, can use the space too. In a local check with two recalled scenes, the first scene got a one-message excerpt and the second got none, and the receipt blamed the summaries.
What changed
packages/server/src/services/advanced-memory.ts, Decision message pass only:excerptTextmoved earlier so the check can use the exact excerpt cost; its body is unchanged.en.json:excerptNoRoomnow reads "Some recalled scenes have no message excerpt because not enough memory space was left. A higher Summary and recall budget can make room."docs/agents/memory.md: one sentence in Optional Decision model about the skipped request. Translation follow-up: #7282.CHANGELOG.md: new[Unreleased]entry.Behaviour matrix, run on
origin/stagingand on this branch with a fake Decision model (min 1, max 2 unless noted; solo, individual group with a hidden pick, scenes with private summary parts, merged group, min 3/max 5, min 0/max 2, min 0/max 0, constants near the budget, tight and roomy budgets, newcomers): every case recalled the same scenes and excerpts with the same reasons. The only difference is the new no-room case below.excerpt-no-room, 2 Decision requestsValidation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks (for the reviewer to confirm, not a substitute for the boxes above):
pnpm checkandpnpm localization:checkpassed.advanced-memoryregressions,memory-recall(5/5),summary(5/5),roleplay-user-private-memory,native-export-memoryandpnpm regression:promptpassed.advanced-memory-decisions.regression.tsonly gains a new block; no existing check changed. Its "not asked about messages that cannot fit" assertion fails onorigin/stagingand passes here.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:
docs/agents/memory.mdandCHANGELOG.mdupdated; translation follow-up #7282.UI evidence (if applicable)
Receipt wording change only; no layout change.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.