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.
This commit is contained in:
Clooooode 2026-05-03 11:39:58 +12:00 committed by Teknium
parent 1964b0565b
commit c0300575c1

View file

@ -2732,7 +2732,8 @@ def list_profiles_on_disk() -> list[str]:
``config.yaml`` a bare dir without config isn't a real profile. ``config.yaml`` a bare dir without config isn't a real profile.
""" """
try: try:
home = Path.home() / ".hermes" / "profiles" from hermes_constants import get_default_hermes_root
home = get_default_hermes_root() / "profiles"
except Exception: except Exception:
return [] return []
if not home.is_dir(): if not home.is_dir():