mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7267] [MERGED] fix(memory): only show the decision recall the inspected character can access #7653
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#7653
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/7267
Author: @SpicyMarinara
Created: 10/7/2026
Status: ✅ Merged
Merged: 10/7/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/decision-recall-accessible-only📝 Commits (1)
37959d3fix(memory): show each character's own decision recall in the inspector📊 Changes
10 files changed (+110 additions, -7 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/client/src/components/chat/ChatArea.tsx(+8 -2)📝
packages/client/src/components/chat/DecisionDebugPanel.tsx(+6 -1)📝
packages/client/src/components/chat/PeekPromptModal.tsx(+3 -1)📝
packages/client/src/components/chat/chat-area.types.ts(+2 -0)📝
packages/client/src/hooks/use-decision-debug.ts(+4 -2)📝
packages/client/src/localization/locales/en.json(+2 -1)📝
packages/server/src/routes/generate/dry-run-route.ts(+3 -0)📝
scripts/regressions/advanced-memory-post-generation.regression.ts(+59 -0)📝
scripts/regressions/advanced-memory-recall-shortlist.regression.ts(+22 -0)📄 Description
Linked issue
Closes #7264
Why this change
no-recall-candidates. Access filtering (knowledge starts, per-reader visibility, scene audience, live overlap) already runs before both Decision passes from #7187, so no inaccessible summary can reach a call made for him.dry-run-route.tsshowed the newest saveddecisionRecallin the whole chat. Cyno's receipt has none because he had nothing to recall, so the inspector skipped it and showed Tighnari's or Maukie's report, with their scene summaries.What changed
packages/server/src/routes/generate/dry-run-route.ts): in individual group chats, the saved recall report comes only from the previewed character's own replies. Merged and single-character chats keep today's behaviour, so the existing post-generation pin (report equalsstatus().latestReceipt.decisionRecall) still holds.ChatArea.tsx,chat-area.types.ts).PeekPromptModalpasses it toDecisionDebugPanel, anduseDecisionDebugsends it asforCharacterId. Preview inputs and Test decisions now preview the inspected character instead of the first character in the chat. The header live preview, with no message selected, is unchanged.en.jsononly): the memory scope note says that, when characters reply one by one, recall shows only this character's own. A new line explains a missing recall when only a scene check is saved: "No saved recall yet. The Decision model is asked only when there are earlier scenes to recall."advanced-memory-recall-shortlist: the existing chat becomes an individual group with a newcomer whose knowledge starts at the conversation start. Kaito's turn still makes its 2 Jev passes. Cyno's turn makes 0state.memoriesrequests, returnsno-recall-candidates, saves nodecisionRecall, and keeps exactly his 3 live messages. This pins the access invariant through the realprepare.advanced-memory-post-generation: an individual chat with Dottore (whose reply carries a real Jev recall report) and newcomer Cyno (whose later receipt has none).dryRuninspect for Cyno returns no recall, inspect for Dottore returns his own, and neither calls a provider. This fails onorigin/stagingwithCyno is not shown Dottore's recalled scenes.CHANGELOG.mdentry at the top of[Unreleased].Decision prompt and inspector, before and after
The Jev calls are the same before and after; only what the inspector attributes to whom changes.
Jev memory requests, from a throwaway reproduction with a fake
/v1/systemoneprovider (individual chat, 4 summarized scenes before Cyno joined). The shortlist regression now pins the same counts with Kaito and Cyno:state:{"respondingCharacters":["Tighnari"],"memories":4,…}with"Scene 0: Maukie and Tighnari searched for the lost lantern…"; pass 2: 9 messages from the chosen scenes["no-recall-candidates"]["no-recall-candidates"](now pinned)POST /api/generate/dryRunwithdecisionDebug: "inspect"while inspecting Cyno's reply:Before (
decisionDebug.advancedMemory.recall, from the regression onorigin/staging, which is Dottore's report):After:
recallis absent for Cyno. The panel shows only the chat's scene-end check, plus "No saved recall yet. The Decision model is asked only when there are earlier scenes to recall." Inspecting Dottore's reply still returns his own report unchanged.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run commands (results reported here; the boxes above are left for the human reviewer):
pnpm check: exit 0pnpm localization:check: exit 0advanced-memory-*regressions,memory-recall-exclusivity,memory-recall-revectorize,roleplay-user-private-memory: passedpnpm regression:prompt(prompt, prompt-attachments, context-fit): passedadvanced-memory-post-generationfails onorigin/stagingbefore the fix and passes after itcoderabbit review --agent --committed --base-commit 6c9c372bf): completed and reviewed all 10 changed files. It reported 0 findings, with statuscompleted_with_warnings("Review completed with unverified findings") and no finding entries. Two earlier attempts hit the shared rate limit, and this run finished after the PR had already merged.Manual verification notes
{{decide}}statement or lorebook decision.DEBUG_AGENTS=trueor Debug mode) that no[decision] … requestwith"respondingCharacters":["<newcomer>"]carriesmemoriesfor the newcomer's turn.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)No
docs/guide changed.CHANGELOG.mdhas a new[Unreleased]entry.UI evidence (if applicable)
Not captured. The Decision diagnostics panel change is copy and data scoping only.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.