The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(cli): make the #120991 standalone-warning test non-vacuous (salvage #120997)
teknium1a17f919afb47
diff --git a/hermes_cli/gateway_multiplex_mode.py b/hermes_cli/gateway_multiplex_mode.pyindex 1029374992f..5f00f4b2b3e 100644--- a/hermes_cli/gateway_multiplex_mode.py+++ b/hermes_cli/gateway_multiplex_mode.py@@ -342,4 +342,3 @@ def recorded_standalone_warning_lines() -> list[str]:if not reason:return []return standalone_warning_lines(MultiplexDecision(False, "guard", str(reason)))-diff --git a/tests/hermes_cli/test_gateway_multiplex_mode.py b/tests/hermes_cli/test_gateway_multiplex_mode.pyindex 66a9b7c05e4..fe7ae4299a9 100644--- a/tests/hermes_cli/test_gateway_multiplex_mode.py+++ b/tests/hermes_cli/test_gateway_multiplex_mode.py@@ -194,6 +194,9 @@ def test_recorded_standalone_warning_lines_suppressed_for_dead_or_stale_record(tstate_file = tmp_path / "gateway_state.json"monkeypatch.setattr(gw_status, "_get_runtime_status_path", lambda: state_file)+ # A multi-profile host: without unserved profiles the box is empty regardless of liveness,+ # so the dead/stale cases below would pass vacuously.+ monkeypatch.setattr(mode, "unserved_profiles", lambda: ["other_profile"])# 1. Stopped gatewaystate_file.write_text(json.dumps({@@ -233,7 +236,6 @@ def test_recorded_standalone_warning_lines_suppressed_for_dead_or_stale_record(t}), encoding="utf-8")monkeypatch.setattr(gw_status, "runtime_status_pid_is_live", lambda r: True)monkeypatch.setattr(gw_status, "runtime_status_is_stale", lambda r: False)- monkeypatch.setattr(mode, "unserved_profiles", lambda: ["other_profile"])lines = mode.recorded_standalone_warning_lines()assert any("STANDALONE" in line for line in lines)assert any("real standalone reason" in line for line in lines)