The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(cli): the finite-chat receipt retry re-sends the CLI's per-turn fields by their wire names
Teknium15337dbf7f6c
diff --git a/tests/hermes_cli/test_finite_chat_delegation.py b/tests/hermes_cli/test_finite_chat_delegation.pyindex 0c02afbf279..3b4ebf551cb 100644--- a/tests/hermes_cli/test_finite_chat_delegation.py+++ b/tests/hermes_cli/test_finite_chat_delegation.py@@ -149,7 +149,10 @@ def test_finite_chat_joins_parallel_children_before_final_response(tmp_path, modassert payload["finite"] is Trueasync with websocket(home, desc) as ws:assert "result" in await rpc(ws, "session.resume", session_id=sid)- retry = dict(session_id=sid, input_id=request_id, **payload)+ # The row stores the committed admission; its ``cli_turn_v1`` block holds the per-turn CLI+ # fields under their wire names, so the retry re-sends exactly what the CLI submitted.+ wire = {key: value for key, value in payload.items() if key != "cli_turn_v1"}+ retry = dict(session_id=sid, input_id=request_id, **wire, **payload.get("cli_turn_v1", {}))assert (await rpc(ws, "prompt.submit", **retry))["result"]["status"] == "terminal"conflict = await rpc(ws, "prompt.submit", **{**retry, "finite": False})assert conflict["error"]["message"] == "admission_conflict"