[PR #1271] [MERGED] fix(long-term-memory): 1.4.18 — open and redraw the Memory Vault quickly in large libraries (#1268) #1376

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

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/1268-vault-picker-presence-perf


📝 Commits (2)

  • e2a2c1c fix(long-term-memory): 1.4.18 — open and redraw the Memory Vault quickly in large libraries (#1268)
  • 8d11b8c Merge upstream/staging into fix(long-term-memory)/1268-vault-picker-presence-perf

📊 Changes

14 files changed (+185 additions, -104 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.18.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/long-term-memory/CHANGELOG.md (+4 -0)
📝 packages/long-term-memory/client.js (+28 -28)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx (+34 -36)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/scope-targets.ts (+33 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-scope-targets.regression.ts (+46 -0)

📄 Description

Linked issue

Closes #1268

Why this change

The Memory Vault took seconds to appear on open and on every return to the Vault tab. The server answers in 2-120 ms; the time went into the browser. Each place picker compared every place with every memory scope on each render (about 517k ltmScopesOverlap calls, roughly 0.9 s per render on a 553-chat library), and tab switches remount the Vault.

What changed

  • scope-targets.ts: new buildScopeMemoryPresence (one id index per memory set, equivalent to the old some(ltmScopesOverlap(..., { includeGlobal: false }))) and uniqueById (Set-based de-duplication).
  • MemoryVault.tsx: pickers use the index and uniqueById instead of the repeated scans and findIndex de-duplication; lazier label lookups. Grouping, labels and selection are unchanged.
  • tests/long-term-memory-scope-targets.regression.ts: equivalence matrix against the old scan, plus uniqueById order checks.
  • Rebuilt outputs: long-term-memory 1.4.18 manifest, client.js, artifact zip, catalog and notes. server.mjs is unchanged. Measured on a replay of real library data: about 870 ms to about 7 ms per Vault render, with identical groups and labels.

Package and security impact

  • Affected package IDs: long-term-memory (1.4.17 -> 1.4.18)
  • Engine compatibility impact: none (minEngineVersion unchanged)
  • New or changed permissions/entrypoints: none. Executable client code changed (client-only, no server, archive or install changes).
  • Restart, storage, update, or uninstall impact: none

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

Automated runs on the merged HEAD: LTM regressions (scope-targets, scope-fallback-labels, routes-scope-identity, runtime, routes, browser, feedback-clarity-ui, loading), npm run check (0 errors), catalog lanes, package locales, catalog and release-notes validators. Not yet installed through a running Engine.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Improvements
    • Updated Long-Term Memory to version 1.4.18. Memory Vault place pickers now find chats, branches, characters, and personas with memories more quickly in large libraries.
    • Redraws take milliseconds in a reported library of about 800 places and 180 memories.

🔄 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/1271 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/8/2026 **Status:** ✅ Merged **Merged:** 10/8/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/1268-vault-picker-presence-perf` --- ### 📝 Commits (2) - [`e2a2c1c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e2a2c1c2bf0912fc332c2441902fc2a8b662efc3) fix(long-term-memory): 1.4.18 — open and redraw the Memory Vault quickly in large libraries (#1268) - [`8d11b8c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8d11b8c90a276a462a2ec3bab51410f5373a3f5f) Merge upstream/staging into fix(long-term-memory)/1268-vault-picker-presence-perf ### 📊 Changes **14 files changed** (+185 additions, -104 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.18.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/long-term-memory/CHANGELOG.md` (+4 -0) 📝 `packages/long-term-memory/client.js` (+28 -28) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx` (+34 -36) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/scope-targets.ts` (+33 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-scope-targets.regression.ts` (+46 -0) </details> ### 📄 Description ## Linked issue Closes #1268 ## Why this change The Memory Vault took seconds to appear on open and on every return to the Vault tab. The server answers in 2-120 ms; the time went into the browser. Each place picker compared every place with every memory scope on each render (about 517k `ltmScopesOverlap` calls, roughly 0.9 s per render on a 553-chat library), and tab switches remount the Vault. ## What changed - `scope-targets.ts`: new `buildScopeMemoryPresence` (one id index per memory set, equivalent to the old `some(ltmScopesOverlap(..., { includeGlobal: false }))`) and `uniqueById` (Set-based de-duplication). - `MemoryVault.tsx`: pickers use the index and `uniqueById` instead of the repeated scans and `findIndex` de-duplication; lazier label lookups. Grouping, labels and selection are unchanged. - `tests/long-term-memory-scope-targets.regression.ts`: equivalence matrix against the old scan, plus `uniqueById` order checks. - Rebuilt outputs: long-term-memory 1.4.18 manifest, `client.js`, artifact zip, catalog and notes. `server.mjs` is unchanged. Measured on a replay of real library data: about 870 ms to about 7 ms per Vault render, with identical groups and labels. ## Package and security impact - Affected package IDs: long-term-memory (1.4.17 -> 1.4.18) - Engine compatibility impact: none (`minEngineVersion` unchanged) - New or changed permissions/entrypoints: none. Executable client code changed (client-only, no server, archive or install changes). - Restart, storage, update, or uninstall impact: none ## 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 Automated runs on the merged HEAD: LTM regressions (scope-targets, scope-fallback-labels, routes-scope-identity, runtime, routes, browser, feedback-clarity-ui, loading), `npm run check` (0 errors), catalog lanes, package locales, catalog and release-notes validators. Not yet installed through a running Engine. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Improvements** * Updated Long-Term Memory to version 1.4.18. Memory Vault place pickers now find chats, branches, characters, and personas with memories more quickly in large libraries. * Redraws take milliseconds in a reported library of about 800 places and 180 memories. <!-- 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:10:03 +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#1376
No description provided.