[GH-ISSUE #700] [Feature]: Unified Long-Term Memory destination picker #360

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

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

Originally assigned to: @Promansis on GitHub.

What problem does this solve?

Long-Term Memory Sources currently splits destination selection into a primary ScopeTargetPicker (in #ltm-destination-scope-control) plus a separate in-line "Add more locations" editor (BulkDestinationPicker). The primary vs. additional distinction is artificial, the additional editor hides behind a button and pane switch, and long target lists expand the page because the list has no height constraint. Users cannot easily see and manage Chats, Branches, Characters, and Personas in one place.

Proposed package or change

Replace the split destination UI with one persistent, multi-select destination panel in the Long-Term Memory package's Sources workspace:

  • Unified selectedDestinationTargetIds: string[] selection model, removing the user-facing primary/additional split (the first target may still back the result label internally).
  • Category filter rail with All, Chats, Branches, Characters, Personas (reusing the existing BulkDestinationPicker category-tab pattern).
  • Pinned action entries: Current (resolves to the active chat/character/branch) and All chats / All branches / All characters as view/filter shortcuts — never a global/undefined destination. All personas only if explicitly requested.
  • Personas available in the rail, grouped All view, search, selected pills, and scope merging via destinationScope.personaIds.
  • Bounded scroll layout: the panel is a flex column and #ltm-bulk-destination-list is the scroll container (min-h-0 flex-1 overflow-y-auto); desktop 42rem ceiling, mobile min(42rem, calc(100dvh - 8rem)).
  • Remove BulkDestinationPicker, the destination ScopeTargetPicker usage, the Add more locations button, and the locationEditorOpen pane-switch plumbing.

Preserve existing domain rules: mergedDestinationScope source of truth, the 100-ID-per-kind capacity limit, leave import disabled with no selected concrete target, and never send a global/undefined destination to the import API.

Why should this be optional?

This is an improvement to an existing downloadable Agent capability package (Long-Term Memory). It belongs in the catalog package rather than the lightweight Engine core because it changes package-local UI and wiring.

Alternatives considered

  • Keep the primary + additional split but restyle it: rejected, does not remove the user-facing distinction or the hidden editor.
  • Auto-select every target for a category All action: rejected as ambiguous and able to exceed the 100-ID limit.

Additional context

  • Primary source: packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx
  • Tests: tests/long-term-memory-lifecycle.regression.ts
  • Localization: package locales/en.json (reuse existing keys where possible).

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 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/700 Originally assigned to: @Promansis on GitHub. ## What problem does this solve? Long-Term Memory Sources currently splits destination selection into a primary `ScopeTargetPicker` (in `#ltm-destination-scope-control`) plus a separate in-line "Add more locations" editor (`BulkDestinationPicker`). The primary vs. additional distinction is artificial, the additional editor hides behind a button and pane switch, and long target lists expand the page because the list has no height constraint. Users cannot easily see and manage Chats, Branches, Characters, and Personas in one place. ## Proposed package or change Replace the split destination UI with one persistent, multi-select destination panel in the Long-Term Memory package's Sources workspace: - Unified `selectedDestinationTargetIds: string[]` selection model, removing the user-facing primary/additional split (the first target may still back the result label internally). - Category filter rail with `All`, `Chats`, `Branches`, `Characters`, `Personas` (reusing the existing `BulkDestinationPicker` category-tab pattern). - Pinned action entries: `Current` (resolves to the active chat/character/branch) and `All chats` / `All branches` / `All characters` as view/filter shortcuts — never a global/undefined destination. `All personas` only if explicitly requested. - Personas available in the rail, grouped `All` view, search, selected pills, and scope merging via `destinationScope.personaIds`. - Bounded scroll layout: the panel is a flex column and `#ltm-bulk-destination-list` is the scroll container (`min-h-0 flex-1 overflow-y-auto`); desktop `42rem` ceiling, mobile `min(42rem, calc(100dvh - 8rem))`. - Remove `BulkDestinationPicker`, the destination `ScopeTargetPicker` usage, the `Add more locations` button, and the `locationEditorOpen` pane-switch plumbing. Preserve existing domain rules: `mergedDestinationScope` source of truth, the 100-ID-per-kind capacity limit, leave import disabled with no selected concrete target, and never send a global/undefined destination to the import API. ## Why should this be optional? This is an improvement to an existing downloadable Agent capability package (Long-Term Memory). It belongs in the catalog package rather than the lightweight Engine core because it changes package-local UI and wiring. ## Alternatives considered - Keep the primary + additional split but restyle it: rejected, does not remove the user-facing distinction or the hidden editor. - Auto-select every target for a category `All` action: rejected as ambiguous and able to exceed the 100-ID limit. ## Additional context - Primary source: `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx` - Tests: `tests/long-term-memory-lifecycle.regression.ts` - Localization: package `locales/en.json` (reuse existing keys where possible). ## 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.
bsakaguchi 2026-10-20 17:26:51 +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#360
No description provided.