[PR #642] [MERGED] feat(long-term-memory): add bulk destination picker #1065

Closed
opened 2026-10-21 05:01:52 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/642
Author: @Promansis
Created: 8/28/2026
Status: ✅ Merged
Merged: 8/28/2026
Merged by: @Promansis

Base: staging ← Head: feature(long-term-memory)/bulk-destination-picker


📝 Commits (10+)

  • 0418427 fix(long-term-memory): keep implicit personas out of writes
  • 25ba1de feat(long-term-memory): add bulk destination picker
  • b9d5e60 fix(long-term-memory): tighten picker scope handling
  • f131568 fix(long-term-memory): show selected destination metadata
  • 75728dc fix(long-term-memory): align branch scope pickers
  • 77a63c3 fix(long-term-memory): constrain destination scopes
  • 5db5bb8 fix(long-term-memory): reject oversized destinations
  • f91a843 test(long-term-memory): cover destination transition limits
  • 25662d1 fix(long-term-memory): guard primary scope changes
  • 0783c3a fix(long-term-memory): harden scope picker identities

📊 Changes

23 files changed (+1339 additions, -220 deletions)

View changed files

➕ artifacts/long-term-memory-1.2.17.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v3/catalog.json (+8 -8)
📝 packages/long-term-memory/client.js (+25 -24)
📝 packages/long-term-memory/manifest.json (+5 -5)
📝 packages/long-term-memory/server.mjs (+36 -36)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx (+23 -15)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx (+653 -77)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+15 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/scope-targets.ts (+13 -6)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/chat-scope.ts (+4 -0)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts (+10 -3)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/note-transfer.ts (+2 -2)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.ts (+7 -2)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/scoped-targets.ts (+5 -5)
📝 scripts/build-feature-packages.mjs (+4 -2)
📝 tests/long-term-memory-extraction-graph.regression.ts (+17 -1)
📝 tests/long-term-memory-feedback-clarity-ui.regression.mjs (+6 -0)
📝 tests/long-term-memory-lifecycle.regression.ts (+283 -15)

...and 3 more files

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #639
Closes #640

Why this change

Long-Term Memory's native source and destination selectors do not scale to large collections of chats, branches, characters, or personas, and current-chat imports could inherit implicit persona scope. This adds a practical searchable workflow while keeping destination availability explicit.

What changed

  • Added searchable source and primary-destination pickers for the long-term-memory package.
  • Added an optional responsive bulk destination picker with category tabs, metadata search, selected-location chips, staged Cancel/Done behavior, keyboard navigation, and mobile touch targets.
  • Merged selected destination links into one memory scope without duplicating memories.
  • Prevented implicit chat persona links from entering persisted source-note and extraction write scopes.
  • Added route and Engine-backed lifecycle regression coverage.
  • Rebuilt the 1.2.17 client/server payloads, manifest, artifact, and catalog entries.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: unchanged; built against Engine 2.4.1, compatible with >=2.4.1 <4.0.0
  • New or changed permissions/entrypoints: none; existing permissions and entrypoints are unchanged
  • Restart, storage, update, or uninstall impact: restartRequired remains true; no storage schema change; install, offline restart, backup, uninstall, reinstall, and durable-byte preservation are covered by the lifecycle fixture

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • npm run check passed with 0 errors and 68 existing warnings.
  • node scripts/test-catalog-lanes.mjs passed.
  • node scripts/validate-package-locales.mjs passed.
  • node scripts/validate-catalog.mjs passed.
  • Long-Term Memory route regression passed.
  • Engine-backed Long-Term Memory lifecycle regression passed, including the new scope, metadata, keyboard-focus, selected-chip, and mobile touch-target assertions.
  • No screenshots were captured; the lifecycle fixture used compiled Engine host CSS and asserted desktop/mobile geometry.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

No screenshots or recordings captured.

Summary by CodeRabbit

  • New Features
    • Added searchable, keyboard-accessible source and destination pickers.
    • Added bulk destination selection with branch, comment, and metadata support.
    • Added clearer labels, counts, filtering, and destination capacity feedback.
  • Bug Fixes
    • Improved branch visibility and filtering for grouped and standalone chats.
    • Ensured imports, transfers, and source notes use the correct chat and persona scope.
    • Added validation for destinations exceeding the supported limit.
  • Chores
    • Updated the Long-Term Memory package to version 1.2.17.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/642 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 8/28/2026 **Status:** ✅ Merged **Merged:** 8/28/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature(long-term-memory)/bulk-destination-picker` --- ### 📝 Commits (10+) - [`0418427`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0418427b09e03f37ae844c8356808599b74434eb) fix(long-term-memory): keep implicit personas out of writes - [`25ba1de`](https://github.com/Pasta-Devs/Marinara-Agents/commit/25ba1deeb8f23bcf59b661c0a34f4c4089232a59) feat(long-term-memory): add bulk destination picker - [`b9d5e60`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b9d5e6095b1a545d555d4bb582cf3674c552c182) fix(long-term-memory): tighten picker scope handling - [`f131568`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f131568e8f1fbc747f484b6acb9f17ca19feec47) fix(long-term-memory): show selected destination metadata - [`75728dc`](https://github.com/Pasta-Devs/Marinara-Agents/commit/75728dc8568e32e08a3c8520fe2925a211400759) fix(long-term-memory): align branch scope pickers - [`77a63c3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/77a63c3b4409f6a2779bb52f358684f40180080b) fix(long-term-memory): constrain destination scopes - [`5db5bb8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5db5bb8381d5d0b83cb32d70fe209425d87e1558) fix(long-term-memory): reject oversized destinations - [`f91a843`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f91a843ade983df8e5f24e49d48cf80247b12dc2) test(long-term-memory): cover destination transition limits - [`25662d1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/25662d1341a1b70efae2246c9b70189f385251d2) fix(long-term-memory): guard primary scope changes - [`0783c3a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0783c3adeebd930504a15c3d0313fe389c1c132a) fix(long-term-memory): harden scope picker identities ### 📊 Changes **23 files changed** (+1339 additions, -220 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.2.17.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `packages/long-term-memory/client.js` (+25 -24) 📝 `packages/long-term-memory/manifest.json` (+5 -5) 📝 `packages/long-term-memory/server.mjs` (+36 -36) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx` (+23 -15) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx` (+653 -77) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+15 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/scope-targets.ts` (+13 -6) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/chat-scope.ts` (+4 -0) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts` (+10 -3) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/note-transfer.ts` (+2 -2) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.ts` (+7 -2) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/scoped-targets.ts` (+5 -5) 📝 `scripts/build-feature-packages.mjs` (+4 -2) 📝 `tests/long-term-memory-extraction-graph.regression.ts` (+17 -1) 📝 `tests/long-term-memory-feedback-clarity-ui.regression.mjs` (+6 -0) 📝 `tests/long-term-memory-lifecycle.regression.ts` (+283 -15) _...and 3 more files_ </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #639 Closes #640 ## Why this change Long-Term Memory's native source and destination selectors do not scale to large collections of chats, branches, characters, or personas, and current-chat imports could inherit implicit persona scope. This adds a practical searchable workflow while keeping destination availability explicit. ## What changed - Added searchable source and primary-destination pickers for the `long-term-memory` package. - Added an optional responsive bulk destination picker with category tabs, metadata search, selected-location chips, staged Cancel/Done behavior, keyboard navigation, and mobile touch targets. - Merged selected destination links into one memory scope without duplicating memories. - Prevented implicit chat persona links from entering persisted source-note and extraction write scopes. - Added route and Engine-backed lifecycle regression coverage. - Rebuilt the `1.2.17` client/server payloads, manifest, artifact, and catalog entries. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: unchanged; built against Engine `2.4.1`, compatible with `>=2.4.1 <4.0.0` - New or changed permissions/entrypoints: none; existing permissions and entrypoints are unchanged - Restart, storage, update, or uninstall impact: `restartRequired` remains true; no storage schema change; install, offline restart, backup, uninstall, reinstall, and durable-byte preservation are covered by the lifecycle fixture ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [x] Installed or updated the affected package through Marinara Engine - [x] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - `npm run check` passed with 0 errors and 68 existing warnings. - `node scripts/test-catalog-lanes.mjs` passed. - `node scripts/validate-package-locales.mjs` passed. - `node scripts/validate-catalog.mjs` passed. - Long-Term Memory route regression passed. - Engine-backed Long-Term Memory lifecycle regression passed, including the new scope, metadata, keyboard-focus, selected-chip, and mobile touch-target assertions. - No screenshots were captured; the lifecycle fixture used compiled Engine host CSS and asserted desktop/mobile geometry. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) No screenshots or recordings captured. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added searchable, keyboard-accessible source and destination pickers. * Added bulk destination selection with branch, comment, and metadata support. * Added clearer labels, counts, filtering, and destination capacity feedback. * **Bug Fixes** * Improved branch visibility and filtering for grouped and standalone chats. * Ensured imports, transfers, and source notes use the correct chat and persona scope. * Added validation for destinations exceeding the supported limit. * **Chores** * Updated the Long-Term Memory package to version 1.2.17. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:01:52 +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#1065
No description provided.