fix(rdesign): catch SSE stream close errors (Cloudflare QUIC reset)
Add .catch() to the ReadableStream reader loop so Cloudflare QUIC protocol resets on stream close don't surface as uncaught errors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4ed940d75c
commit
50c003e8e3
|
|
@ -295,6 +295,10 @@ const RDESIGN_JS = `
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
read();
|
read();
|
||||||
|
}).catch(function(e) {
|
||||||
|
// Stream closed (Cloudflare QUIC reset or normal close)
|
||||||
|
if (uiState !== 'error' && uiState !== 'done') setState('done');
|
||||||
|
abortController = null;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
read();
|
read();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue