fix(streaming): surface provider auth failures in chat (#5121)

This commit is contained in:
Rod Boev 2026-06-28 13:26:57 -04:00
parent 5f02189939
commit ca4fe4e54b

View file

@ -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():