mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1163] [Feature]: Long-Term Memory: identify exact memories in delete confirmation #592
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#592
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Promansis on GitHub (Sep 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1163
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
Long-Term Memory uses the same generic confirmation for single-row and bulk permanent deletion: "Permanently delete selected memories?" followed by "This cannot be undone." It does not identify the memories being deleted or state their count.
A user reported having three relationship memories with identical titles after bringing memories from different chats into one place. They believed deletion concerned the memory they were viewing, but their important relationship-history memory was deleted instead. Recovery required manually extracting its JSON file from a full backup. The original incident's exact cause remains unconfirmed; investigation did not reproduce title-based deletion or ordinary single-ID deletion fan-out.
The confirmed UI problems are that the dialog gives no way to verify its targets, and bulk selection can include memories hidden by filters. The currently open editor is also separate from the clicked row or checked IDs that actually determine deletion.
Proposed package or change
Improve the permanent-delete confirmation in the existing
long-term-memorypackage's Memory Vault, for both single-row and bulk actions across its supported Conversation, Roleplay, and Game modes.1. Identify the exact targets
2. Make the count explicit
3. Include hidden bulk selections
4. Make cancellation the safe default
Acceptance and regression checks
Leave these unchecked until the implementation is actually verified:
This is primarily package-client UI work. Preserve the existing ID-based server deletion contract; do not introduce title-based matching or broaden deletion/cascade behavior.
Why should this be optional?
This is a safety improvement within the existing optional Long-Term Memory Agent package, not a new Engine-core feature or a separate downloadable package. The safer confirmation should apply to every Memory Vault permanent-delete action rather than require an opt-in setting.
Alternatives considered
Additional context
Investigation examined Agents revision
4e10fb9044f6a3758356526648dbd3fec71df161. The affectedMemoryVault.tsxand English UI catalog are unchanged at35d9dec5984a927c3356379c9be68d0507e2cbaf, the checkout revision when filing this issue.Relevant source under
packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/:MemoryVault.tsx:runBatchForIdsbuilds the generic confirmation;runNoteActionsupplies[note.id];batchsupplies the checked-ID set;hiddenCheckedtracks selections hidden by filters;deleteSelectedposts the target IDs.locales/en.json:permanentlyDeleteSelectedMemoriesandthisCannotBeUndonesupply the generic confirmation text.The server's
routes.tsvalidates an array of IDs, andstorage.tslooks those IDs up directly. Titles do not drive normal Memory Vault deletion.Investigation evidence on the earlier revision:
test-ltm.sh routes-scope-identitypassed, including source-lineage preview/staleness guards and preservation of excluded memories.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: