[PR #1546] [MERGED] fix(long-term-memory): finish Undo, Save, Delete and Rename detail when another memory is opened meanwhile (#1544) #1539

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

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/vault-actions-after-opening-memory


📝 Commits (2)

  • 47564ae fix(long-term-memory): finish Undo, Save, Delete and Rename detail when another memory is opened meanwhile (#1544)
  • 798d4ca Merge upstream/staging into fix(long-term-memory)/vault-actions-after-opening-memory; release long-term-memory 1.4.75

📊 Changes

13 files changed (+232 additions, -74 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.75.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 (+17 -17)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/vault/MemoryVault.tsx (+25 -12)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-browser.regression.ts (+146 -5)

📄 Description

Pull request

Linked issue

Closes #1544

Why this change

  • In the Memory Vault, Undo after an archive, Save, permanent Delete and Rename detail stop half-way when you open another memory before they finish. Undo, Save and Rename detail leave their buttons disabled until you leave the Vault or another action resets them. A partly failed Undo does not archive again the memories it restored, so the archive stays half-undone. A memory reopened during its own save shows the copy from before the save. A permanent delete leaves the deleted memories listed and ticked, and a deleted memory you opened stays open and fails to save.
  • Rename detail is reached through Escape: its dialog disables Cancel while the rename runs, but Escape still closes it.

What changed

  • MemoryVault.tsx: Undo, Save and permanent delete no longer stop when another memory was opened meanwhile. What belongs to the whole vault always runs: the busy state clears (only for the same action), the lists reload, a partly failed Undo archives again what it restored, and deleted memories leave the selection and close if open. The notice and error still belong to the memory that was open when the action started, as for bulk changes; the delete notice also shows when the deletion closed the memory open now.
  • Undo: the session check moves below the reload of the restored memories, and the Undo button is cleared only if it is still the one that ran.
  • Save: when another memory was opened meanwhile, the Save label goes back to "Save" and the lists reload, with the open memory too if it is the one just saved, so it shows what was saved.
  • Permanent delete: the open-memory check reads the memory open now, not the one open when the delete started.
  • Rename detail: Escape keeps the dialog open while the rename runs, like its disabled Cancel button.
  • Browser regression: holds each request, then opens another memory (Undo, delete), reopens the memory being saved (Save) or presses Escape (Rename detail), and checks the result after the answer.
  • Release: long-term-memory 1.4.75 on staging 7ca8d5998, with the CHANGELOG entry, version, manifest, rebuilt server.mjs and client.js, artifact and catalog entries.

Not included (unchanged here):

  • After another memory was opened, these actions show no message (as bulk changes already do), except the delete message for a memory the deletion closed. A partly failed Undo then shows no error; its Undo button stays to try again.
  • A memory reopened during its own save and edited before the save answers keeps those edits over the old copy, as after a bulk change, so saving it writes the old title back.

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. A partly failed Undo answered after another memory was opened now sends the rollback it already sends otherwise; the rest are reloads (lists, and GET /notes/:id for an open memory that a Save just stored).

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 for each action: the reopened memory keeps its title from before the save, Undo stays disabled, the delete is followed by no list request, and Escape closes the Rename detail dialog. Putting back each changed line in turn also fails the suite, except three guards that need timing the browser test cannot produce: the Undo's own-run check, the Undo notice's session check (which was already there), and the delete notice's session check for a deletion that did not close the open memory.
  • On the fix commit (base bcaebd07d): typecheck, npm run check, the package build, test-fast.sh, test-ci.sh, every Long-Term Memory regression suite (browser on the rebuilt client) and the catalog checks 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 pass. 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)

  • No layout or styling change. Optional: a short recording of a memory reopened during its own save showing the saved title, with a throttled network.

🤖 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/1546 **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)/vault-actions-after-opening-memory` --- ### 📝 Commits (2) - [`47564ae`](https://github.com/Pasta-Devs/Marinara-Agents/commit/47564ae704efd63da96fc63952307ff0110ac519) fix(long-term-memory): finish Undo, Save, Delete and Rename detail when another memory is opened meanwhile (#1544) - [`798d4ca`](https://github.com/Pasta-Devs/Marinara-Agents/commit/798d4ca737b2dbcd1c1ab9ae658d4ac89b9c2721) Merge upstream/staging into fix(long-term-memory)/vault-actions-after-opening-memory; release long-term-memory 1.4.75 ### 📊 Changes **13 files changed** (+232 additions, -74 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.75.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` (+17 -17) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/vault/MemoryVault.tsx` (+25 -12) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-browser.regression.ts` (+146 -5) </details> ### 📄 Description # Pull request ## Linked issue Closes #1544 ## Why this change - In the Memory Vault, Undo after an archive, Save, permanent Delete and Rename detail stop half-way when you open another memory before they finish. Undo, Save and Rename detail leave their buttons disabled until you leave the Vault or another action resets them. A partly failed Undo does not archive again the memories it restored, so the archive stays half-undone. A memory reopened during its own save shows the copy from before the save. A permanent delete leaves the deleted memories listed and ticked, and a deleted memory you opened stays open and fails to save. - Rename detail is reached through Escape: its dialog disables Cancel while the rename runs, but Escape still closes it. ## What changed - `MemoryVault.tsx`: Undo, Save and permanent delete no longer stop when another memory was opened meanwhile. What belongs to the whole vault always runs: the busy state clears (only for the same action), the lists reload, a partly failed Undo archives again what it restored, and deleted memories leave the selection and close if open. The notice and error still belong to the memory that was open when the action started, as for bulk changes; the delete notice also shows when the deletion closed the memory open now. - Undo: the session check moves below the reload of the restored memories, and the Undo button is cleared only if it is still the one that ran. - Save: when another memory was opened meanwhile, the Save label goes back to "Save" and the lists reload, with the open memory too if it is the one just saved, so it shows what was saved. - Permanent delete: the open-memory check reads the memory open now, not the one open when the delete started. - Rename detail: Escape keeps the dialog open while the rename runs, like its disabled Cancel button. - Browser regression: holds each request, then opens another memory (Undo, delete), reopens the memory being saved (Save) or presses Escape (Rename detail), and checks the result after the answer. - **Release:** `long-term-memory` 1.4.75 on staging 7ca8d5998, with the CHANGELOG entry, version, manifest, rebuilt `server.mjs` and `client.js`, artifact and catalog entries. Not included (unchanged here): - After another memory was opened, these actions show no message (as bulk changes already do), except the delete message for a memory the deletion closed. A partly failed Undo then shows no error; its Undo button stays to try again. - A memory reopened during its own save and edited before the save answers keeps those edits over the old copy, as after a bulk change, so saving it writes the old title back. ## 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. A partly failed Undo answered after another memory was opened now sends the rollback it already sends otherwise; the rest are reloads (lists, and `GET /notes/:id` for an open memory that a Save just stored). ## 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 for each action: the reopened memory keeps its title from before the save, Undo stays disabled, the delete is followed by no list request, and Escape closes the Rename detail dialog. Putting back each changed line in turn also fails the suite, except three guards that need timing the browser test cannot produce: the Undo's own-run check, the Undo notice's session check (which was already there), and the delete notice's session check for a deletion that did not close the open memory. - On the fix commit (base bcaebd07d): typecheck, `npm run check`, the package build, `test-fast.sh`, `test-ci.sh`, every Long-Term Memory regression suite (browser on the rebuilt client) and the catalog checks 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 pass. 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) - No layout or styling change. Optional: a short recording of a memory reopened during its own save showing the saved title, with a throttled network. 🤖 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:14 +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#1539
No description provided.