From ad852c1642e4afd4168c39a7b5bf889f96f4410e Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sat, 6 Jun 2026 20:32:13 +0200 Subject: [PATCH] fix(archivar): doc_store writes to fact_store_path from room_map MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DocumentationStore() now uses RoomMap.fact_store_path instead of the hardcoded ~/.hermes/.../archivar_docs default. One-line change — the doc_store is initialized after _load_room_map() so room_map is available. This allows per-deployment configuration: in production, fact_store_path points to /data/Wissensdatenbank/0100 Inbox so FAKT messages land in the Obsidian vault's inbox for StartObsidian integration. --- plugin/archivar/adapter_integration.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/archivar/adapter_integration.py b/plugin/archivar/adapter_integration.py index a11d244..0a22aca 100644 --- a/plugin/archivar/adapter_integration.py +++ b/plugin/archivar/adapter_integration.py @@ -112,11 +112,12 @@ class ArchivarMessageHandler: embedding_client=embedding_client, llm_client=llm_client ) - self._doc_store = DocumentationStore() - # Load RoomMap (try JSON first, fall back to legacy env vars) self._room_map = self._load_room_map() + # doc_store writes to fact_store_path from room_map + self._doc_store = DocumentationStore(base_dir=self._room_map.fact_store_path) + # Cache for subscribed room IDs (set later via set_subscribed_room_ids) self._subscribed_room_ids_cache: Optional[set] = None