The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test: gateway chat probes follow the REPL banner/prompt and the yolo create field
teknium1d7e69e63c0eb
diff --git a/tests/gateway/fixtures/local_session_peer.py b/tests/gateway/fixtures/local_session_peer.pyindex bc13c689795..33462c094ff 100644--- a/tests/gateway/fixtures/local_session_peer.py+++ b/tests/gateway/fixtures/local_session_peer.py@@ -48,7 +48,7 @@ async def probe(peer, target, kind):try:a = await connect()for payload in ({'source': 'telegram'}, {'source': 'cron'}, {'internal': True},- {'profile': 'foreign'}, {'cwd': 'relative'}, {'yolo': True}):+ {'profile': 'foreign'}, {'cwd': 'relative'}, {'checkpoints': True}):denied = await rpc(a, 'session.create', **payload)assert 'error' in denied, deniedbefore_sessions = set(authority.sessions)diff --git a/tests/hermes_cli/test_gateway_chat_native.py b/tests/hermes_cli/test_gateway_chat_native.pyindex c0ce426b41a..7543e47b3f9 100644--- a/tests/hermes_cli/test_gateway_chat_native.py+++ b/tests/hermes_cli/test_gateway_chat_native.py@@ -103,7 +103,7 @@ finally:time.sleep(.1)assert descriptor.get("state") == "ready", log_path.read_text()launch("--cli", "chat")- first = until("You>")+ first = until("Welcome to Hermes Agent")sid = next(line.split("Session: ", 1)[1].strip() for line in first.splitlines() if "Session: " in line)tmux("send-keys", "-t", "chat", "WS_SHARED", "Enter")fresh = until("LOCAL_ACK_WS_SHARED")diff --git a/tests/hermes_cli/test_gateway_chat_unknown.py b/tests/hermes_cli/test_gateway_chat_unknown.pyindex 363ecad03c4..d881d11e845 100644--- a/tests/hermes_cli/test_gateway_chat_unknown.py+++ b/tests/hermes_cli/test_gateway_chat_unknown.py@@ -44,6 +44,9 @@ async def test_resume_displays_unknown_and_queue_then_discards_with_refreshed_geclass Input:submitted = False+ def __init__(self, **_kwargs):+ pass+async def prompt_async(self, _prompt):if self.submitted:return "/quit"@@ -56,7 +59,9 @@ async def test_resume_displays_unknown_and_queue_then_discards_with_refreshed_geassert any(queued_id in line and "queued" in line.lower() for line in output.err.splitlines())assert "waiting" in output.err.lower()assert "without replay" in output.err.lower()- assert output.out == ""+ # stdout holds the REPL banner only: no transcript or replay is rendered before+ # the operator has chosen what to do with the unknown admission.+ assert output.out.strip().splitlines() == ["Welcome to Hermes Agent! Type your message or /help for commands."]assert calls == [("runtime.describe", {}),("session.resume", {"session_id": snapshot["stored_session_id"]}),diff --git a/tests/hermes_cli/test_gateway_startup_validation.py b/tests/hermes_cli/test_gateway_startup_validation.pyindex 6f40f118285..ae1718c77d5 100644--- a/tests/hermes_cli/test_gateway_startup_validation.py+++ b/tests/hermes_cli/test_gateway_startup_validation.py@@ -9,8 +9,8 @@ def test_invalid_options_are_reported_before_reading_profile(monkeypatch, capsysraise AssertionError("Unsupported launch read profile configuration")monkeypatch.setattr("hermes_cli.main._has_any_provider_configured", unexpected)- assert launch_gateway_chat(Namespace(yolo=True)) == 2- assert "--yolo" in capsys.readouterr().err+ assert launch_gateway_chat(Namespace(checkpoints=True)) == 2+ assert "--checkpoints" in capsys.readouterr().err# A bypass launch skips provider probing and the profile cost guard entirely.monkeypatch.setattr("hermes_cli.main._confirm_startup_expensive_model_override", lambda args: unexpected())from hermes_cli.gateway_client import GatewayClientError