fix(honcho): respect HOME-anchored default profile fallback

This commit is contained in:
Billard 2026-04-08 16:03:15 +02:00 committed by Teknium
parent 4ca5e72444
commit d18618f48f
2 changed files with 35 additions and 8 deletions

View file

@ -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