From c0300575c19f23aa8ed0ad067bb4faa20aa1b722 Mon Sep 17 00:00:00 2001 From: Clooooode Date: Sun, 3 May 2026 11:39:58 +1200 Subject: [PATCH] fix(kanban): use get_default_hermes_root() in list_profiles_on_disk Path.home() / ".hermes" / "profiles" breaks custom-root deployments (e.g. HERMES_HOME=/opt/data). Switch to get_default_hermes_root() so profile discovery is consistent with kanban_db_path() and workspaces_root() fixed in #18985. Fixes #19017. Related to #18442, #18985. --- hermes_cli/kanban_db.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hermes_cli/kanban_db.py b/hermes_cli/kanban_db.py index d8e2e861ba..98ee4828d3 100644 --- a/hermes_cli/kanban_db.py +++ b/hermes_cli/kanban_db.py @@ -2732,7 +2732,8 @@ def list_profiles_on_disk() -> list[str]: ``config.yaml`` — a bare dir without config isn't a real profile. """ try: - home = Path.home() / ".hermes" / "profiles" + from hermes_constants import get_default_hermes_root + home = get_default_hermes_root() / "profiles" except Exception: return [] if not home.is_dir():