[PR #1164] [MERGED] fix(long-term-memory): identify exact memories in permanent-delete confirmation #1326

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

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/1163-delete-confirmation-targets


📝 Commits (3)

  • 40035f5 fix(long-term-memory): identify exact memories in permanent-delete confirmation
  • efa4790 fix(long-term-memory): hold the delete flow while confirmation targets resolve
  • 8af400a fix(long-term-memory): clear the delete busy token after session changes

📊 Changes

10 files changed (+362 additions, -65 deletions)

View changed files

📝 artifacts/long-term-memory-1.3.34.zip (+0 -0)
📝 catalog/catalog.json (+4 -4)
📝 catalog/v2/catalog.json (+4 -4)
📝 catalog/v3/catalog.json (+4 -4)
📝 packages/long-term-memory/client.js (+30 -27)
📝 packages/long-term-memory/manifest.json (+2 -2)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx (+123 -22)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+12 -2)
📝 tests/long-term-memory-browser.regression.ts (+154 -0)
📝 tests/long-term-memory-feedback-clarity-ui.regression.mjs (+29 -0)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #1163

Why this change

Long-Term Memory used one generic confirmation ("Permanently delete selected memories?" followed by "This cannot be undone.") for both single-row and bulk permanent deletion. It identified no target and stated no count, so a user with several identically-titled memories had no way to tell what was about to be destroyed, and a bulk selection could include memories hidden by the active filters. Permanent deletion is not recoverable through the UI, so the dialog itself has to be the verification step.

What changed

  • long-term-memory Memory Vault now resolves the permanent-delete targets from the submitted IDs and shows each memory's title, a short content excerpt, availability, creation date, and memory ID, with explicit singular/plural headings and destructive-button labels.
  • Bulk confirmation lists every requested memory, including selections hidden by filters, and states the hidden-selection count; the listed targets are identical to the submitted IDs.
  • Source-note targets still route to Sources, and unresolved targets abort with an error instead of substituting another memory.
  • A pending delete now cancels when the selection or scope changes while the targets are still resolving, so a stale operation cannot delete IDs captured before the change.
  • The delete flow holds the busy state (disabling the bulk controls) while confirmation targets resolve and clears only its own busy token on every exit, even when the editor session changes mid-flight, without overwriting a newer busy owner; a failed target lookup now shows the localized no-op message instead of the raw error text.
  • Rebuilt the package payload (packages/long-term-memory/client.js), packages/long-term-memory/manifest.json, the artifacts/long-term-memory-1.3.34.zip artifact, and the catalog/catalog.json, catalog/v2/catalog.json, catalog/v3/catalog.json entries.

Package and security impact

  • Affected package IDs: long-term-memory 1.3.34
  • Engine compatibility impact: none; the manifest engine.min/engine.maxExclusive range is unchanged and lane membership is unchanged.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: none. The server's ID-based permanent-delete contract is unchanged.

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 checks run at HEAD 8af400a8c and passed: npm run check; node scripts/test-catalog-lanes.mjs; node scripts/validate-package-locales.mjs; node scripts/validate-catalog.mjs; node scripts/tests/catalog-release-notes.regression.mjs; git diff --check; and the Long-Term Memory feedback-clarity-ui and browser regressions. The browser regression additionally covers a held target lookup whose selection changes mid-flight and asserts no confirmation opens and no deletion request is sent; the feedback-clarity-ui regression asserts the delete flow clears only its own busy token. Publish proof inputs: repository digest ef28e129e2ac59ae49b2a17e53f050b94e727a0e40866e6173078bad7bf4cb15, Engine digest 8c0171291e89169ba4a318f893350b60a3c998f8c39005f1b571b918311fd0c8.

Manual Engine install/update, mode, restart, offline, and uninstall checks were not performed in this session, so the template's checkboxes are intentionally left unchecked.

Known unresolved finding: the host Engine confirmation dialog initially focuses its Close control rather than Cancel, which does not meet requirement 4 of the issue. That behavior is owned by the Engine dialog host (Modal plus use-dialog-focus-scope); this package only supplies the dialog title, message, and confirm label, so it is not repairable inside this repository.

Documentation impact

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

UI evidence (if applicable)

No screenshots were captured. The change is confirmation content covered by the browser regression described above.


🔄 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/1164 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/1/2026 **Status:** ✅ Merged **Merged:** 10/1/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/1163-delete-confirmation-targets` --- ### 📝 Commits (3) - [`40035f5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/40035f52b4afe44764f045da83258220cc7a4f6b) fix(long-term-memory): identify exact memories in permanent-delete confirmation - [`efa4790`](https://github.com/Pasta-Devs/Marinara-Agents/commit/efa47906f1a7c70d1a0f603559bc126a656a7ad1) fix(long-term-memory): hold the delete flow while confirmation targets resolve - [`8af400a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8af400a8cee734b3063c6a4af20adbe2c9e623d4) fix(long-term-memory): clear the delete busy token after session changes ### 📊 Changes **10 files changed** (+362 additions, -65 deletions) <details> <summary>View changed files</summary> 📝 `artifacts/long-term-memory-1.3.34.zip` (+0 -0) 📝 `catalog/catalog.json` (+4 -4) 📝 `catalog/v2/catalog.json` (+4 -4) 📝 `catalog/v3/catalog.json` (+4 -4) 📝 `packages/long-term-memory/client.js` (+30 -27) 📝 `packages/long-term-memory/manifest.json` (+2 -2) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx` (+123 -22) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+12 -2) 📝 `tests/long-term-memory-browser.regression.ts` (+154 -0) 📝 `tests/long-term-memory-feedback-clarity-ui.regression.mjs` (+29 -0) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #1163 ## Why this change Long-Term Memory used one generic confirmation ("Permanently delete selected memories?" followed by "This cannot be undone.") for both single-row and bulk permanent deletion. It identified no target and stated no count, so a user with several identically-titled memories had no way to tell what was about to be destroyed, and a bulk selection could include memories hidden by the active filters. Permanent deletion is not recoverable through the UI, so the dialog itself has to be the verification step. ## What changed - `long-term-memory` Memory Vault now resolves the permanent-delete targets from the submitted IDs and shows each memory's title, a short content excerpt, availability, creation date, and memory ID, with explicit singular/plural headings and destructive-button labels. - Bulk confirmation lists every requested memory, including selections hidden by filters, and states the hidden-selection count; the listed targets are identical to the submitted IDs. - Source-note targets still route to Sources, and unresolved targets abort with an error instead of substituting another memory. - A pending delete now cancels when the selection or scope changes while the targets are still resolving, so a stale operation cannot delete IDs captured before the change. - The delete flow holds the busy state (disabling the bulk controls) while confirmation targets resolve and clears only its own busy token on every exit, even when the editor session changes mid-flight, without overwriting a newer busy owner; a failed target lookup now shows the localized no-op message instead of the raw error text. - Rebuilt the package payload (`packages/long-term-memory/client.js`), `packages/long-term-memory/manifest.json`, the `artifacts/long-term-memory-1.3.34.zip` artifact, and the `catalog/catalog.json`, `catalog/v2/catalog.json`, `catalog/v3/catalog.json` entries. ## Package and security impact - Affected package IDs: `long-term-memory` 1.3.34 - Engine compatibility impact: none; the manifest `engine.min`/`engine.maxExclusive` range is unchanged and lane membership is unchanged. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: none. The server's ID-based permanent-delete contract is unchanged. ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `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 checks run at HEAD `8af400a8c` and passed: `npm run check`; `node scripts/test-catalog-lanes.mjs`; `node scripts/validate-package-locales.mjs`; `node scripts/validate-catalog.mjs`; `node scripts/tests/catalog-release-notes.regression.mjs`; `git diff --check`; and the Long-Term Memory `feedback-clarity-ui` and `browser` regressions. The browser regression additionally covers a held target lookup whose selection changes mid-flight and asserts no confirmation opens and no deletion request is sent; the feedback-clarity-ui regression asserts the delete flow clears only its own busy token. Publish proof inputs: repository digest `ef28e129e2ac59ae49b2a17e53f050b94e727a0e40866e6173078bad7bf4cb15`, Engine digest `8c0171291e89169ba4a318f893350b60a3c998f8c39005f1b571b918311fd0c8`. Manual Engine install/update, mode, restart, offline, and uninstall checks were not performed in this session, so the template's checkboxes are intentionally left unchecked. Known unresolved finding: the host Engine confirmation dialog initially focuses its Close control rather than Cancel, which does not meet requirement 4 of the issue. That behavior is owned by the Engine dialog host (`Modal` plus `use-dialog-focus-scope`); this package only supplies the dialog title, message, and confirm label, so it is not repairable inside this repository. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) No screenshots were captured. The change is confirmation content covered by the browser regression described above. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:08:52 +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#1326
No description provided.