The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(agent): pin the visible-banner branch of close_interrupted_tool_sequence
kshitijk4poor1475b45dad23
diff --git a/tests/agent/test_close_interrupted_tool_sequence.py b/tests/agent/test_close_interrupted_tool_sequence.pyindex 23f7295c330..ecf5aa59907 100644--- a/tests/agent/test_close_interrupted_tool_sequence.py+++ b/tests/agent/test_close_interrupted_tool_sequence.py@@ -49,6 +49,11 @@ def test_closing_makes_next_user_message_alternation_safe():assert isinstance(messages[-1]["timestamp"], float)follow_on = messages + [{"role": "user", "content": "they do! increase the timing"}]_assert_no_tool_then_user(follow_on)+ # A caller banner is the turn's only explanation: it stays visible, unhidden.+ bannered = _tool_tail()+ assert close_interrupted_tool_sequence(bannered, "Response truncated.") is True+ assert bannered[-1]["content"] == "Response truncated."+ assert "display_kind" not in bannered[-1]def test_assistant_tail_is_left_untouched():