The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(ux): concurrent-update refusal uses main's plain-language wording
ethernet6ae7cf431a33
diff --git a/hermes_cli/update_lock.py b/hermes_cli/update_lock.pyindex acfbbc36395..e2e32d8c877 100644--- a/hermes_cli/update_lock.py+++ b/hermes_cli/update_lock.py@@ -169,13 +169,16 @@ def read_live_update(*, path: Path | None = None) -> UpdateHolder | None:def describe_holder(holder: UpdateHolder | None) -> str:+ """One-line, user-facing explanation of who holds the update lock."""minutes, seconds = divmod(int(max(0 if holder is None else holder.age_seconds, 0)), 60)elapsed = f"{minutes}m {seconds}s" if minutes else f"{seconds}s"+ who = f", process {holder.pid}" if holder else ""return (- f"✗ Another Hermes update is already running {f'(PID {holder.pid})' if holder else ''}, "- f"started {elapsed} ago).\n"+ f"✗ Another Hermes update is already running (started {elapsed} ago{who}).\n""\n"- " Two updates running at once can corrupt Hermes. Wait for the update to finish, then try again."+ " Running two at once would corrupt the install. Wait for it to finish\n"+ " (watch `hermes logs`), or close the Desktop/dashboard window that\n"+ " started it, then run `hermes update` again.")diff --git a/tests/hermes_cli/test_ux_messages_startup.py b/tests/hermes_cli/test_ux_messages_startup.pyindex 27cd984aed6..66ab3bbe67e 100644--- a/tests/hermes_cli/test_ux_messages_startup.py+++ b/tests/hermes_cli/test_ux_messages_startup.py@@ -145,16 +145,19 @@ def test_missing_dashboard_deps_point_at_hermes_update():from hermes_cli.main_dep_hints import missing_optional_deps_messagetext = missing_optional_deps_message("dashboard", "its web-server packages", "all")- assert "hermes update" in text- assert "-m pip install -e '.[all]'" in text+ assert "hermes pm install" in text+ assert "hermes pm repair" in text+ assert "pip install" not in textassert "metadata" not in text-def test_missing_node_message_names_cli_fallback(monkeypatch, capsys):+def test_missing_node_message_names_cli_fallback(monkeypatch, capsys, tmp_path):from hermes_cli import main_tui_launch as _tui- monkeypatch.setattr("hermes_constants.find_node_executable", lambda _b: None)- monkeypatch.setattr("hermes_cli.dep_ensure.ensure_dependency", lambda _n: False, raising=False)+ from types import SimpleNamespace++ # PM resolves the runtime; an environment without node on its PATH is the miss.+ monkeypatch.setattr("pm.ensure", lambda name, **kw: SimpleNamespace(env={"PATH": str(tmp_path)}))monkeypatch.delenv("HERMES_NODE", raising=False)with pytest.raises(SystemExit):_tui._tui_node_bin("node")