From 88bba31b7d652b9bc9a5f85fd9d24326611b8f1e Mon Sep 17 00:00:00 2001 From: Teknium Date: Mon, 6 Apr 2026 21:50:37 -0700 Subject: [PATCH] fix: use get_hermes_home() for profile-scoped storage, fix README - Replace hardcoded os.path.expanduser('~/.hermes') with get_hermes_home() from hermes_constants for profile isolation - Fix README echo command quoting error --- plugins/memory/supermemory/README.md | 2 +- plugins/memory/supermemory/__init__.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/memory/supermemory/README.md b/plugins/memory/supermemory/README.md index f34e4c997f..7c1310fe18 100644 --- a/plugins/memory/supermemory/README.md +++ b/plugins/memory/supermemory/README.md @@ -17,7 +17,7 @@ Or manually: ```bash hermes config set memory.provider supermemory -echo 'SUPERMEMORY_API_KEY=***' >> ~/.hermes/.env +echo 'SUPERMEMORY_API_KEY=your-key-here' >> ~/.hermes/.env ``` ## Config diff --git a/plugins/memory/supermemory/__init__.py b/plugins/memory/supermemory/__init__.py index f798b4a14f..ee2c35e6fa 100644 --- a/plugins/memory/supermemory/__init__.py +++ b/plugins/memory/supermemory/__init__.py @@ -399,7 +399,7 @@ class SupermemoryMemoryProvider(MemoryProvider): self._capture_mode = _DEFAULT_CAPTURE_MODE self._entity_context = _DEFAULT_ENTITY_CONTEXT self._api_timeout = _DEFAULT_API_TIMEOUT - self._hermes_home = os.path.expanduser("~/.hermes") + self._hermes_home = "" self._write_enabled = True self._active = False @@ -439,7 +439,8 @@ class SupermemoryMemoryProvider(MemoryProvider): _save_supermemory_config(sanitized, hermes_home) def initialize(self, session_id: str, **kwargs) -> None: - self._hermes_home = kwargs.get("hermes_home") or os.path.expanduser("~/.hermes") + from hermes_constants import get_hermes_home + self._hermes_home = kwargs.get("hermes_home") or str(get_hermes_home()) self._session_id = session_id self._turn_count = 0 self._config = _load_supermemory_config(self._hermes_home)