[PR #732] [MERGED] fix(long-term-memory): restore responsive loading #1111

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

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/loading-performance


📝 Commits (4)

  • 184c016 fix(long-term-memory): defer local character discovery (#731)
  • 28e1928 fix(long-term-memory): publish loading repair as 1.2.23
  • 0255a9b fix(long-term-memory): keep local discovery in roleplay scope
  • 6795d44 fix(long-term-memory): support chatless local discovery

📊 Changes

22 files changed (+282 additions, -141 deletions)

View changed files

📝 artifacts/long-term-memory-1.2.22.zip (+0 -0)
➕ artifacts/long-term-memory-1.2.23.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+6 -0)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+6 -0)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+6 -0)
📝 packages/long-term-memory/CHANGELOG.md (+5 -0)
📝 packages/long-term-memory/client.js (+22 -22)
📝 packages/long-term-memory/manifest.json (+5 -5)
📝 packages/long-term-memory/server.mjs (+48 -48)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemorySettings.tsx (+2 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx (+41 -5)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ReviewQueue.tsx (+1 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx (+1 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/api.ts (+2 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+4 -0)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.ts (+36 -26)
📝 scripts/build-feature-packages.mjs (+1 -1)

...and 2 more files

📄 Description

Linked issue

Closes #731

Why this change

Long-Term Memory 1.2.20 introduced repeated local-character source parsing during scope-target loading. The work continued in 1.2.21 and 1.2.22, making Memories and Sources slow for users with many overlapping chats and sources.

What changed

  • Keep /scope-targets focused on cheap navigation data.
  • Defer local-character discovery to /local-characters until a character or relationship memory is being edited.
  • Build one aggregate local-character catalog per request and expose loading, error, and retry states.
  • Invalidate local-character data after Vault, Sources, Review Queue, maintenance, and identity-repair mutations.
  • Publish the fix as Long-Term Memory 1.2.23 so installed 1.2.22 users can update.
  • Rebuilt client.js, server.mjs, the 1.2.23 artifact, manifest, release notes, and catalog lanes.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none; remains compatible with Engine >=2.4.1 <4.0.0
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: package update from 1.2.22 to 1.2.23; storage format unchanged

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

  • Focused route and loading regressions passed.
  • npm run check passed with existing warnings and zero errors.
  • test-ci.sh passed.
  • test-ltm.sh all passed after the final 1.2.23 rebuild, including lifecycle, offline restart, local-character, runtime, UI, and loading tests.
  • Catalog, locale, release-note, whitespace, artifact, manifest, and catalog-lane validation passed.
  • Hosted CI and manual Engine installation verification remain for maintainers.

Documentation impact

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

UI evidence (if applicable)

The change includes Memory Vault loading/error/retry UI state. Automated Engine-backed UI checks passed; no screenshot evidence was captured.

Summary by CodeRabbit

  • New Features

    • Restored responsive loading for Memory Vault and Sources.
    • Added dedicated local-character loading for chat contexts.
    • Added visible loading, unavailable, and retry states for local characters.
  • Bug Fixes

    • Improved refresh behavior after memory, identity, repair, review, and source updates.
    • Ensured local-character data stays current after relevant changes.
  • Release

    • Updated the long-term-memory package to version 1.2.23 with refreshed release artifacts and documentation.

🔄 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/732 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 9/6/2026 **Status:** ✅ Merged **Merged:** 9/7/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/loading-performance` --- ### 📝 Commits (4) - [`184c016`](https://github.com/Pasta-Devs/Marinara-Agents/commit/184c0164ea5cbc6dd8f7b0157fcc6f4a44665bef) fix(long-term-memory): defer local character discovery (#731) - [`28e1928`](https://github.com/Pasta-Devs/Marinara-Agents/commit/28e19285db70eb28d60699375b8650f4aa538b77) fix(long-term-memory): publish loading repair as 1.2.23 - [`0255a9b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0255a9bb46514d8c8867692445ca1ab5125c418e) fix(long-term-memory): keep local discovery in roleplay scope - [`6795d44`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6795d44e322d717c1c4d9a24be74aa718529a12e) fix(long-term-memory): support chatless local discovery ### 📊 Changes **22 files changed** (+282 additions, -141 deletions) <details> <summary>View changed files</summary> 📝 `artifacts/long-term-memory-1.2.22.zip` (+0 -0) ➕ `artifacts/long-term-memory-1.2.23.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+6 -0) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+6 -0) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+6 -0) 📝 `packages/long-term-memory/CHANGELOG.md` (+5 -0) 📝 `packages/long-term-memory/client.js` (+22 -22) 📝 `packages/long-term-memory/manifest.json` (+5 -5) 📝 `packages/long-term-memory/server.mjs` (+48 -48) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemorySettings.tsx` (+2 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx` (+41 -5) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ReviewQueue.tsx` (+1 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx` (+1 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/api.ts` (+2 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+4 -0) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.ts` (+36 -26) 📝 `scripts/build-feature-packages.mjs` (+1 -1) _...and 2 more files_ </details> ### 📄 Description ## Linked issue Closes #731 ## Why this change Long-Term Memory 1.2.20 introduced repeated local-character source parsing during scope-target loading. The work continued in 1.2.21 and 1.2.22, making Memories and Sources slow for users with many overlapping chats and sources. ## What changed - Keep `/scope-targets` focused on cheap navigation data. - Defer local-character discovery to `/local-characters` until a character or relationship memory is being edited. - Build one aggregate local-character catalog per request and expose loading, error, and retry states. - Invalidate local-character data after Vault, Sources, Review Queue, maintenance, and identity-repair mutations. - Publish the fix as Long-Term Memory 1.2.23 so installed 1.2.22 users can update. - Rebuilt `client.js`, `server.mjs`, the 1.2.23 artifact, manifest, release notes, and catalog lanes. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none; remains compatible with Engine `>=2.4.1 <4.0.0` - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: package update from 1.2.22 to 1.2.23; storage format unchanged ## 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 - [x] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Focused route and loading regressions passed. - `npm run check` passed with existing warnings and zero errors. - `test-ci.sh` passed. - `test-ltm.sh all` passed after the final 1.2.23 rebuild, including lifecycle, offline restart, local-character, runtime, UI, and loading tests. - Catalog, locale, release-note, whitespace, artifact, manifest, and catalog-lane validation passed. - Hosted CI and manual Engine installation verification remain for maintainers. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) The change includes Memory Vault loading/error/retry UI state. Automated Engine-backed UI checks passed; no screenshot evidence was captured. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Restored responsive loading for Memory Vault and Sources. - Added dedicated local-character loading for chat contexts. - Added visible loading, unavailable, and retry states for local characters. - **Bug Fixes** - Improved refresh behavior after memory, identity, repair, review, and source updates. - Ensured local-character data stays current after relevant changes. - **Release** - Updated the long-term-memory package to version 1.2.23 with refreshed release artifacts and documentation. <!-- 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:02:54 +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#1111
No description provided.