The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(openviking): correct environment handling explanations
ehz0ah2854fab46c7a
diff --git a/plugins/memory/openviking/__init__.py b/plugins/memory/openviking/__init__.pyindex f9ea8372985..74a5a8d5aa4 100644--- a/plugins/memory/openviking/__init__.py+++ b/plugins/memory/openviking/__init__.py@@ -1549,10 +1549,11 @@ def _start_local_openviking_server(endpoint: str) -> tuple[str, str]:try:log_path.parent.mkdir(parents=True, exist_ok=True)# Do not let the server child inherit this process's PYTHONPATH.- # On a Hermes install PYTHONPATH points at the Hermes venv- # site-packages, so openviking-server would import aiohttp and- # friends from the Hermes venv instead of its own (its venv's- # site-packages are shadowed because PYTHONPATH precedes them) —+ # The Hermes Desktop backend can include the Hermes venv's+ # site-packages in PYTHONPATH. If inherited, openviking-server would+ # import aiohttp and friends from the Hermes venv instead of its own+ # (its venv's site-packages are shadowed because PYTHONPATH precedes+ # them) —# and on Windows the loaded DLLs then lock the Hermes venv,# aborting `hermes update` with access-denied on .pyd files.# Strip PYTHONPATH so the server resolves packages from its owndiff --git a/tests/plugins/memory/test_openviking_provider.py b/tests/plugins/memory/test_openviking_provider.pyindex ad1a96d47e9..4154e699e4c 100644--- a/tests/plugins/memory/test_openviking_provider.py+++ b/tests/plugins/memory/test_openviking_provider.py@@ -1748,8 +1748,8 @@ class TestOpenVikingEnvWriter:_write_env_vars(env, {"OPENAI_API_KEY": "new"})lines = [l for l in env.read_text(encoding="utf-8-sig").splitlines() if l]- # The stale value must be gone, not shadowed by an appended duplicate:- # .env loaders keep the first occurrence, so a duplicate silently wins.+ # The stale value must be gone, not left as a duplicate. Hermes and+ # python-dotenv use the last occurrence, but the file must have one value.assert lines.count("OPENAI_API_KEY=new") == 1assert not any(l.endswith("=old") for l in lines)assert "OTHER=1" in lines