diff --git a/nix/tui.nix b/nix/tui.nix index 80696a0626a3..c49a0c087a03 100644 --- a/nix/tui.nix +++ b/nix/tui.nix @@ -1,7 +1,7 @@ # nix/tui.nix — Hermes TUI (Ink/React) compiled with tsc and bundled { pkgs, hermesNpmLib, ... }: let - npm = hermesNpmLib.mkNpmPassthru { dirs = [ "ui-tui" ]; }; + npm = hermesNpmLib.mkNpmPassthru { dirs = [ "ui-tui" "apps/shared" ]; }; packageJson = builtins.fromJSON (builtins.readFile (npm.src + "/ui-tui/package.json")); version = packageJson.version; diff --git a/plugins/memory/honcho/session.py b/plugins/memory/honcho/session.py index 97bdb3b35eed..b057591f7cf8 100644 --- a/plugins/memory/honcho/session.py +++ b/plugins/memory/honcho/session.py @@ -16,6 +16,18 @@ if TYPE_CHECKING: from honcho import Honcho +# Workaround for issue #67013: newer Honcho servers send fields (like observe_others) +# that the honcho-ai<=2.2.0 SDK strictly rejects. We monkeypatch the Pydantic models +# to ignore extra fields until the upstream SDK is updated on PyPI. +try: + from honcho.api_types import PeerConfig, PeerResponse + if PeerConfig.model_config.get("extra") == "forbid": + PeerConfig.model_config["extra"] = "ignore" + PeerConfig.model_rebuild(force=True) + PeerResponse.model_rebuild(force=True) +except ImportError: + pass + logger = logging.getLogger(__name__) # Sentinel to signal the async writer thread to shut down