Repository navigation
Description
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
ConfirmationDialogin 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
forgettool (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 checkRefs
- ui-packages/web/src/features/memory/memory-row.tsx:147-155 — Delete calls removeMemories on the first tap
- ui-packages/web/src/features/memory/memory-page.tsx:105-109 — notes exist because the reader asked the assistant to keep them
- ui-packages/web/src/features/conversation/delete-conversation-dialog.tsx, features/resources/file-dialogs.tsx, features/projects/delete-project-dialog.tsx, features/settings/model-providers/remove-provider-dialog.tsx — the confirm-first pattern this leaves
- ui-packages/web/PRODUCT.md — "Prefer familiar controls, compact layout, and reversible actions for ordinary users"
- Ask before deleting a conversation — every other destructive action confirms, but History's Delete removes it on the first tap #171 — the same first-tap delete, fixed for conversations
- Say at project deletion that its memory notes go too — the dialog counts files, attachments and conversations, while the notes the reader asked the assistant to keep leave uncounted #248, Say at file removal when it deletes the only copy — the dialog promises 'the original file on your computer will not change' even for a note written in this browser #257 — the memory-notes and only-copy disclosure family this completes
Activity
bencode commentedon Oct 27, 2026
Independent review — posted by the scheduled issue-reviewer loop, independent of the authoring session.
Evidence audit: all citations confirmed on main (
dbf9cb6).memory-row.tsx:146-154✓ Delete is an always-visible text button directly beside Edit,onClick→act(() => removeMemories([entry.id]), …)— first tap deletes, no confirm, no undo.ConfirmationDialoganywhere infeatures/memory, while 11 other files use it — all four cited dialogs exist (delete-conversation-dialog.tsx,file-dialogs.tsx,delete-project-dialog.tsx,remove-provider-dialog.tsx); Ask before deleting a conversation — every other destructive action confirms, but History's Delete removes it on the first tap #171 and Ask before removing a model provider — the dialog's only destructive control drops the stored key, address and chosen models on the first tap #213 are closed exactly as described, plus Ask before an update replaces edits made in this browser — a read-only source's Update discards them on the first tap today, the only destructive action without a confirmation #212 (update replacing edits) — the confirm-first pattern is real and memory is the outlier.memory-row.tsx:78-89✓ the "Keep in mind in every conversation" checkbox;memory-page.tsx:105-109✓ the "remember…" sentence;tools.ts:105-115✓ the assistant'sforgettool — proposal bullet 3 is right to leave it alone (it already runs on an explicit request, andremoveMemoriesis shared plumbing, so gating the dialog — not the store — is the correct scope).PRODUCT.md:39✓ "Prefer familiar controls, compact layout, and reversible actions for ordinary users."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.
bencode commentedon Oct 30, 2026
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.memory-row.tsx:147-155— Delete still a plain text-button, first tapremoveMemories([entry.id]), no confirm, no undo;:78-89the "Keep in mind in every conversation" checkbox;memory-page.tsx:105-109the "remember…/forget…" sentence;memory/tools.ts:105-115the assistant'sforgettool (explicit request, shared plumbing — leaving it ungated stays right);PRODUCT.md:39✓.ConfirmationDialogis still absent fromfeatures/memorywhile 11 non-test files use it, including all four cited (delete-conversation-dialog.tsx,file-dialogs.tsx,delete-project-dialog.tsx,remove-provider-dialog.tsx) — memory remains the outlier against the Ask before deleting a conversation — every other destructive action confirms, but History's Delete removes it on the first tap #171/Ask before an update replaces edits made in this browser — a read-only source's Update discards them on the first tap today, the only destructive action without a confirmation #212/Ask before removing a model provider — the dialog's only destructive control drops the stored key, address and chosen models on the first tap #213 confirm-first line.ConfirmationDialog-in-memory grep finds nothing. Correct not-implemented verdict.--
bencode commentedon Nov 5, 2026
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.
ConfirmationDialogstill appears nowhere underfeatures/memory(while the four cited confirm-first dialogs still use it).memory-row.tsx:147-155first-tap Delete stands as cited.grep -rln ConfirmationDialoggate. Correct not-implemented verdict.bencode commentedon Nov 7, 2026
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.memory-row.tsx:147-155— Delete still a plain text-button directly beside Edit, first tapremoveMemories([entry.id]), no confirm, no undo;:78-89the "Keep in mind in every conversation" checkbox;memory-page.tsx:105-109the "remember…" sentence; the assistant'sforgettool unchanged atfeatures/memory/tools.ts:100-101(explicit request — leaving it ungated stays right).ConfirmationDialogstill appears nowhere underfeatures/memorywhile all four cited dialogs (delete-conversation-dialog.tsx,file-dialogs.tsx,delete-project-dialog.tsx,remove-provider-dialog.tsx) still use it — memory remains the confirm-first outlier against Ask before deleting a conversation — every other destructive action confirms, but History's Delete removes it on the first tap #171/Ask before an update replaces edits made in this browser — a read-only source's Update discards them on the first tap today, the only destructive action without a confirmation #212/Ask before removing a model provider — the dialog's only destructive control drops the stored key, address and chosen models on the first tap #213.ConfirmationDialog-in-memory grep finds nothing (fails silently, exit 1 at the first line). Correct not-implemented verdict.Verdict unchanged; the standing sharpening remains: gate that the dialog names the note, so a bare generic confirm cannot satisfy the verification.
bencode commentedon Nov 11, 2026
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.memory-row.tsx:150-154— Delete still a first-tapremoveMemories([entry.id])with no confirm or undo;ConfirmationDialogstill absent fromfeatures/memory(0 matches) while 11 non-test files use it, including all four cited dialogs (delete-conversation-dialog.tsx,file-dialogs.tsx,delete-project-dialog.tsx,remove-provider-dialog.tsx); the "Say "remember…" in a conversation" copy still atmemory-page.tsx:106.