The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(agent): follow the renamed interrupt placeholder in the send-time pad tests
kshitijk4poorc2583b58345c
diff --git a/tests/agent/test_partial_stream_finish_reason.py b/tests/agent/test_partial_stream_finish_reason.pyindex 6972e570b07..0add0d956ed 100644--- a/tests/agent/test_partial_stream_finish_reason.py+++ b/tests/agent/test_partial_stream_finish_reason.py@@ -807,7 +807,8 @@ class TestSendTimeEmptyAssistantPad:and not m.get("tool_calls")),None,)- assert stub is not None and stub["content"] == "[response interrupted]"+ from agent.agent_runtime_helpers import _INTERRUPTED_PLACEHOLDER+ assert stub is not None and stub["content"] == _INTERRUPTED_PLACEHOLDERdef test_tool_call_turn_not_padded_on_send(self, loop_agent):history = [@@ -895,7 +896,10 @@ class TestSendTimePadMultimodalSafety:"""Unit-shape check against the REAL owner: multimodal list content(the exact AttributeError shape) passes through untouched; a textlessstr turn is repaired; tool-call turns are exempt."""- from agent.agent_runtime_helpers import repair_empty_non_final_messages+ from agent.agent_runtime_helpers import (+ _INTERRUPTED_PLACEHOLDER,+ repair_empty_non_final_messages,+ )api_messages = [{"role": "assistant", "content": [{"type": "text", "text": "hi"}]},{"role": "assistant", "content": ""},@@ -904,7 +908,7 @@ class TestSendTimePadMultimodalSafety:]out = repair_empty_non_final_messages(api_messages)assert out[0]["content"] == [{"type": "text", "text": "hi"}]- assert out[1]["content"] == "[response interrupted]"+ assert out[1]["content"] == _INTERRUPTED_PLACEHOLDERassert out[2]["content"] == ""# input list untouched (repair is copy-on-write)assert api_messages[1]["content"] == ""diff --git a/tests/agent/test_steer.py b/tests/agent/test_steer.pyindex 80d1746bccc..84a8f6e3370 100644--- a/tests/agent/test_steer.py+++ b/tests/agent/test_steer.py@@ -774,7 +774,7 @@ class TestLegacyHiddenPlaceholderWireSubstitution:"""Projection-side half of #88955: rows persisted BEFORE the writer-side``api_content`` stamp are ``content=""`` + ``display_kind="hidden"`` withno sidecar. The send-time projection must give the WIRE copy the neutral- ``[response interrupted]`` payload so legacy sessions converge instead of+ interrupt-placeholder payload so legacy sessions converge instead ofre-healing forever — while the durable row stays hidden and empty."""def _loop_agent(self):diff --git a/tests/agent/test_thinking_only_sanitizer.py b/tests/agent/test_thinking_only_sanitizer.pyindex f6190fab722..f98001a26ab 100644--- a/tests/agent/test_thinking_only_sanitizer.py+++ b/tests/agent/test_thinking_only_sanitizer.py@@ -59,7 +59,7 @@ class TestIsThinkingOnlyAssistant:# on a model turn.healed = {"role": "assistant",- "content": "[response interrupted]",+ "content": "[interrupt: no assistant output for this turn]","_thinking_prefill": True,}assert AIAgent._is_thinking_only_assistant(healed)