fix(config): use parents[3] for CORE_REPO_ROOT and check cwd/workspace.toml so hs-doctor resolves outside /workspace (v1.2.0)

This commit is contained in:
Hermes Agent committed 2026-11-30 00:06:54 +00:00
1 parent fff554e304
commit d81e2f508f
2 files changed
+7 -1

No files matched your search

+2 -1
View File
@@ -13,7 +13,7 @@ from dataclasses import dataclass, field
from pathlib import Path
from typing import Any
CORE_REPO_ROOT = Path(__file__).resolve().parents[2]
CORE_REPO_ROOT = Path(__file__).resolve().parents[3]
WORKSPACE_ROOT = CORE_REPO_ROOT.parent
USER_WORKSPACE_TOML = Path.home() / ".config" / "hyperstitionstud.io" / "workspace.toml"
@@ -78,6 +78,7 @@ def load_workspace_config(
candidates.append(Path(env_p))
candidates.extend([
ws_root / "workspace.toml",
Path.cwd() / "workspace.toml",
USER_WORKSPACE_TOML,
Path("/workspace/workspace.toml"),
])