The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
chore: read .project-root BOM-tolerantly; drop a trailing blank line
teknium134f55df1af8d
diff --git a/hermes_cli/update_owning_install.py b/hermes_cli/update_owning_install.pyindex e73534abcc3..36d747c0b29 100644--- a/hermes_cli/update_owning_install.py+++ b/hermes_cli/update_owning_install.py@@ -54,7 +54,7 @@ def _pm_environment_owner(venv: Path) -> Path | None:return Nonetry:# pm.environments.record_activation_inputs writes it on every full install.- owner = Path((state / "inputs" / ".project-root").read_text(encoding="utf-8").strip())+ owner = Path((state / "inputs" / ".project-root").read_text(encoding="utf-8-sig").strip())except OSError:return Noneif install_key(owner) != state.name or not (owner / "hermes_cli" / "main.py").is_file():diff --git a/tests/hermes_cli/test_update_diverged_rescue_ref.py b/tests/hermes_cli/test_update_diverged_rescue_ref.pyindex 41b2b4010f5..11c3486e5fb 100644--- a/tests/hermes_cli/test_update_diverged_rescue_ref.py+++ b/tests/hermes_cli/test_update_diverged_rescue_ref.py@@ -148,4 +148,3 @@ def test_operational_ff_failure_preserves_git_error_without_reset(assert "HEAD is still an ancestor of origin/main" in outassert "Local history has diverged" not in outassert "git reset --hard" not in out-