fix: stream internal model calls with idle timeouts (#5730)

* fix: stream internal model calls with idle timeouts

* fix(providers): reject streams without terminal events
This commit is contained in:
chengyongru authored and GitHub committed 2026-09-11 13:06:43 +08:00
1 parent aeb7b207d7
commit 73410e0217
60 files changed
+815 -795

No files matched your search

@@ -127,7 +127,10 @@ async def test_codex_stream_ignores_invalid_idle_timeout_env(monkeypatch) -> Non
seen: dict[str, float] = {}
def handler(request: httpx.Request) -> httpx.Response:
return httpx.Response(200, request=request)
return httpx.Response(
200, request=request,
text='data: {"type":"response.completed","response":{"status":"completed"}}\n\n',
)
def fake_client(*, timeout: float, verify: bool) -> httpx.AsyncClient:
seen["timeout"] = timeout