[PR #123] [MERGED] fix(ltm): complete memory workflows and extraction routing #820

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/123
Author: @Promansis
Created: 7/29/2026
Status: ✅ Merged
Merged: 7/30/2026
Merged by: @Promansis

Base: staging ← Head: feature/ltm-memory-workflow-fixes


📝 Commits (7)

  • 36dc48c fix(ltm): complete memory workflow updates
  • b4c1f92 release(ltm): bump package to 1.0.1
  • afd517b fix(ltm): address review findings
  • 576c6f6 merge: resolve staging catalog conflicts
  • d824886 build(ltm): refresh catalog after staging sync
  • a93edc2 fix(ltm): address follow-up review findings
  • f30ba51 fix(ltm): address final review findings

📊 Changes

21 files changed (+1837 additions, -591 deletions)

View changed files

➖ artifacts/long-term-memory-1.0.0.zip (+0 -0)
➕ artifacts/long-term-memory-1.0.1.zip (+0 -0)
📝 catalog/catalog.json (+9 -9)
📝 catalog/v2/catalog.json (+9 -9)
📝 catalog/v3/catalog.json (+1 -1)
📝 packages/long-term-memory/client.js (+31 -18)
📝 packages/long-term-memory/manifest.json (+5 -5)
📝 packages/long-term-memory/server.mjs (+35 -35)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryNavigation.tsx (+3 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemorySettings.tsx (+81 -11)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx (+315 -201)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx (+510 -116)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/api.ts (+24 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+34 -7)
➕ packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/scope-targets.ts (+70 -0)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/extraction-config.ts (+1 -0)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts (+49 -45)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.ts (+202 -58)
📝 packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema.ts (+116 -28)
📝 scripts/build-feature-packages.mjs (+1 -1)

...and 1 more files

📄 Description

Linked issue

Closes #122

Why this change

  • Long-Term Memory source import, memory browsing, settings, and extraction flows had several user-facing workflow inconsistencies. This updates the package to provide predictable multi-branch imports, readable controls, responsive layouts, and source-aware re-extraction.

What changed

  • Updated long-term-memory source workflows: persistent bulk selection, labeled Character/Chat/Branch selectors, metadata action labeling, responsive source selectors, and full-width mobile navigation.
  • Preserved originating chat connections during note re-extraction and handled character capability data returned as JSON strings.
  • Added focused route regression coverage and corrected the settings toggle layout.
  • Bumped the package from 1.0.0 to 1.0.1 in the feature builder and regenerated manifest.json, client/server payloads, long-term-memory-1.0.1.zip, and all catalog lanes.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: unchanged, >=2.3.5 <2.4.0; built against Engine 2.3.5
  • New or changed permissions/entrypoints: none; existing permissions and entrypoints remain unchanged
  • Restart, storage, update, or uninstall impact: package version bump requires the normal package update/restart path; storage schema and uninstall behavior were not changed

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

Additional validation completed:

  • node scripts/test-catalog-lanes.mjs passes locally
  • Focused tests/long-term-memory-routes.regression.ts passes under the Engine tsx runtime
  • Prettier check passes for the changed UI source
  • Chromium Playwright desktop and mobile layout checks pass; the toggle and adjacent Recall style select both measure 44px with no overflow

Manual verification notes

  • Route regression coverage asserts JSON-string character data produces readable labels and empty-body re-extraction preserves chatConnectionId.
  • Chromium checks exercised the Long-Term Memory settings view at desktop and mobile widths and asserted matching control heights.
  • Full package installation/update, supported-mode restart, offline restart, and uninstall cleanup were not manually exercised in this checkout.

Documentation impact

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

UI evidence (if applicable)

  • Desktop and mobile Chromium screenshots were reviewed locally during validation; no repository screenshots were added.

Summary by CodeRabbit

  • New Features
    • Added extraction connection selection in Memory Settings (including “automatic”).
    • Reworked Memory Vault scope selection (character → chat/conversation → branch).
    • Enhanced Sources Workspace with destination-aware transfers, expanded import scope controls, and keep vs retract source deletion.
  • Bug Fixes
    • Notes listing now returns x-ltm-next-offset for pagination.
    • Improved extraction connection routing and scope-target visibility/labeling (including chat inclusion rules).
  • Release
    • Updated Long-Term Memory to version 1.0.1.

🔄 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/123 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 7/29/2026 **Status:** ✅ Merged **Merged:** 7/30/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature/ltm-memory-workflow-fixes` --- ### 📝 Commits (7) - [`36dc48c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/36dc48c61142c6696704daab52a46a3b8fd4a44b) fix(ltm): complete memory workflow updates - [`b4c1f92`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b4c1f92181bc573ecb96be8707637fd12de9d457) release(ltm): bump package to 1.0.1 - [`afd517b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/afd517bfd9d6b6302c6ab2392c2115bc1187f1a1) fix(ltm): address review findings - [`576c6f6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/576c6f62598a3afe4d80bff4a98e385d8820d3d0) merge: resolve staging catalog conflicts - [`d824886`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d824886ac5c57fbbabe82bf77d29eb333b2c0189) build(ltm): refresh catalog after staging sync - [`a93edc2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a93edc2862e77e680ee4ef7e5fa1bb4ad0cb3b47) fix(ltm): address follow-up review findings - [`f30ba51`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f30ba51328d5ba86b3647bd38a8326c4b219595c) fix(ltm): address final review findings ### 📊 Changes **21 files changed** (+1837 additions, -591 deletions) <details> <summary>View changed files</summary> ➖ `artifacts/long-term-memory-1.0.0.zip` (+0 -0) ➕ `artifacts/long-term-memory-1.0.1.zip` (+0 -0) 📝 `catalog/catalog.json` (+9 -9) 📝 `catalog/v2/catalog.json` (+9 -9) 📝 `catalog/v3/catalog.json` (+1 -1) 📝 `packages/long-term-memory/client.js` (+31 -18) 📝 `packages/long-term-memory/manifest.json` (+5 -5) 📝 `packages/long-term-memory/server.mjs` (+35 -35) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryNavigation.tsx` (+3 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemorySettings.tsx` (+81 -11) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx` (+315 -201) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx` (+510 -116) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/api.ts` (+24 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+34 -7) ➕ `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/scope-targets.ts` (+70 -0) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/extraction-config.ts` (+1 -0) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts` (+49 -45) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.ts` (+202 -58) 📝 `packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema.ts` (+116 -28) 📝 `scripts/build-feature-packages.mjs` (+1 -1) _...and 1 more files_ </details> ### 📄 Description <!-- Target branch: `staging`. --> ## Linked issue Closes #122 ## Why this change - Long-Term Memory source import, memory browsing, settings, and extraction flows had several user-facing workflow inconsistencies. This updates the package to provide predictable multi-branch imports, readable controls, responsive layouts, and source-aware re-extraction. ## What changed - Updated `long-term-memory` source workflows: persistent bulk selection, labeled Character/Chat/Branch selectors, metadata action labeling, responsive source selectors, and full-width mobile navigation. - Preserved originating chat connections during note re-extraction and handled character capability data returned as JSON strings. - Added focused route regression coverage and corrected the settings toggle layout. - Bumped the package from `1.0.0` to `1.0.1` in the feature builder and regenerated `manifest.json`, client/server payloads, `long-term-memory-1.0.1.zip`, and all catalog lanes. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: unchanged, `>=2.3.5 <2.4.0`; built against Engine `2.3.5` - New or changed permissions/entrypoints: none; existing permissions and entrypoints remain unchanged - Restart, storage, update, or uninstall impact: package version bump requires the normal package update/restart path; storage schema and uninstall behavior were not changed ## 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 - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` Additional validation completed: - [x] `node scripts/test-catalog-lanes.mjs` passes locally - [x] Focused `tests/long-term-memory-routes.regression.ts` passes under the Engine `tsx` runtime - [x] Prettier check passes for the changed UI source - [x] Chromium Playwright desktop and mobile layout checks pass; the toggle and adjacent Recall style select both measure `44px` with no overflow ### Manual verification notes - Route regression coverage asserts JSON-string character data produces readable labels and empty-body re-extraction preserves `chatConnectionId`. - Chromium checks exercised the Long-Term Memory settings view at desktop and mobile widths and asserted matching control heights. - Full package installation/update, supported-mode restart, offline restart, and uninstall cleanup were not manually exercised in this checkout. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - Desktop and mobile Chromium screenshots were reviewed locally during validation; no repository screenshots were added. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added extraction connection selection in Memory Settings (including “automatic”). * Reworked Memory Vault scope selection (character → chat/conversation → branch). * Enhanced Sources Workspace with destination-aware transfers, expanded import scope controls, and keep vs retract source deletion. * **Bug Fixes** * Notes listing now returns `x-ltm-next-offset` for pagination. * Improved extraction connection routing and scope-target visibility/labeling (including chat inclusion rules). * **Release** * Updated Long-Term Memory to version **1.0.1**. <!-- 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-20 17:31:16 +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#820
No description provided.