[shepherding] `/tdai-memory-forget` — interactive redacted-preview memory deletion
Is this feature related to a problem? | 该功能需求是否与某个问题相关?请描述
Shepherding issue split out of #1070. Follow-up PR author: @kbob3687-hub. Targets
feat/server_team.
Background
The repository currently has no first-class "forget" command. Low-level
delete APIs exist (sdk/memory-core/.../memory-prompt.delete,
MemoryCore/.../skill-core.delete) but there's no UX layer that lets a
Pi user selectively delete memory entries with a redacted preview before
committing — which is exactly the pattern we want across clients, not
just Pi.
#1070 landed a working /tdai-memory-forget interactive flow. It's a
net-new UX primitive worth landing on its own so it can later be lifted
to CodeBuddy / Codex / OpenCode.
In scope
- Interactive
/tdai-memory-forgetcommand in the Pi adapter surface - Redacted preview (show what will be deleted, with sensitive fields masked) before commit
- Explicit confirm/cancel gate (destructive-op discipline — same pattern
as
mem:create-task/mem:update-task) - Wire-in point: Pi adapter command surface; underlying deletes reuse existing SDK/core APIs — no new low-level delete code
Out of scope
- Modifying
MemoryCoredelete semantics - Bulk / policy-based forgetting (that's a separate design)
- Lifting the command to other clients — do that in a follow-up once the Pi shape has stabilized
Acceptance criteria
- Preview shows redacted content, not raw memory
- Confirm required before any actual delete call
- Cancel path leaves memory untouched (unit test)
- Deletes are idempotent (double-confirm ≠ double-delete)
- No modifications to
handler.tsorsession/codebuddy/init.ts - Docs include one screenshot / transcript of the preview flow
Related
- Closes down the
/tdai-memory-forgetportion of #1070 - Reuses
memory-prompt.delete/skill-core.delete— no new deletion primitives should appear
Suggested branching
Branch name: pi-adapter/tdai-memory-forget against feat/server_team.
Describe the solution you'd like | 描述你期望的解决方案
/
Describe alternatives you've considered | 描述你考虑过的其他方案
No response
Additional context | 补充说明
No response
Source: TencentCloud/TencentDB-Agent-Memory