Skip to content

Ask before a memory note is deleted — today Memory's Delete drops a note the reader asked the assistant to keep on the first tap, the only destructive action without a confirm #272

Open

Description

@bencode

Problem

The Memory page's Delete erases a note on the first tap. MemoryRow renders Delete as an always-visible text button beside Edit (ui-packages/web/src/features/memory/memory-row.tsx:147-155), and its onClick calls removeMemories([entry.id]) directly — no confirmation, no undo, no trace. No component in features/memory uses the app's ConfirmationDialog at all.

Every other destructive action in the app confirms first: deleting a conversation (features/conversation/delete-conversation-dialog.tsx, #171), removing a file or folder (features/resources/file-dialogs.tsx), deleting a project (features/projects/delete-project-dialog.tsx), removing a model provider (features/settings/model-providers/remove-provider-dialog.tsx, #213). PRODUCT.md asks for "reversible actions for ordinary users"; this one is neither confirmed nor reversible.

What is lost raises the stakes: these are notes the reader explicitly asked the assistant to keep ("Say 'remember…' in a conversation to keep a note", memory-page.tsx:105-109), including ones marked "kept in mind in every conversation" (memory-row.tsx:78-89). A mis-tap — Edit and Delete sit adjacent, a finger-sized hazard on a phone — silently strips knowledge from every later conversation, and the reader discovers it only when the assistant "forgets" something it was told to remember. The loss is invisible at the moment it happens, which is exactly the data-loss shape this app works to avoid elsewhere (#257, #248).

Proposal

  • Put the existing ConfirmationDialog in front of Memory's Delete, naming the note to go: Cancel / Delete.
  • Match the wording of the other removal dialogs: say the note leaves this browser and the assistant stops recalling it.
  • Leave the assistant's own forget tool (features/memory/tools.ts:110) as it is — it already runs on an explicit request in conversation.

Goal

After this, no destructive action in Gamma Reader fires on a first tap: deleting a memory note asks first and a mis-tap beside Edit costs nothing, so a note the reader asked the assistant to keep cannot leave this browser unannounced.

Verification

grep -rln "ConfirmationDialog" ui-packages/web/src/features/memory
pnpm --filter @gamma-reader/web test src/features/memory
pnpm check

Refs

Activity

  1. added
    enhancement
    source:scheduled
    on Oct 27, 2026
  2. bencode commented on Oct 27, 2026

    @bencode
    OwnerAuthor

    Independent review — posted by the scheduled issue-reviewer loop, independent of the authoring session.

    Evidence audit: all citations confirmed on main (dbf9cb6).

    Duplicate check: clean across open and closed — closest are the disclosure family (#257, #248) and the closed confirm-first fixes (#171/#212/#213); none covers Memory's Delete.

    Sensor: lint ✓; verify fails on main (grep -rln "ConfirmationDialog" ui-packages/web/src/features/memory → no match) — a real gate, correctly reporting not-implemented.

    Verdict: valid, stays open. Well-scoped; one sharpening: Verification greps only for the dialog's presence — consider also anchoring that it names the note (e.g. a unit test rendering the dialog against a sample entry), since an unnamed "Delete this note?" would still pass today's gate.

  3. bencode commented on Oct 30, 2026

    @bencode
    OwnerAuthor

    Posted by the scheduled issue-reviewer loop, independent of the authoring session.

    Re-audit @ d05b6b6 — the review ran against dbf9cb6; the four plugins commits since touch no memory file. Still valid; stays open.

    --

  4. bencode commented on Nov 5, 2026

    @bencode
    OwnerAuthor

    Posted by the scheduled issue-reviewer loop, independent of the authoring session.

    Re-audit @ d05b6b6 — HEAD unchanged since the 10-30 review's base; still valid, stays open.

  5. bencode commented on Nov 7, 2026

    @bencode
    OwnerAuthor

    Posted by the scheduled issue-reviewer loop, independent of the authoring session.

    Re-audit at d05b6b6 (fourth pass; HEAD unchanged since 2026-10-28) — valid, stays open; no edits.

    Verdict unchanged; the standing sharpening remains: gate that the dialog names the note, so a bare generic confirm cannot satisfy the verification.

  6. bencode commented on Nov 11, 2026

    @bencode
    OwnerAuthor

    Posted by the scheduled issue-reviewer loop, independent of the authoring session.

    Re-audit (fifth pass) @ d05b6b6 — HEAD unchanged since 2026-10-28; valid, stays open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsource:scheduled

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions