[GH-ISSUE #1098] [Feature]: Long-Term Memory sources - collapse "Make memories available in" scope picker under a dropdown #560

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

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

Originally assigned to: @Promansis on GitHub.

What problem does this solve?

On the Long-Term Memory package's Sources page, the "Make memories available in" destination scope control is permanently expanded. Its "Search locations" input, five-tab rail, and full result list occupy the inspector at all times.

The equivalent Memory Vault scope picker keeps the same search/tab/list content collapsed inside a <details> summary until the user opens it. The Sources destination panel is the inconsistent one: it pushes the import workflow down and adds persistent visual noise to the workbench.

Proposed package or change

Long-Term Memory (long-term-memory), client UI only; Conversation, Roleplay, and Game modes. No server, schema, or route change.

Wrap the destination scope picker in SourcesWorkspace.tsx (DestinationScopePanel, #ltm-destination-scope-control) in the same disclosure pattern Memory Vault already uses (MemoryVault.tsx, <details data-ltm-memory-scope>):

  • a summary that shows the current destination summary when closed;
  • the "Search locations" input (#ltm-destination-scope-control > label), the All / Chats / Branches / Characters / Personas tab rail (#ltm-destination-scope-control > div.grid.shrink-0.grid-cols-2.gap-1.sm:grid-cols-5), and #ltm-bulk-destination-list inside the collapsed content.

Preserve existing behavior: multi-select checkboxes, the per-kind 100-ID capacity limit and blocked-target messaging, selected-location pills, Current / All category actions, the chat-mode availability checkboxes, roving tab focus (Arrow/Home/End), and the exact destinationScope request payload.

Why should this be optional?

This is an optional package-local UI improvement: the server scope schema, import routes, and recall behavior are unchanged. It belongs in the downloadable Long-Term Memory package rather than the lightweight Engine core because the Sources page is package-owned UI.

Alternatives considered

  • Keep the panel always expanded (status quo) — rejected; it does not match the Memory Vault picker.
  • Collapse only the result list while leaving search and tabs visible — rejected; it does not reclaim the requested space.

Additional context

  • Investigation baseline: upstream staging at aa0e2b86a57b18480820caa4e45ee5b27c9a1fe8.
  • Direct owner: packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx (DestinationScopePanel, around line 391). Reference: MemoryVault.tsx (ScopeTargetPicker inside <details data-ltm-memory-scope>, around line 2962).
  • Focused proof: extend tests/long-term-memory-browser.regression.ts (existing destination-panel checks around lines 3392-3600) and update static expectations in tests/long-term-memory-feedback-clarity-ui.regression.mjs if selectors change.
  • Related: the "Find sources in" picker uses grouped sections instead of tabs; tracked separately in #1099.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Sep 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1098 Originally assigned to: @Promansis on GitHub. ## What problem does this solve? On the Long-Term Memory package's **Sources** page, the "Make memories available in" destination scope control is permanently expanded. Its "Search locations" input, five-tab rail, and full result list occupy the inspector at all times. The equivalent Memory Vault scope picker keeps the same search/tab/list content collapsed inside a `<details>` summary until the user opens it. The Sources destination panel is the inconsistent one: it pushes the import workflow down and adds persistent visual noise to the workbench. ## Proposed package or change Long-Term Memory (`long-term-memory`), client UI only; Conversation, Roleplay, and Game modes. No server, schema, or route change. Wrap the destination scope picker in `SourcesWorkspace.tsx` (`DestinationScopePanel`, `#ltm-destination-scope-control`) in the same disclosure pattern Memory Vault already uses (`MemoryVault.tsx`, `<details data-ltm-memory-scope>`): - a summary that shows the current destination summary when closed; - the "Search locations" input (`#ltm-destination-scope-control > label`), the `All` / `Chats` / `Branches` / `Characters` / `Personas` tab rail (`#ltm-destination-scope-control > div.grid.shrink-0.grid-cols-2.gap-1.sm:grid-cols-5`), and `#ltm-bulk-destination-list` inside the collapsed content. Preserve existing behavior: multi-select checkboxes, the per-kind 100-ID capacity limit and blocked-target messaging, selected-location pills, `Current` / `All` category actions, the chat-mode availability checkboxes, roving tab focus (Arrow/Home/End), and the exact `destinationScope` request payload. ## Why should this be optional? This is an optional package-local UI improvement: the server scope schema, import routes, and recall behavior are unchanged. It belongs in the downloadable Long-Term Memory package rather than the lightweight Engine core because the Sources page is package-owned UI. ## Alternatives considered - Keep the panel always expanded (status quo) — rejected; it does not match the Memory Vault picker. - Collapse only the result list while leaving search and tabs visible — rejected; it does not reclaim the requested space. ## Additional context - Investigation baseline: upstream `staging` at `aa0e2b86a57b18480820caa4e45ee5b27c9a1fe8`. - Direct owner: `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx` (`DestinationScopePanel`, around line 391). Reference: `MemoryVault.tsx` (`ScopeTargetPicker` inside `<details data-ltm-memory-scope>`, around line 2962). - Focused proof: extend `tests/long-term-memory-browser.regression.ts` (existing destination-panel checks around lines 3392-3600) and update static expectations in `tests/long-term-memory-feedback-clarity-ui.regression.mjs` if selectors change. - Related: the "Find sources in" picker uses grouped sections instead of tabs; tracked separately in #1099. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:28:36 +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-Agents#560
No description provided.