Skip to content

The agent that grows with you

fix(honcho): use _host_block helper for dot-form legacy host key fallback (fixes #37436)

mohamedorigami-jpgc5f6f58d661c
diff --git a/plugins/memory/honcho/client.py b/plugins/memory/honcho/client.py
index d8ef74f22b2..8072c199567 100644
--- a/plugins/memory/honcho/client.py
+++ b/plugins/memory/honcho/client.py
@@ -1289,8 +1289,8 @@ def get_honcho_client(config: HonchoClientConfig | None = None) -> Honcho:
# key that would break a no-auth local server, so we substitute the
# SDK's required-non-empty placeholder unless the host block opts in.
_raw = config.raw or {}
- _host_block = (_raw.get("hosts") or {}).get(config.host, {})
- _host_has_key = bool(_host_block.get("apiKey"))
+ _host_block_local = _host_block(_raw, config.host) # uses dot-form legacy fallback (#37436)
+ _host_has_key = bool(_host_block_local.get("apiKey"))
effective_api_key = config.api_key if _host_has_key else "local"
else:
effective_api_key = config.api_key