[PR #814] [MERGED] fix: improve Long-Term Memory scope picker #1149

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

📋 Pull Request Information

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

Base: staging ← Head: feature(long-term-memory)/scope-picker-memory-presence


📝 Commits (2)

  • abb7661 fix: improve memory vault scope picker (#811)
  • c3ff87e fix: preserve memory scope search state (#811)

📊 Changes

6 files changed (+193 additions, -12 deletions)

View changed files

📝 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 (+153 -12)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+2 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/scope-targets.ts (+2 -0)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.ts (+8 -0)
📝 tests/long-term-memory-browser.regression.ts (+26 -0)

📄 Description

Linked issue

Closes #811

Why this change

  • Make Memory Vault scopes easier to identify and distinguish populated scopes from empty ones.

What changed

  • Affected package: long-term-memory.
  • Branch rows display the associated chat name and branch name, with responsive truncation.
  • Persona rows include their short comments when present.
  • Scope rows are grouped into “With memories” and a collapsed “No memories” section. Search temporarily opens matching empty scopes and restores the manual state afterward.
  • /scope-targets supplies memory-presence metadata derived from the existing note snapshot.
  • Scope-target caches refresh after relevant memory mutations and repairs.
  • Added focused browser regression coverage.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: No selection, scope, recall, or request-parameter changes.
  • 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

  • npm ci passed.
  • npm run check passed with 0 errors and existing warnings.
  • npx tsx tests/long-term-memory-scope-targets.regression.ts passed.
  • Package typecheck is blocked by the pre-existing retention.ts:169 logger error.
  • Package rebuild is blocked because the neighboring Engine checkout lacks esbuild/bin/esbuild.
  • Full test-ci.sh and LTM lifecycle validation were unavailable in this environment.

Documentation impact

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

UI evidence (if applicable)

  • Focused browser regression assertions cover labels, grouping, collapse/search restoration, and current-row behavior. Visual screenshots were not captured because the package rebuild/lifecycle environment was unavailable.

Summary by CodeRabbit

  • New Features
    • Scope target picker now shows chat names and persona comments for clearer identification.
    • Targets can be searched using combined names and labels.
    • Branches are grouped by whether they contain memories, with empty groups collapsed by default.
    • Matching searches automatically expand relevant groups.
  • Bug Fixes
    • Memory and identity maintenance now refreshes scope target data immediately.
    • Scope target updates consistently refresh across the memory vault.
  • Tests
    • Added coverage for memory-status grouping, search behavior, and chat-name display.

🔄 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/814 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 9/13/2026 **Status:** ✅ Merged **Merged:** 9/13/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature(long-term-memory)/scope-picker-memory-presence` --- ### 📝 Commits (2) - [`abb7661`](https://github.com/Pasta-Devs/Marinara-Agents/commit/abb76612df7d4f3da1a9338712188de23de30d06) fix: improve memory vault scope picker (#811) - [`c3ff87e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c3ff87e134e71f46aa3929bc7b80c4b7676addc6) fix: preserve memory scope search state (#811) ### 📊 Changes **6 files changed** (+193 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `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` (+153 -12) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+2 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/scope-targets.ts` (+2 -0) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.ts` (+8 -0) 📝 `tests/long-term-memory-browser.regression.ts` (+26 -0) </details> ### 📄 Description ## Linked issue Closes #811 ## Why this change - Make Memory Vault scopes easier to identify and distinguish populated scopes from empty ones. ## What changed - Affected package: `long-term-memory`. - Branch rows display the associated chat name and branch name, with responsive truncation. - Persona rows include their short comments when present. - Scope rows are grouped into “With memories” and a collapsed “No memories” section. Search temporarily opens matching empty scopes and restores the manual state afterward. - `/scope-targets` supplies memory-presence metadata derived from the existing note snapshot. - Scope-target caches refresh after relevant memory mutations and repairs. - Added focused browser regression coverage. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: No selection, scope, recall, or request-parameter changes. - New or changed permissions/entrypoints: None. - Restart, storage, update, or uninstall impact: None. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [x] `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 - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - `npm ci` passed. - `npm run check` passed with 0 errors and existing warnings. - `npx tsx tests/long-term-memory-scope-targets.regression.ts` passed. - Package typecheck is blocked by the pre-existing `retention.ts:169` logger error. - Package rebuild is blocked because the neighboring Engine checkout lacks `esbuild/bin/esbuild`. - Full `test-ci.sh` and LTM lifecycle validation were unavailable in this environment. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - Focused browser regression assertions cover labels, grouping, collapse/search restoration, and current-row behavior. Visual screenshots were not captured because the package rebuild/lifecycle environment was unavailable. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Scope target picker now shows chat names and persona comments for clearer identification. * Targets can be searched using combined names and labels. * Branches are grouped by whether they contain memories, with empty groups collapsed by default. * Matching searches automatically expand relevant groups. * **Bug Fixes** * Memory and identity maintenance now refreshes scope target data immediately. * Scope target updates consistently refresh across the memory vault. * **Tests** * Added coverage for memory-status grouping, search behavior, and chat-name display. <!-- 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: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#1149
No description provided.