mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7273] [MERGED] fix(memory): show the right character's recall for {{prompt}} and inactive characters #7655
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#7655
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/7273
Author: @SpicyMarinara
Created: 10/7/2026
Status: ✅ Merged
Merged: 10/7/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/recall-access-privacy-code-followup📝 Commits (2)
0fd05c8fix(memory): follow the shown prompt's character in decision recall diagnostics7b903ebMerge remote-tracking branch 'origin/staging' into fix/recall-access-privacy-code-followup📊 Changes
7 files changed (+27 additions, -10 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/client/src/components/chat/ChatArea.tsx(+9 -8)📝
packages/client/src/hooks/use-chats.ts(+2 -0)📝
packages/server/src/routes/chats.routes.ts(+2 -0)📝
packages/server/src/routes/generate/dry-run-route.ts(+7 -2)📝
scripts/regressions/advanced-memory-generation.regression.ts(+2 -0)📝
scripts/regressions/advanced-memory-post-generation.regression.ts(+4 -0)📄 Description
Linked issue
Closes #7264
Follow-up to #7267, which merged before this verification finished.
Why this change
#7267 made Peek Prompt → Decision diagnostics show the inspected character's own Advanced Memory recall in Roleplay group chats where characters reply one by one, so a newcomer like Cyno no longer appears to have the Decision model judge scene summaries he cannot access. A verification of that PR found two more ways to get the old wrong report:
{{prompt}}in the input box opens the latest saved prompt with no reply selected, for example Cyno's. The panel did not know whose prompt that was, so the dry run fell back to the first character in the chat and showed that character's recall.forCharacterIdand previews the first active character, and #7267 took the recall owner from that fallback, so it again showed another character's recall.In both cases the panel suggested that the Decision model judged memories for a character who never had them. Recall itself was correct; only the inspector was wrong.
What changed
chats.routes.ts(1 line): the cached Peek Prompt response now says whose saved prompt it is (characterIdof the reply it came from). The response is otherwise unchanged.dry-run-route.ts: in one-by-one group chats, the saved-recall section uses the requestedforCharacterIdeven when that character is inactive and the prompt preview falls back to an active one. Merged and single-character chats are unchanged. An unknown id can only narrow the report to nothing; it never widens it.ChatArea.tsxtakes the character from the Peek Prompt response instead of looking up the clicked message, so{{prompt}}and the message button both pass the character whose prompt is shown.use-chats.tsadds the field to the response type.advanced-memory-generation: Peek Prompt on Maukie's generated reply (the second character in the chat) returnscharacterId= Maukie. Fails on currentstaging.advanced-memory-post-generation: with Cyno inactive, inspecting Cyno still shows no recall instead of Dottore's. Fails on currentstaging("an inactive Cyno is not shown Dottore's recall either").CHANGELOG.md: entry at the top of[Unreleased].Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks (not a substitute for the boxes above):
pnpm checkandpnpm localization:check: exit 0, before and after mergingorigin/staging.advanced-memory-*regressions,memory-recall-exclusivity,memory-recall-revectorize,roleplay-user-private-memory,roleplay-regeneration-context,character-id-macro-modes,decision-conditionals,decision-reachable-statements, andpnpm regression:prompt(prompt, prompt-attachments, context-fit).stagingat3d2cdea77and pass here.Manual verification notes
{{prompt}}in the input and send it. Open Decision diagnostics → Advanced Memory activity and check that it shows "No saved recall yet…" rather than another character's recalled scenes.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, and no user-facing copy changed.UI evidence (if applicable)
No layout change; the panel shows existing copy for the right character.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.