mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-06 02:41:48 +00:00
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:
parent
1964b0565b
commit
c0300575c1
1 changed files with 2 additions and 1 deletions
|
|
@ -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():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue