The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(test): give the stale-abort atomicity test a display consumer so "hello" counts as delivered
teknium17242811de452
diff --git a/tests/agent/test_request_client_reuse_abort_races.py b/tests/agent/test_request_client_reuse_abort_races.pyindex 20a5d9afd2d..381ec7104cb 100644--- a/tests/agent/test_request_client_reuse_abort_races.py+++ b/tests/agent/test_request_client_reuse_abort_races.py@@ -205,6 +205,10 @@ def test_stale_abort_is_atomic_with_holder_read(monkeypatch):"""monkeypatch.setenv("HERMES_STREAM_STALE_TIMEOUT", "0.05")agent = _make_agent()+ # A display consumer, so "hello" counts as DELIVERED text: the death after+ # the stale kill is then a no-retry partial (one stream_error_cleanup close),+ # not an undelivered failure that retries on a fresh client.+ agent.stream_delta_callback = lambda text: Noneallow_finish = threading.Event()worker_close_reasons = []