mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-18 04:41:56 +00:00
fix(honcho): respect HOME-anchored default profile fallback
This commit is contained in:
parent
4ca5e72444
commit
d18618f48f
2 changed files with 35 additions and 8 deletions
|
|
@ -21,6 +21,7 @@ from dataclasses import dataclass, field
|
|||
from pathlib import Path
|
||||
|
||||
from hermes_constants import get_hermes_home
|
||||
from hermes_cli.profiles import _get_default_hermes_home
|
||||
from typing import Any, TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
|
|
@ -73,7 +74,7 @@ def resolve_config_path() -> Path:
|
|||
return local_path
|
||||
|
||||
# Default profile's config — host blocks accumulate here via setup/clone
|
||||
default_path = Path.home() / ".hermes" / "honcho.json"
|
||||
default_path = _get_default_hermes_home() / "honcho.json"
|
||||
if default_path != local_path and default_path.exists():
|
||||
return default_path
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue