Files
xingzhou 474624a5c7 fix(network): guarded fetch callers can leave responses streaming (#111277)
* fix(network): release captured streams without waiting on their cleanup

End best-effort reader ownership before guarded request cleanup, while preserving explicit cancellation failures after cleanup. Simplify llama download reader ownership without changing transport abort policy.

Co-authored-by: zhang-guiping <zhang.guiping@xydigit.com>

* fix(network): preserve caller-owned response cleanup

Preserve cancellation for partially consumed media responses, type the captured response handoff, and clarify beta stream cleanup ownership.

* fix(tts): settle stream cancellation with request cleanup

Own binary-stream cleanup in the shared helper and remove duplicate provider release wrappers. Preserve explicit cancellation settlement and errors while allowing cleanup to abort retained capture branches.

Co-authored-by: zhang-guiping <zhang.guiping@xydigit.com>

* test(tts): preserve cancellation result tuple types

Keep both cancellation/release call orders while passing an explicit two-result tuple to Promise.allSettled. Preserve the existing outcome and error-identity assertions without casts or non-null assertions.

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-27 11:25:14 -07:00
..