[PR #787] [MERGED] fix(long-term-memory): keep non-chat sources across scopes #1134

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

📋 Pull Request Information

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

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


📝 Commits (2)

  • e19b026 fix(long-term-memory): keep non-chat sources across scopes (#779)
  • a8671bf fix(long-term-memory): stabilize mobile source test (#779)

📊 Changes

12 files changed (+142 additions, -90 deletions)

View changed files

📝 artifacts/long-term-memory-1.2.25.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 packages/long-term-memory/client.js (+14 -13)
📝 packages/long-term-memory/manifest.json (+4 -4)
📝 packages/long-term-memory/server.mjs (+32 -32)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LtmWorkspace.tsx (+1 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx (+1 -4)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts (+2 -17)
📝 tests/long-term-memory-browser.regression.ts (+10 -2)
📝 tests/long-term-memory-conversation-summary-import.regression.ts (+60 -0)

📄 Description

Linked issue

Closes #779

Why this change

  • Characters and lorebooks outside the selected chat, branch, or character source scope were hidden or reported missing even though they are library-wide import sources.

What changed

  • Keeps character and lorebook sources available across scope selections while retaining scope filtering for chat summaries.
  • Stabilizes the mobile Sources browser regression and rebuilds the Long-Term Memory package outputs.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none; existing compatibility range retained.
  • New or changed permissions/entrypoints: none.
  • 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 test-ltm.sh all covered the package browser lifecycle, installation, offline restart, uninstall, reinstall, and supported regression suites. No separate manual session was performed.

Documentation impact

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

UI evidence (if applicable)

  • Browser regression confirms the mobile workspace switcher is visible and operable; no screenshot was captured.

Summary by CodeRabbit

  • Bug Fixes
    • Improved workspace pane switching so tabs display and respond more reliably.
    • Fixed source previews and imports to handle character and lorebook sources without applying unrelated chat scope filters.
    • Improved lorebook previews by consistently showing applicable entries and ensuring imports complete successfully.
  • Tests
    • Added regression coverage for scoped previews, source details, imports, and workspace navigation.

🔄 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/787 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 9/10/2026 **Status:** ✅ Merged **Merged:** 9/10/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/source-import-scope` --- ### 📝 Commits (2) - [`e19b026`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e19b026532e9e7c4e63bddc91c01c51751f65ace) fix(long-term-memory): keep non-chat sources across scopes (#779) - [`a8671bf`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a8671bf7bd0e4cc67f3d3a664e369f6ffe284ae1) fix(long-term-memory): stabilize mobile source test (#779) ### 📊 Changes **12 files changed** (+142 additions, -90 deletions) <details> <summary>View changed files</summary> 📝 `artifacts/long-term-memory-1.2.25.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `packages/long-term-memory/client.js` (+14 -13) 📝 `packages/long-term-memory/manifest.json` (+4 -4) 📝 `packages/long-term-memory/server.mjs` (+32 -32) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LtmWorkspace.tsx` (+1 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx` (+1 -4) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts` (+2 -17) 📝 `tests/long-term-memory-browser.regression.ts` (+10 -2) 📝 `tests/long-term-memory-conversation-summary-import.regression.ts` (+60 -0) </details> ### 📄 Description ## Linked issue Closes #779 ## Why this change - Characters and lorebooks outside the selected chat, branch, or character source scope were hidden or reported missing even though they are library-wide import sources. ## What changed - Keeps character and lorebook sources available across scope selections while retaining scope filtering for chat summaries. - Stabilizes the mobile Sources browser regression and rebuilds the Long-Term Memory package outputs. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none; existing compatibility range retained. - New or changed permissions/entrypoints: none. - 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 `test-ltm.sh all` covered the package browser lifecycle, installation, offline restart, uninstall, reinstall, and supported regression suites. No separate manual session was performed. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - Browser regression confirms the mobile workspace switcher is visible and operable; no screenshot was captured. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved workspace pane switching so tabs display and respond more reliably. * Fixed source previews and imports to handle character and lorebook sources without applying unrelated chat scope filters. * Improved lorebook previews by consistently showing applicable entries and ensuring imports complete successfully. * **Tests** * Added regression coverage for scoped previews, source details, imports, and workspace navigation. <!-- 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:03:38 +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#1134
No description provided.