From 21564d22dd4317a657176452ca5d1db6504e7151 Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Sat, 3 Oct 2026 10:04:08 -0700 Subject: [PATCH] fix(plugins): model-provider plugins load under plugins.isolation: host on Windows The credential-free profile extraction child got HOME but not USERPROFILE. Windows resolves Path.home() from USERPROFILE only, so the child exited with "Could not determine home directory" and every user model-provider plugin was silently dropped under host isolation. Reported-by: Enough1122 --- hermes_cli/plugin_host_profiles.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hermes_cli/plugin_host_profiles.py b/hermes_cli/plugin_host_profiles.py index 9ea3bf9402..8bb600ee93 100644 --- a/hermes_cli/plugin_host_profiles.py +++ b/hermes_cli/plugin_host_profiles.py @@ -82,7 +82,9 @@ def _extract(plugin_dir: Path, module_name: str) -> Dict[str, Any]: from hermes_constants import get_hermes_home repo_root = str(Path(__file__).resolve().parents[1]) env = {key: os.environ[key] for key in ("PATH", "LANG", "LC_ALL", "TZ", "SYSTEMROOT") if key in os.environ} - env.update(HOME=str(Path.home()), HERMES_HOME=str(get_hermes_home()), PYTHONPATH=repo_root, + # Windows resolves Path.home() from USERPROFILE, never HOME: without it the child cannot start. + env.update(HOME=str(Path.home()), USERPROFILE=str(Path.home()), HERMES_HOME=str(get_hermes_home()), + PYTHONPATH=repo_root, **{HOST_PROCESS_ENV: "1"}) argv = [*host_launcher(), sys.executable, "-m", "hermes_cli.plugin_host_child", "--extract-profiles", str(plugin_dir), module_name]