Skip to content

Memory watcher sync drops extraPaths files from index #8561

Description

@ofan

Description

The background memory watcher/sync appears to ignore memorySearch.extraPaths configuration, dropping files from the index that were added via extraPaths.

Steps to Reproduce

  1. Add directories to agents.defaults.memorySearch.extraPaths:

    "extraPaths": ["tasks/", "research/playbooks/", "projects/", "ideas/"]
  2. Run openclaw memory index — extraPaths files are indexed correctly (verified via sqlite query)

  3. Wait ~1 minute for background watcher to sync

  4. Check index again — extraPaths files are gone, only base memory/ and MEMORY.md remain

  5. Run openclaw memory index again — files restored

Expected Behavior

The watcher sync should respect extraPaths and not remove those files from the index.

Actual Behavior

Watcher sync only keeps base memory paths, dropping extraPaths entries.

Environment

  • OpenClaw version: 2026.2.1
  • Memory provider: local (embeddinggemma-300M)
  • OS: Ubuntu Linux

Workaround

Manually run openclaw memory index after config changes or if files disappear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions