You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
provider: unhandled rejection when SSE chunk-timeout cancels the fetch reader (suite red under Bun 1.4) #44943
Under Bun 1.4, reader.cancel() on the just-aborted fetch body rejects, leaving an unhandled promise rejection. In bun test this fails the running test even though its assertions passed:
(fail) chunkTimeout raises a response stream error when SSE body stalls
Raw stream semantics (read/timeout race, rejected pull) behave identically on 1.3.14 and 1.4.0 in isolation, so the failure only materialises through the full fetch → wrapSSE → ai-sdk path.
Fix direction: handle the cancellation result (reader.cancel(err).catch(() => {})). With that plus relaxing one load-sensitive PTY poll deadline, the full suite is green under both runtimes (3339 tests, 0 fail each).
Activity