Repository navigation
Commit ac3b15b
committed
fix(core): swallow SSE reader cancel rejection on chunk timeout
wrapSSE used `void reader.cancel(err)` on chunk timeout, which does not
attach a rejection handler — if the underlying stream rejects the
cancel, it surfaces as an unhandled promise rejection. Chain `.catch`
instead so the timeout path can never crash the process.
Ported from upstream commit 69c172e ("fix(provider): handle SSE
reader cancel rejections (anomalyco#44944)"). No behavior change outside the
timeout/cancel path; does not touch Batuta/Breniac/desktop code.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AGh7o4NA8jUjwakDzZo12e1 parent 9ef686e commit ac3b15b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments