[GH-ISSUE #8793] bound Advanced Memory's parsed-extras cache; keep manual hides when a summary that hid nothing is deleted #8502

Closed
opened 2026-11-07 16:43:22 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8793

Originally assigned to: @SpicyMarinara on GitHub.

Found by the 2026-11-03 release-prep bug sweep of Marinara Engine. Each finding was confirmed by two independent verifiers.

Two problems found in release-prep auditing, both re-checked on staging aed5e3578d.

(1) The two Advanced Memory route services live for the whole server process. Each kept a parsed copy of every message extra for every Roleplay/Game chat it ever read, with no limit. Opening Chat Settings on a Roleplay or Game chat is enough to fill it, even with Advanced Memory off. A deleted chat stayed cached until restart. On SteamOS and Termux the cache also kept chats that the MARINARA_MAX_RESIDENT_CHATS cap had already evicted.

(2) A summary saved with "Hide summarised messages" off records which messages it covers, but no list of messages it hid. Deleting it fell back to the covered list and showed every covered message to the model again. That includes messages the user later hid by hand with the eye toggle or /hide. Branching inside such a summary did the same to the copied messages. Turning the hide setting off already showed only what the summary hid, so delete and branch were the odd ones out.

No linked issue exists. One should be opened before the PR is submitted.

🤖 Generated with Claude Code

Originally created by @SpicyMarinara on GitHub (Nov 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8793 Originally assigned to: @SpicyMarinara on GitHub. Found by the 2026-11-03 release-prep bug sweep of Marinara Engine. Each finding was confirmed by two independent verifiers. Two problems found in release-prep auditing, both re-checked on staging aed5e3578d. (1) The two Advanced Memory route services live for the whole server process. Each kept a parsed copy of every message extra for every Roleplay/Game chat it ever read, with no limit. Opening Chat Settings on a Roleplay or Game chat is enough to fill it, even with Advanced Memory off. A deleted chat stayed cached until restart. On SteamOS and Termux the cache also kept chats that the MARINARA_MAX_RESIDENT_CHATS cap had already evicted. (2) A summary saved with "Hide summarised messages" off records which messages it covers, but no list of messages it hid. Deleting it fell back to the covered list and showed every covered message to the model again. That includes messages the user later hid by hand with the eye toggle or /hide. Branching inside such a summary did the same to the copied messages. Turning the hide setting off already showed only what the summary hid, so delete and branch were the odd ones out. No linked issue exists. One should be opened before the PR is submitted. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bsakaguchi 2026-11-07 16:43:22 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8502
No description provided.