mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #731] [Issue]: Long-Term Memory loading blocks on repeated local-character discovery #374
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#374
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?
Originally created by @Promansis on GitHub (Sep 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/731
Originally assigned to: @Promansis on GitHub.
Summary
Long-Term Memory memories and sources loading became slow in package 1.2.20 and remains slow in 1.2.21 and 1.2.22. The
/scope-targetsendpoint rebuilds local-character catalogs per eligible Roleplay chat and repeatedly scans overlapping source text.Affected package
long-term-memoryExpected behavior
Initial Memories and Sources loading should remain responsive at the 1.2.19 baseline, including installations with many chats and overlapping scopes. Optional local-character discovery must not block ordinary loading.
Actual behavior
With 30 chats sharing a group and 100 source notes, the committed handlers measured about 1 ms warm in 1.2.19 and about 3.4 seconds in 1.2.20-1.2.22, even with storage and host I/O replaced by in-memory fixtures. A zero-delay timer was blocked for about 3.5 seconds. The same 100 sources were parsed 3,000 times across 30 catalogs.
Steps to reproduce
/api/long-term-memory/scope-targets?chatId=<id>&includeAllChats=trueagainst package 1.2.19 and current releases.Environment
Logs, screenshots, or video
No private data included. The investigation measured release handlers with schema-valid synthetic fixtures and confirmed the regression in committed versions.
Additional context
1.2.21 reduced repeated vault reads but did not remove repeated catalog computation. 1.2.22 did not change the generated server bundle relative to 1.2.21. The fix should preserve local-character family isolation and ambiguity handling while making ordinary loading independent of optional source-body discovery.
Template check