[PR #615] [MERGED] fix(long-term-memory): scope global source previews #1048

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

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/sources-scope


📝 Commits (4)

  • 39ee6ed fix(long-term-memory): scope global source previews
  • f66c709 release(long-term-memory): bump to 1.2.15
  • 2025942 fix(long-term-memory): isolate active chat source previews
  • aa36a53 ci(long-term-memory): avoid unrelated Noodle browser trigger

📊 Changes

12 files changed (+240 additions, -132 deletions)

View changed files

📝 artifacts/long-term-memory-1.2.14.zip (+0 -0)
➕ artifacts/long-term-memory-1.2.15.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 (+15 -15)
📝 packages/long-term-memory/manifest.json (+5 -5)
📝 packages/long-term-memory/server.mjs (+29 -29)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx (+5 -4)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts (+24 -16)
📝 tests/long-term-memory-lifecycle.regression.ts (+103 -39)
📝 tests/long-term-memory-routes.regression.ts (+35 -0)

📄 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 #614

Why this change

When Long-Term Memory Sources is opened from a chat, the active chat scope was sent to character and lorebook previews. Those source collections are global, so valid records outside the current chat could be hidden.

What changed

  • Chat-summary previews continue using the selected chat or branch scope.
  • Character and lorebook previews now omit the chat scope while retaining mode filtering.
  • Updated matching React Query keys.
  • Added lifecycle request-body assertions for all three preview types.
  • Bumped Long-Term Memory to 1.2.15 and rebuilt its manifest, artifact, and catalog entries.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: None; existing minEngineVersion and maxEngineExclusive retained.
  • New or changed permissions/entrypoints: None.
  • Restart, storage, update, or uninstall impact: Package version bump only; existing lifecycle behavior retained.

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 existing lint warnings and no errors.
  • node scripts/test-catalog-lanes.mjs, node scripts/validate-package-locales.mjs, node scripts/validate-catalog.mjs, and git diff --check passed.
  • Long-Term Memory routes and conversation-summary import regressions passed against the neighboring Marinara Engine checkout.
  • Long-Term Memory lifecycle regression passed against the neighboring Marinara Engine checkout after rebuilding its local shared-package output; no Engine source changes were made.

Documentation impact

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

UI evidence (if applicable)

Summary by CodeRabbit

  • Bug Fixes

    • Preview requests now apply scope filtering correctly for chat sources while preserving appropriate mode filters for other sources.
    • Chat summaries are now matched accurately across groups, chats, and characters.
    • Imports from characters and lorebooks outside the active chat scope are handled correctly.
    • Preview results now exclude summaries from unrelated chats sharing the same character.
  • Chores

    • Updated the Long-Term Memory package to version 1.2.15 with refreshed package metadata and release artifacts.

🔄 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/615 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 8/26/2026 **Status:** ✅ Merged **Merged:** 8/27/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/sources-scope` --- ### 📝 Commits (4) - [`39ee6ed`](https://github.com/Pasta-Devs/Marinara-Agents/commit/39ee6ed12443c7c6a8c2a196197f7cbf04c0cf72) fix(long-term-memory): scope global source previews - [`f66c709`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f66c709124372f6be2df6f5e8f7d59117b729efc) release(long-term-memory): bump to 1.2.15 - [`2025942`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2025942f84a9c527bbdfeeb0b59aece62a1915a4) fix(long-term-memory): isolate active chat source previews - [`aa36a53`](https://github.com/Pasta-Devs/Marinara-Agents/commit/aa36a53b0792c1a3f2cb59af1546fd27c52d01f0) ci(long-term-memory): avoid unrelated Noodle browser trigger ### 📊 Changes **12 files changed** (+240 additions, -132 deletions) <details> <summary>View changed files</summary> 📝 `artifacts/long-term-memory-1.2.14.zip` (+0 -0) ➕ `artifacts/long-term-memory-1.2.15.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` (+15 -15) 📝 `packages/long-term-memory/manifest.json` (+5 -5) 📝 `packages/long-term-memory/server.mjs` (+29 -29) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx` (+5 -4) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts` (+24 -16) 📝 `tests/long-term-memory-lifecycle.regression.ts` (+103 -39) 📝 `tests/long-term-memory-routes.regression.ts` (+35 -0) </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`. <!-- Open as a draft while implementation is in progress. Mark Ready for review only after validation and self-review. --> ## Linked issue Closes #614 ## Why this change When Long-Term Memory Sources is opened from a chat, the active chat scope was sent to character and lorebook previews. Those source collections are global, so valid records outside the current chat could be hidden. ## What changed - Chat-summary previews continue using the selected chat or branch scope. - Character and lorebook previews now omit the chat scope while retaining mode filtering. - Updated matching React Query keys. - Added lifecycle request-body assertions for all three preview types. - Bumped Long-Term Memory to `1.2.15` and rebuilt its manifest, artifact, and catalog entries. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: None; existing `minEngineVersion` and `maxEngineExclusive` retained. - New or changed permissions/entrypoints: None. - Restart, storage, update, or uninstall impact: Package version bump only; existing lifecycle behavior retained. ## 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 existing lint warnings and no errors. - `node scripts/test-catalog-lanes.mjs`, `node scripts/validate-package-locales.mjs`, `node scripts/validate-catalog.mjs`, and `git diff --check` passed. - Long-Term Memory routes and conversation-summary import regressions passed against the neighboring Marinara Engine checkout. - Long-Term Memory lifecycle regression passed against the neighboring Marinara Engine checkout after rebuilding its local shared-package output; no Engine source changes were made. ## 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 included; this is a narrow request-scope behavior fix. --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Preview requests now apply scope filtering correctly for chat sources while preserving appropriate mode filters for other sources. * Chat summaries are now matched accurately across groups, chats, and characters. * Imports from characters and lorebooks outside the active chat scope are handled correctly. * Preview results now exclude summaries from unrelated chats sharing the same character. * **Chores** * Updated the Long-Term Memory package to version 1.2.15 with refreshed package metadata and release artifacts. <!-- 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:33:33 +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#1048
No description provided.