From a053ec1c3d8216da7db338ceedafb20dd39c785d Mon Sep 17 00:00:00 2001 From: root Date: Sat, 28 Feb 2026 17:05:43 -0600 Subject: [PATCH] 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. --- .local_projects/true-recall-base/config.json | 14 ++++++++++++++ .../watcher/realtime_qdrant_watcher.py | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .local_projects/true-recall-base/config.json diff --git a/.local_projects/true-recall-base/config.json b/.local_projects/true-recall-base/config.json new file mode 100644 index 0000000..ad2b659 --- /dev/null +++ b/.local_projects/true-recall-base/config.json @@ -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" +} diff --git a/.local_projects/true-recall-base/watcher/realtime_qdrant_watcher.py b/.local_projects/true-recall-base/watcher/realtime_qdrant_watcher.py index 4d409f1..9fb6a3d 100644 --- a/.local_projects/true-recall-base/watcher/realtime_qdrant_watcher.py +++ b/.local_projects/true-recall-base/watcher/realtime_qdrant_watcher.py @@ -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