[GH-ISSUE #729] [Issue]: Long-Term Memory tabs are slow and leak selected scope data #373

Closed
opened 2026-10-20 17:26:58 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Promansis on GitHub (Sep 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/729

Originally assigned to: @Promansis on GitHub.

Summary

Long-Term Memory tabs take a long time to load, and Vault/Sources can show data from a different selected scope after switching tabs or scopes. The regression is present in package versions 1.2.19, 1.2.20, and current 1.2.21.

Affected package

Long-Term Memory (long-term-memory)

Expected behavior

Memory Vault, Review Queue, and Sources should load promptly when selected. Each view should show only memories and sources belonging to the currently selected scope.

Actual behavior

Selecting a Long-Term Memory tab can take a long time to load, especially Memory Vault, Review Queue, and Sources. After selecting a scope, the displayed memories or sources can belong to the previously selected scope.

Steps to reproduce

  1. Open Long-Term Memory in an Engine installation with multiple chats or scopes.
  2. Switch between Memory Vault, Review Queue, and Sources.
  3. Change the selected chat or source scope while switching views.
  4. Observe loading latency and whether displayed memories/sources match the selected scope.

Environment

  • Marinara Engine version: compatible Engine v2/v3
  • Package version: 1.2.19-1.2.21
  • Install type: installer package
  • OS + version: not supplied
  • Browser or app shell: Marinara Engine shell

Logs, screenshots, or video

Not supplied.

Additional context

The confirmed client path includes independent scope-target queries in Memory Vault and Sources, and Sources preview queries can run before the selected scope has resolved.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Sep 6, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/729 Originally assigned to: @Promansis on GitHub. ## Summary Long-Term Memory tabs take a long time to load, and Vault/Sources can show data from a different selected scope after switching tabs or scopes. The regression is present in package versions 1.2.19, 1.2.20, and current 1.2.21. ## Affected package Long-Term Memory (`long-term-memory`) ## Expected behavior Memory Vault, Review Queue, and Sources should load promptly when selected. Each view should show only memories and sources belonging to the currently selected scope. ## Actual behavior Selecting a Long-Term Memory tab can take a long time to load, especially Memory Vault, Review Queue, and Sources. After selecting a scope, the displayed memories or sources can belong to the previously selected scope. ## Steps to reproduce 1. Open Long-Term Memory in an Engine installation with multiple chats or scopes. 2. Switch between Memory Vault, Review Queue, and Sources. 3. Change the selected chat or source scope while switching views. 4. Observe loading latency and whether displayed memories/sources match the selected scope. ## Environment - Marinara Engine version: compatible Engine v2/v3 - Package version: 1.2.19-1.2.21 - Install type: installer package - OS + version: not supplied - Browser or app shell: Marinara Engine shell ## Logs, screenshots, or video Not supplied. ## Additional context The confirmed client path includes independent scope-target queries in Memory Vault and Sources, and Sources preview queries can run before the selected scope has resolved. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@chengyixu commented on GitHub (Sep 6, 2026):

This looks like two related correctness failures, not only a loading-performance issue: every tab result needs to be bound to the scope that issued it, and an older in-flight result must be unable to replace the newer scope's view.

A useful contract is (view, scopeId, requestGeneration) at request creation. On completion, commit state only if that tuple still matches the active selection; abort prior requests on scope change where possible. The empty/loading/error states should retain the same scope label as well, so a reviewer can see exactly what is being queried.

For Sources preview, I would fail closed while scope resolution is pending rather than issue an unscoped fallback query. Add an E2E race test that intentionally delays scope A, switches to B, then releases A and asserts that no A memory/source can render in B.

That distinction is foundational for Living Memory: persistent context must stay attributable to its scope before Proactive Execution can safely propose a next step. I’m exploring a related app-first operator workflow in Klik (pre-launch): https://pre.hiklik.ai/

<!-- gh-comment-id:5557143686 --> @chengyixu commented on GitHub (Sep 6, 2026): This looks like two related correctness failures, not only a loading-performance issue: every tab result needs to be bound to the scope that issued it, and an older in-flight result must be unable to replace the newer scope's view. A useful contract is `(view, scopeId, requestGeneration)` at request creation. On completion, commit state only if that tuple still matches the active selection; abort prior requests on scope change where possible. The empty/loading/error states should retain the same scope label as well, so a reviewer can see exactly what is being queried. For Sources preview, I would fail closed while scope resolution is pending rather than issue an unscoped fallback query. Add an E2E race test that intentionally delays scope A, switches to B, then releases A and asserts that no A memory/source can render in B. That distinction is foundational for Living Memory: persistent context must stay attributable to its scope before Proactive Execution can safely propose a next step. I’m exploring a related app-first operator workflow in Klik (pre-launch): https://pre.hiklik.ai/
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-Agents#373
No description provided.