From 95493e228ebaefb6901b80b5eaf6e1593eaf4455 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E5=AE=98?= Date: Wed, 8 Apr 2026 17:21:59 +0800 Subject: [PATCH] fix(hindsight): add missing get_hermes_home import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Import hermes_constants.get_hermes_home at module level so it is available in _start_daemon() when local mode starts the embedded daemon. Previously the import was only inside _load_config(), causing NameError when _start_daemon() referenced get_hermes_home(). Fixes #5993 Co-Authored-By: 史官 --- plugins/memory/hindsight/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/memory/hindsight/__init__.py b/plugins/memory/hindsight/__init__.py index 51feb3cb610..199a7dd5cd1 100644 --- a/plugins/memory/hindsight/__init__.py +++ b/plugins/memory/hindsight/__init__.py @@ -23,6 +23,8 @@ import json import logging import os import threading + +from hermes_constants import get_hermes_home from typing import Any, Dict, List from agent.memory_provider import MemoryProvider @@ -142,7 +144,6 @@ def _load_config() -> dict: 3. Environment variables """ from pathlib import Path - from hermes_constants import get_hermes_home # Profile-scoped path (preferred) profile_path = get_hermes_home() / "hindsight" / "config.json"