[PR #461] [MERGED] fix(long-term-memory): clarify Memory Vault scope states #981

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

📋 Pull Request Information

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

Base: staging ← Head: feature(long-term-memory)/scope-resolution-states


📝 Commits (4)

  • b7574d1 fix(long-term-memory): show scope resolution states
  • cdabf86 fix(long-term-memory): gate notes on resolved scope
  • d8e3c96 style(long-term-memory): format vault component
  • cfaa649 fix(long-term-memory): wait for resolved note scope

📊 Changes

3 files changed (+56 additions, -10 deletions)

View changed files

📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx (+34 -10)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+3 -0)
📝 tests/long-term-memory-feedback-clarity-ui.regression.mjs (+19 -0)

📄 Description

Pull request

Linked issue

Closes #460

Why this change

Memory Vault previously represented unresolved or failed scope-target requests as an empty memory list, making loading and request failures indistinguishable from a genuinely empty scope.

What changed

  • Added explicit scope-target loading, retryable failure, and success-gated empty states in the long-term-memory package.
  • Disabled notes loading until the current scope-target request succeeds, including when a cached session target exists.
  • Added English UI copy and focused source regression assertions.
  • No generated outputs changed. The package remains at long-term-memory@1.2.9; its existing artifact and catalog details are unchanged.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: None; existing manifest range remains unchanged.
  • 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

Previously run against the final source state: focused UI regression, catalog/package validators, changed-file ESLint, disposable long-term-memory package build, and Long-Term Memory Engine regressions covering storage, extraction, runtime, routes, summary import, debug logging, and lifecycle behavior. Full repository formatting remains blocked by unrelated pre-existing failures outside the changed files.

Documentation impact

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

UI evidence (if applicable)

The change is limited to explicit loading, failure, retry, and empty-state behavior; no screenshot was captured. The artifact was rebuilt locally and upstream version bump to 1.3.0 is deferred deliberately.

Summary by CodeRabbit

  • Bug Fixes

    • Improved memory loading by waiting for the selected context scope to resolve.
    • Prevented premature “no memories found” messages while scope or note data is loading.
    • Improved handling of scope-loading and scope-error states.
  • New Features

    • Added retry support when memory scope loading fails.
    • Added localized labels for loading, failure, and retry actions.

🔄 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/461 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 8/20/2026 **Status:** ✅ Merged **Merged:** 8/20/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature(long-term-memory)/scope-resolution-states` --- ### 📝 Commits (4) - [`b7574d1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b7574d153984b0890e909c25723fc5e70e6305c7) fix(long-term-memory): show scope resolution states - [`cdabf86`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cdabf86b96d29da756f1d8510b35fec0b9f64bd4) fix(long-term-memory): gate notes on resolved scope - [`d8e3c96`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d8e3c96cb7daacc59aaff57c7f23135b98487941) style(long-term-memory): format vault component - [`cfaa649`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cfaa64943290b9bf835ee7b19472594534ac09ad) fix(long-term-memory): wait for resolved note scope ### 📊 Changes **3 files changed** (+56 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx` (+34 -10) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+3 -0) 📝 `tests/long-term-memory-feedback-clarity-ui.regression.mjs` (+19 -0) </details> ### 📄 Description # Pull request ## Linked issue Closes #460 ## Why this change Memory Vault previously represented unresolved or failed scope-target requests as an empty memory list, making loading and request failures indistinguishable from a genuinely empty scope. ## What changed - Added explicit scope-target loading, retryable failure, and success-gated empty states in the `long-term-memory` package. - Disabled notes loading until the current scope-target request succeeds, including when a cached session target exists. - Added English UI copy and focused source regression assertions. - No generated outputs changed. The package remains at `long-term-memory@1.2.9`; its existing artifact and catalog details are unchanged. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: None; existing manifest range remains unchanged. - New or changed permissions/entrypoints: None. - Restart, storage, update, or uninstall impact: None. ## 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 Previously run against the final source state: focused UI regression, catalog/package validators, changed-file ESLint, disposable `long-term-memory` package build, and Long-Term Memory Engine regressions covering storage, extraction, runtime, routes, summary import, debug logging, and lifecycle behavior. Full repository formatting remains blocked by unrelated pre-existing failures outside the changed files. ## 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 is limited to explicit loading, failure, retry, and empty-state behavior; no screenshot was captured. The artifact was rebuilt locally and upstream version bump to 1.3.0 is deferred deliberately. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved memory loading by waiting for the selected context scope to resolve. * Prevented premature “no memories found” messages while scope or note data is loading. * Improved handling of scope-loading and scope-error states. * **New Features** * Added retry support when memory scope loading fails. * Added localized labels for loading, failure, and retry actions. <!-- 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:32:57 +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#981
No description provided.