Skip to content

Consolidation never triggers — threads may not be closing #41

@G9000

Description

@G9000

Problem

The health check shows No consolidation history, meaning memory extraction has never run. Consolidation only fires via on_thread_close() in api/routes/threads.py. If the desktop UI never explicitly closes threads (e.g., user just creates new ones), consolidation never triggers and the memory store stays permanently empty.

Evidence

Agent trace from 2026-03-31: recall_memory returned nothing for a term the user expected to be remembered. Health check confirmed zero consolidation runs ever.

Investigation needed

  • Verify whether the desktop app calls the thread close endpoint
  • Consider auto-closing threads on inactivity (e.g., after N minutes idle)
  • Consider triggering consolidation on thread switch, not just explicit close

Files

  • apps/server/src/anima_server/api/routes/threads.py (lines 76-82, 131-137)
  • apps/server/src/anima_server/services/agent/eager_consolidation.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions