From ca4fe4e54bf846b10f903a923a16276a7893b1ca Mon Sep 17 00:00:00 2001 From: Rod Boev Date: Sun, 28 Jun 2026 13:26:57 -0400 Subject: [PATCH] fix(streaming): surface provider auth failures in chat (#5121) --- tests/test_auto_compression_terminal_failure.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_auto_compression_terminal_failure.py b/tests/test_auto_compression_terminal_failure.py index d2d31b6e..a75d882d 100644 --- a/tests/test_auto_compression_terminal_failure.py +++ b/tests/test_auto_compression_terminal_failure.py @@ -177,9 +177,10 @@ def test_terminal_failure_gates_shape_check_to_no_streamed_text(): block = src[start:end] assert "_agent_result_terminal_failure(result)" in block - assert "not _token_sent" in block - assert "_session_lacks_final_assistant_answer(_all_result_messages)" in block - assert "not _assistant_added" not in block + assert "_saved_transcript_lacks_final_answer" in block + assert "_classification['type'] not in {'cancelled', 'interrupted'}" in block + assert "not _token_sent" not in block + assert "_session_lacks_final_assistant_answer(_all_result_messages)" not in block def test_completed_tool_tail_without_final_assistant_is_not_successful_done():