fix: SESSIONS_DIR env var and config dimension docs

- SESSIONS_DIR now reads from OPENCLAW_SESSIONS_DIR env var with fallback
- Fixes hardcoded path issue reported by community
- config.json: add embedding_dimensions (1024) and notes field
- Update version to 1.1 in config.json

Validated 4x:
1. SESSIONS_DIR line correct
2. config.json syntax valid
3. Both files syntax OK
4. Env var logic tested

Thanks to Rob Whyte @ Fort Myers Brewing for the suggestion.
This commit is contained in:
root
2026-02-28 17:05:43 -06:00
parent 1c24618ad9
commit a053ec1c3d
2 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
{
"version": "1.1",
"description": "TrueRecall v1.1 - Memory capture with session rotation fix",
"components": ["watcher"],
"collections": {
"memories": "memories_tr"
},
"qdrant_url": "http://10.0.0.40:6333",
"ollama_url": "http://localhost:11434",
"embedding_model": "snowflake-arctic-embed2",
"embedding_dimensions": 1024,
"user_id": "rob",
"notes": "Ensure memories_tr collection is created with size=1024 for snowflake-arctic-embed2"
}

View File

@@ -26,7 +26,7 @@ EMBEDDING_MODEL = os.getenv("EMBEDDING_MODEL", "snowflake-arctic-embed2")
USER_ID = os.getenv("USER_ID", "rob")
# Paths
SESSIONS_DIR = Path("/root/.openclaw/agents/main/sessions")
SESSIONS_DIR = Path(os.getenv("OPENCLAW_SESSIONS_DIR", "/root/.openclaw/agents/main/sessions"))
# State
running = True