The memory_forget tool fails when the memory is deleted but its cleanup is queued

Chiusa
#536 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@hskl18 ci sta già lavorando.

Dal 29/10/2026.

  • #537 di @hskl18 — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

area: memory bug good first issue priority: P2 size: S

Follow-up to #535 (#534). Since #535, DELETE /api/memories/{id} answers success with cleanup_pending: true when the memory is gone but a cleanup step failed and was queued for the hourly upkeep. The memory_forget tool the model uses calls the same delete, but it may still raise in that case. The chat then says the forget failed, although the memory is already gone.

Fix: make memory_forget match the route. Report success when the memory row is gone, and say the cleanup will finish later if you like. Keep a plain error for a failure before anything was deleted. Look at how #535 handles it in sentient/gateway/routes/memory.py, and reuse its helper in sentient/memory/facts.py.

Done when: a test makes the cleanup fail after the row is gone, and the tool returns success; the memory isn't listed; and the queued cleanup still runs.

Lingua principale
Python
Stelle
716
Fork
132
Merge medio
15h 24m
PR unite (30g)
211

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di existence-master/Sentient

Tutte le issue di existence-master/Sentient

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.