[PR #1538] [MERGED] fix(long-term-memory): refresh the open memory after a bulk change (#1535) #1535

Closed
opened 2026-10-22 04:03:11 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/bulk-change-open-memory


📝 Commits (2)

  • 9a4f9be fix(long-term-memory): refresh the open memory after a bulk change
  • 5575a73 Merge upstream/staging into fix(long-term-memory)/bulk-change-open-memory; release long-term-memory 1.4.71

📊 Changes

13 files changed (+139 additions, -65 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.71.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/long-term-memory/CHANGELOG.md (+4 -0)
📝 packages/long-term-memory/client.js (+20 -20)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/vault/MemoryVault.tsx (+37 -4)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-browser.regression.ts (+38 -1)

📄 Description

Pull request

Linked issue

Closes #1535

Why this change

  • In the Memory Vault a bulk change runs in the background after Apply. If you open a memory before it finishes, the vault stops following the change: the list does not reload, the bulk buttons and row actions stay disabled, and the memory you opened shows its availability from before the change. Saving it puts the removed places back. A memory that was already open and part of the change shows and saves its old availability too.

What changed

  • MemoryVault.tsx: after every bulk change the vault reloads its lists and, if the open memory was part of the change, reloads that memory. Without unsaved edits the editor takes the reloaded memory; with unsaved edits it keeps them and takes only the availability and version, as an availability save already does. The reloaded memory is dropped if the editor moved to another memory meanwhile or already holds a newer save. The busy flag clears after the change even when another memory was opened meanwhile, without clearing a different action's flag.
  • Undo after a bulk Archive reloads the same way, so an open memory it restored shows its restored status when it has no unsaved changes. Without this, the reload after the Archive would leave it showing Archived after the Undo, and saving it would archive it again.
  • Browser regression: the existing bulk "Remove availability" case now checks that an already-open memory reloads, and holds the second change's response while a memory is opened and edited, then checks that the buttons work again, the list reloads, the edit is kept and the removed places stay removed. The existing archive Undo case now has one of the archived memories open and checks that the Undo reloads it.
  • Release: long-term-memory 1.4.71 on staging 857e0087d, with the CHANGELOG entry, version, manifest, rebuilt client.js, artifact and catalog entries.

Not included (unchanged here):

  • An "Edit availability" panel that is already open when the change finishes keeps the places it opened with, and saving it puts the removed places back. Closing and reopening it shows the new availability.
  • An editor with unsaved edits takes only the new availability. After a bulk Set status or Archive that changed the open memory, or an archive Undo that restored it, it still shows the old status, and saving it writes that status back.
  • A save sent while the change is still running is last-writer-wins; saves carry no version check.
  • Undo archive, Save, permanent delete and Rename detail stop the same way when another memory is opened while they run. Follow-up.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none. Client only; adds one GET /notes/:id after a bulk change that edited the open memory, or an archive Undo that restored it.

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

  • Without the fix the new checks fail every time: the open memory keeps "4 places" after the first change, and after the held second change the row actions stay disabled and the editor shows 5 chips instead of 4. Removing each part of the fix in turn also fails the suite.
  • A local probe (not part of this PR) answers the open memory's reload after a Save made while it was on its way: without the version check the editor drops back to the copy from before the save and shows it as saved; with it the save stays.
  • Without the Undo reload, the archive Undo check fails: no reload of the open memory follows the Undo.
  • On the fix commit (base 5984f0784): typecheck, lint, the Pull Request Checks commands, the package build and every Long-Term Memory regression suite, including the browser suite, pass. On the release head: the package rebuild leaves the tree clean, the catalog, locale and release-notes checks and the typecheck pass, and the browser suite passes. Hosted CI runs the full suite list on this head.

Documentation impact

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

UI evidence (if applicable)

  • The browser regression drives the Vault in Chromium: it opens a memory during a held bulk change, edits it, and checks the buttons, the reloaded list and the kept edit. No visual change.

🤖 Generated with Claude Code


🔄 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/1538 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/21/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/bulk-change-open-memory` --- ### 📝 Commits (2) - [`9a4f9be`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9a4f9be3e5aa73ad8c0c019392f93b08f174a973) fix(long-term-memory): refresh the open memory after a bulk change - [`5575a73`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5575a73dd0bcae3c619405024998110c318ff74b) Merge upstream/staging into fix(long-term-memory)/bulk-change-open-memory; release long-term-memory 1.4.71 ### 📊 Changes **13 files changed** (+139 additions, -65 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.71.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/long-term-memory/CHANGELOG.md` (+4 -0) 📝 `packages/long-term-memory/client.js` (+20 -20) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/vault/MemoryVault.tsx` (+37 -4) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-browser.regression.ts` (+38 -1) </details> ### 📄 Description # Pull request ## Linked issue Closes #1535 ## Why this change - In the Memory Vault a bulk change runs in the background after Apply. If you open a memory before it finishes, the vault stops following the change: the list does not reload, the bulk buttons and row actions stay disabled, and the memory you opened shows its availability from before the change. Saving it puts the removed places back. A memory that was already open and part of the change shows and saves its old availability too. ## What changed - `MemoryVault.tsx`: after every bulk change the vault reloads its lists and, if the open memory was part of the change, reloads that memory. Without unsaved edits the editor takes the reloaded memory; with unsaved edits it keeps them and takes only the availability and version, as an availability save already does. The reloaded memory is dropped if the editor moved to another memory meanwhile or already holds a newer save. The busy flag clears after the change even when another memory was opened meanwhile, without clearing a different action's flag. - Undo after a bulk Archive reloads the same way, so an open memory it restored shows its restored status when it has no unsaved changes. Without this, the reload after the Archive would leave it showing Archived after the Undo, and saving it would archive it again. - Browser regression: the existing bulk "Remove availability" case now checks that an already-open memory reloads, and holds the second change's response while a memory is opened and edited, then checks that the buttons work again, the list reloads, the edit is kept and the removed places stay removed. The existing archive Undo case now has one of the archived memories open and checks that the Undo reloads it. - **Release:** `long-term-memory` 1.4.71 on staging 857e0087d, with the CHANGELOG entry, version, manifest, rebuilt `client.js`, artifact and catalog entries. Not included (unchanged here): - An "Edit availability" panel that is already open when the change finishes keeps the places it opened with, and saving it puts the removed places back. Closing and reopening it shows the new availability. - An editor with unsaved edits takes only the new availability. After a bulk Set status or Archive that changed the open memory, or an archive Undo that restored it, it still shows the old status, and saving it writes that status back. - A save sent while the change is still running is last-writer-wins; saves carry no version check. - Undo archive, Save, permanent delete and Rename detail stop the same way when another memory is opened while they run. Follow-up. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none. Client only; adds one `GET /notes/:id` after a bulk change that edited the open memory, or an archive Undo that restored it. ## 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 - Without the fix the new checks fail every time: the open memory keeps "4 places" after the first change, and after the held second change the row actions stay disabled and the editor shows 5 chips instead of 4. Removing each part of the fix in turn also fails the suite. - A local probe (not part of this PR) answers the open memory's reload after a Save made while it was on its way: without the version check the editor drops back to the copy from before the save and shows it as saved; with it the save stays. - Without the Undo reload, the archive Undo check fails: no reload of the open memory follows the Undo. - On the fix commit (base 5984f0784): typecheck, lint, the Pull Request Checks commands, the package build and every Long-Term Memory regression suite, including the browser suite, pass. On the release head: the package rebuild leaves the tree clean, the catalog, locale and release-notes checks and the typecheck pass, and the browser suite passes. Hosted CI runs the full suite list on this head. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - The browser regression drives the Vault in Chromium: it opens a memory during a held bulk change, edits it, and checks the buttons, the reloaded list and the kept edit. No visual change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:03:11 +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#1535
No description provided.