The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(agent): align skip-notice fixtures with the recorded-reason wording
kshitijk4poorc9bd9bb39ed5
diff --git a/tests/acp_adapter/test_events.py b/tests/acp_adapter/test_events.pyindex fa6fc634b10..bea54e75bb7 100644--- a/tests/acp_adapter/test_events.py+++ b/tests/acp_adapter/test_events.py@@ -307,5 +307,5 @@ class TestToolCallsAlwaysReachATerminalStatus:with self._patch() as rcts:rcts.return_value = MagicMock(spec=Future)progress("tool.completed", "terminal", None, None, is_error=True,- result="[Tool execution cancelled — terminal was skipped due to user interrupt]")+ result="[Tool execution cancelled — terminal was skipped. User sent a new message]")assert [c.args[1].status for c in mock_conn.session_update.call_args_list] == ["failed"]diff --git a/tests/agent/test_concurrent_interrupt.py b/tests/agent/test_concurrent_interrupt.pyindex 4cb35695c0b..5cfa8379c57 100644--- a/tests/agent/test_concurrent_interrupt.py+++ b/tests/agent/test_concurrent_interrupt.py@@ -103,6 +103,7 @@ def test_concurrent_preflight_interrupt_skips_all(monkeypatch):all tools are skipped with cancellation messages."""agent = _make_agent(monkeypatch)agent._interrupt_requested = True+ agent._tool_interrupt_reason = "user sent a new message"tc1 = _FakeToolCall("tool_a", call_id="tc_a")tc2 = _FakeToolCall("tool_b", call_id="tc_b")@@ -112,8 +113,8 @@ def test_concurrent_preflight_interrupt_skips_all(monkeypatch):agent._execute_tool_calls_concurrent(msg, messages, "test_task")assert len(messages) == 2- assert "skipped due to user interrupt" in messages[0]["content"]- assert "skipped due to user interrupt" in messages[1]["content"]+ assert "User sent a new message" in messages[0]["content"]+ assert "User sent a new message" in messages[1]["content"]# _invoke_tool should never have been calledagent._invoke_tool.assert_not_called()