control: reconnect on EOF and relax rpc text parse

This commit is contained in:
Peter Steinberger committed 2025-12-09 00:29:31 +00:00
1 parent 2761c40781
commit ec1ff52dfb
2 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -535,7 +535,7 @@ export async function runCommandReply(
let lastStreamedAssistant: string | undefined;
const streamAssistantFinal = (msg?: {
role?: string;
content?: unknown[];
content?: unknown;
}) => {
if (!onPartialReply || msg?.role !== "assistant") return;
const textBlocks = Array.isArray(msg.content)