Summary
openclaw memory index --agent main completely ignores session files during sync, only processing memory/*.md files even when sources includes "sessions".
Steps to reproduce
- Have session files in
~/.openclaw/agents/main/sessions/
- Ensure config has
sources: ["memory", "sessions"] and experimental.sessionMemory: true
- Run
openclaw memory index --agent main --verbose
- Observe output shows only
[memory] sync: indexing memory files
- No
[memory] sync: indexing session files appears
Expected behavior
Indexer should detect all session files in the sessions directory and embed them into the vector store.
Actual behavior
Indexer skips sessions entirely. Output shows:
[memory] sync: indexing memory files
Memory index updated (main).
Session count remains at 0 even with 3600+ session files on disk.
OpenClaw version
2026.2.14
Operating system
Linux 6.17.0-14-generic (x64)
Install method
npm global
Logs, screenshots, and evidence
$ openclaw memory status
Sources: memory, sessions
Indexed: 16/3622 files · 104 chunks
By source:
memory · 16/16 files · 104 chunks
sessions · 0/3606 files · 0 chunks
$ openclaw memory index --agent main --verbose
[memory] sync: indexing memory files
Memory index updated (main).
Config excerpt:
"memorySearch": {
"enabled": true,
"sources": ["memory", "sessions"],
"experimental": { "sessionMemory": true }
}
Impact and severity
- Affected: All users with session memory enabled
- Severity: High - memory search returns incomplete/empty results
- Frequency: 100% repro
- Consequence: Agent loses ability to recall conversation history from sessions
Additional information
- Session files exist at correct path (
~/.openclaw/agents/main/sessions/*.jsonl)
- Database shows sources include "sessions"
- Deleting DB and re-running index produces same result
- Both
--force and without --force behave identically
- Workaround: Restore from backup if available
Summary
openclaw memory index --agent maincompletely ignores session files during sync, only processing memory/*.md files even when sources includes "sessions".Steps to reproduce
~/.openclaw/agents/main/sessions/sources: ["memory", "sessions"]andexperimental.sessionMemory: trueopenclaw memory index --agent main --verbose[memory] sync: indexing memory files[memory] sync: indexing session filesappearsExpected behavior
Indexer should detect all session files in the sessions directory and embed them into the vector store.
Actual behavior
Indexer skips sessions entirely. Output shows:
Session count remains at 0 even with 3600+ session files on disk.
OpenClaw version
2026.2.14
Operating system
Linux 6.17.0-14-generic (x64)
Install method
npm global
Logs, screenshots, and evidence
Impact and severity
Additional information
~/.openclaw/agents/main/sessions/*.jsonl)--forceand without--forcebehave identically