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

Cerrado
#536 2 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@hskl18 ya está trabajando en esto.

Desde el 29/10/2026.

  • #537 de @hskl18 — abierto

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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.

Lenguaje dominante
Python
Estrellas
718
Forks
135
Merge medio
16 h 34 min
PR fusionados (30 d)
215

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de existence-master/Sentient

Todos los issues de existence-master/Sentient

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.