[GH-ISSUE #1124] [Feature]: Combine two Memory Vault places with AND #574

Closed
opened 2026-10-20 17:28:43 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @Promansis on GitHub.

What problem does this solve?

The Memory Vault can only view memories for one place at a time. Selecting a place such as a character shows every memory available in that place, mixed together. When many characters share a chat or group, there is no way to narrow the list to memories that are available in two specific places at once.

Example: selecting "Kira Luna" shows 189 memories. The user cannot isolate the subset that is also available in "Ray Reycoast" without scanning all 189 rows.

Proposed package or change

Long-Term Memory package (client-only change in MemoryVault.tsx).

Add a second optional place selector to the Memory Vault navigator that combines with the first using AND. When both places are selected, the memory list shows only memories available in both.

  • Keep the existing single-place selector and its behavior unchanged when no second place is chosen.
  • Add a second selector (searchable, same chat/branch/character/persona target kinds and grouping as the existing picker).
  • Intersect the two selected places client-side so existing server /notes scope semantics (OR within one request) are not changed.
  • An "A AND B" summary indicates the active combined filter.
  • Clearing the second place restores the normal single-place view.
  • Selection and the existing bulk actions (status, modes, availability, archive, delete) operate on the intersected visible list, so "filter to A AND B, select visible, change availability" stays a short workflow.
  • Clearing the second place resets the checked selection like a place change already does.

No server, shared-domain, permission, or manifest-contract change is expected unless implementation proves one necessary.

Why should this be optional?

This is a downloadable Long-Term Memory Agent package UI improvement. The Engine core does not own the Memory Vault, its scope picker, or its note filtering, so the change belongs in the package rather than the lightweight Engine core.

Alternatives considered

  • Sending both places to the existing /notes scope query. Rejected: the server scope matcher is OR-based within one request, so this would widen results instead of intersecting them.
  • A boolean expression or tag-based query language. Rejected as unnecessary scope for a two-place intersection.
  • Bulk-editing by repeated single-place passes. Rejected: the reported workflow needs the intersection to do it in one pass.

Additional context

  • Reported against Memory Vault (MemoryVault.tsx), package version 1.3.27.
  • Pairs with the bulk availability flow: filter to two places, select all, remove one place.
  • Related closed work: #811 (clarify and group vault scopes), #792 (align vault scope picker with Sources).

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Sep 28, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1124 Originally assigned to: @Promansis on GitHub. ## What problem does this solve? The Memory Vault can only view memories for one place at a time. Selecting a place such as a character shows every memory available in that place, mixed together. When many characters share a chat or group, there is no way to narrow the list to memories that are available in two specific places at once. Example: selecting "Kira Luna" shows 189 memories. The user cannot isolate the subset that is also available in "Ray Reycoast" without scanning all 189 rows. ## Proposed package or change Long-Term Memory package (client-only change in `MemoryVault.tsx`). Add a second optional place selector to the Memory Vault navigator that combines with the first using AND. When both places are selected, the memory list shows only memories available in **both**. - Keep the existing single-place selector and its behavior unchanged when no second place is chosen. - Add a second selector (searchable, same chat/branch/character/persona target kinds and grouping as the existing picker). - Intersect the two selected places client-side so existing server `/notes` scope semantics (OR within one request) are not changed. - An "A AND B" summary indicates the active combined filter. - Clearing the second place restores the normal single-place view. - Selection and the existing bulk actions (status, modes, availability, archive, delete) operate on the intersected visible list, so "filter to A AND B, select visible, change availability" stays a short workflow. - Clearing the second place resets the checked selection like a place change already does. No server, shared-domain, permission, or manifest-contract change is expected unless implementation proves one necessary. ## Why should this be optional? This is a downloadable Long-Term Memory Agent package UI improvement. The Engine core does not own the Memory Vault, its scope picker, or its note filtering, so the change belongs in the package rather than the lightweight Engine core. ## Alternatives considered - Sending both places to the existing `/notes` scope query. Rejected: the server scope matcher is OR-based within one request, so this would widen results instead of intersecting them. - A boolean expression or tag-based query language. Rejected as unnecessary scope for a two-place intersection. - Bulk-editing by repeated single-place passes. Rejected: the reported workflow needs the intersection to do it in one pass. ## Additional context - Reported against Memory Vault (`MemoryVault.tsx`), package version 1.3.27. - Pairs with the bulk availability flow: filter to two places, select all, remove one place. - Related closed work: #811 (clarify and group vault scopes), #792 (align vault scope picker with Sources). ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
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#574
No description provided.