The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(constants): match sibling home-resolution null-check idiom
kshitijk4poorb7f517320fa0
diff --git a/hermes_constants.py b/hermes_constants.pyindex 1dd846884d3..d5d4d256441 100644--- a/hermes_constants.py+++ b/hermes_constants.py@@ -1061,7 +1061,7 @@ def get_managed_system(home: str | Path | None = None) -> str | None:(:func:`apply_secure_dir_policy` at boot, before ``--profile`` re-homes the process).Defaults to the effective home."""marker = os.getenv("HERMES_MANAGED", "").strip().lower() or None- managed_marker = (Path(home) if home else get_hermes_home()) / ".managed"+ managed_marker = (Path(home) if home is not None else get_hermes_home()) / ".managed"if marker is None and managed_marker.exists():try:marker = managed_marker.read_text(encoding="utf-8", errors="replace").strip().lower()