From 7487afbd99930b261b85c329d5457397fe9f46f3 Mon Sep 17 00:00:00 2001 From: Hermes Agent <127238744+teknium1@users.noreply.github.com> Date: Mon, 6 Jul 2026 03:20:22 -0700 Subject: [PATCH] =?UTF-8?q?test(gateway):=20update=20stale=20expectation?= =?UTF-8?q?=20=E2=80=94=20#31884=20surfaces=20retry=20hint=20for=20uninter?= =?UTF-8?q?rupted=20zero-call=20drops?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The PR predates #31884, which changed the non-interrupted api_calls==0 empty path from silence to a retry hint. Flip the contributed test to assert the current (correct) behavior. --- tests/gateway/test_tool_response_drop_recovery.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/gateway/test_tool_response_drop_recovery.py b/tests/gateway/test_tool_response_drop_recovery.py index ba983f36718..469f0341c3a 100644 --- a/tests/gateway/test_tool_response_drop_recovery.py +++ b/tests/gateway/test_tool_response_drop_recovery.py @@ -310,8 +310,10 @@ class TestPostStopInterruptSwallow: assert response == "" - def test_uninterrupted_zero_api_calls_stays_silent(self): - """No interrupt and no work — unchanged behavior.""" + def test_uninterrupted_zero_api_calls_surfaces_retry_hint(self): + """No interrupt and no work — #31884 (landed after this PR was + written) surfaces a retry hint instead of silence for the + generation-race drop.""" from gateway.run import _normalize_empty_agent_response agent_result = { @@ -323,7 +325,7 @@ class TestPostStopInterruptSwallow: response = _normalize_empty_agent_response(agent_result, "", history_len=10) - assert response == "" + assert "send it again" in response @pytest.mark.asyncio async def test_interrupt_and_clear_session_evicts_cached_agent(self):