Skip to content

[Bug]: mem0 plugin 'ghost writes' - memory_add returns success but database remains empty #80340

Description

@HamzaHeikal2011

Description

The @mem0/openclaw-mem0 plugin is exhibiting 'ghost write' behavior. The memory_add tool returns a success message (e.g., 'Stored...'), but the underlying SQLite database remains empty.

Evidence

  1. Tool Output: memory_add returns success.
  2. Database State: Running sqlite3 ~/.mem0/vector_store.db 'SELECT count(*) FROM vectors;' consistently returns 0, even immediately after a perceived successful write.
  3. Migration Failure: A full migration of MEMORY.md and daily logs was attempted via sub-agent; while the sub-agent reported success, the DB remained empty.

Potential Relation

This may be related to #77822, where duplicate register() calls cause closure variables to be unsynchronized, potentially leading to the plugin writing to a volatile or incorrect instance of the memory manager.

Environment

  • OS: Linux
  • Plugin: openclaw-mem0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions