[GH-ISSUE #1099] [Feature]: Long-Term Memory sources - use All/Chats/Branches/Characters/Personas tabs in "Find sources in" #559

Closed
opened 2026-10-20 17:28:35 +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/1099

Originally assigned to: @Promansis on GitHub.

What problem does this solve?

On the Long-Term Memory package's Sources page, the "Find sources in" scope picker (data-ltm-scope-picker="source") already opens a popup dropdown, but inside the popup the results are stacked into flat grouped sections ("Chats", "Branches", "Characters", "Personas") under one shared search box.

Every other scope picker in the package filters by an All / Chats / Branches / Characters / Personas tab system: Memory Vault's picker (data-ltm-vault-scope-tab) and the Sources "Make memories available in" panel (data-ltm-availability-tab). The source picker is the inconsistent one, and with many targets the grouped list is hard to scan.

Proposed package or change

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

Convert the popup body of ScopeTargetPicker in SourcesWorkspace.tsx (data-ltm-scope-picker-popup, around line 274) to the same roving-tab tablist + tabpanel model used by MemoryVault.tsx (data-ltm-vault-scope-tablist / data-ltm-vault-scope-tab) and TargetPicker.tsx (AvailabilityTabRail):

  • All plus one tab per kind (Chats, Branches, Characters, Personas);
  • the existing search input filters the active tab's targets.

Preserve existing behavior: the Current / All pinned options, data-ltm-scope-option target ids, Enter/Arrow highlight navigation and Escape/outside-click close, trigger focus restoration, and the exact sourceScope request payload.

Why should this be optional?

This is an optional package-local UI consistency change: the source scope schema and the preview/import requests 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 grouped sections (status quo) — rejected; it does not match the other two scope pickers.
  • Extract a single shared picker component across Sources and Memory Vault — deferred. The two pickers have different selection semantics (single-select source vs multi-select destination), and the package DESIGN.md extraction rule says not to extract a shared component until a second real consumer shares the same interaction contract.

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 (ScopeTargetPicker, around lines 112-343). References: MemoryVault.tsx (around lines 201-500 and 2962) and TargetPicker.tsx (AvailabilityTabRail, around line 26).
  • Focused proof: extend tests/long-term-memory-browser.regression.ts source-picker checks (around lines 3327-3390) for tab filtering and keyboard navigation; update tests/long-term-memory-feedback-clarity-ui.regression.mjs if new selectors are introduced.
  • Related: the "Make memories available in" panel should collapse under a dropdown; tracked separately in #1098.

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/1099 Originally assigned to: @Promansis on GitHub. ## What problem does this solve? On the Long-Term Memory package's **Sources** page, the "Find sources in" scope picker (`data-ltm-scope-picker="source"`) already opens a popup dropdown, but inside the popup the results are stacked into flat grouped sections ("Chats", "Branches", "Characters", "Personas") under one shared search box. Every other scope picker in the package filters by an `All` / `Chats` / `Branches` / `Characters` / `Personas` tab system: Memory Vault's picker (`data-ltm-vault-scope-tab`) and the Sources "Make memories available in" panel (`data-ltm-availability-tab`). The source picker is the inconsistent one, and with many targets the grouped list is hard to scan. ## Proposed package or change Long-Term Memory (`long-term-memory`), client UI only; Conversation, Roleplay, and Game modes. No server, schema, or route change. Convert the popup body of `ScopeTargetPicker` in `SourcesWorkspace.tsx` (`data-ltm-scope-picker-popup`, around line 274) to the same roving-tab tablist + tabpanel model used by `MemoryVault.tsx` (`data-ltm-vault-scope-tablist` / `data-ltm-vault-scope-tab`) and `TargetPicker.tsx` (`AvailabilityTabRail`): - `All` plus one tab per kind (Chats, Branches, Characters, Personas); - the existing search input filters the active tab's targets. Preserve existing behavior: the `Current` / `All` pinned options, `data-ltm-scope-option` target ids, Enter/Arrow highlight navigation and Escape/outside-click close, trigger focus restoration, and the exact `sourceScope` request payload. ## Why should this be optional? This is an optional package-local UI consistency change: the source scope schema and the preview/import requests 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 grouped sections (status quo) — rejected; it does not match the other two scope pickers. - Extract a single shared picker component across Sources and Memory Vault — deferred. The two pickers have different selection semantics (single-select source vs multi-select destination), and the package `DESIGN.md` extraction rule says not to extract a shared component until a second real consumer shares the same interaction contract. ## 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` (`ScopeTargetPicker`, around lines 112-343). References: `MemoryVault.tsx` (around lines 201-500 and 2962) and `TargetPicker.tsx` (`AvailabilityTabRail`, around line 26). - Focused proof: extend `tests/long-term-memory-browser.regression.ts` source-picker checks (around lines 3327-3390) for tab filtering and keyboard navigation; update `tests/long-term-memory-feedback-clarity-ui.regression.mjs` if new selectors are introduced. - Related: the "Make memories available in" panel should collapse under a dropdown; tracked separately in #1098. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:28:35 +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#559
No description provided.