Feat : Auto restart after crash

This commit is contained in:
decolua committed 2026-03-14 09:37:29 +07:00
1 parent 549223c8cf
commit adae2605bf
31 files changed
+340 -189

No files matched your search

+3
View File
@@ -345,6 +345,9 @@ export class KiroExecutor extends BaseExecutor {
});
// Pipe response body through transform stream
if (!response.body) {
return new Response("data: [DONE]\n\n", { status: response.status, headers: { "Content-Type": "text/event-stream" } });
}
const transformedStream = response.body.pipeThrough(transformStream);
return new Response(transformedStream, {