Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Finish AI writing reasoning after transport failures https://github.com/siyuan-note/siyuan/issues/20189

Danielf6aa37fa3917
diff --git a/app/src/ai/editor.ts b/app/src/ai/editor.ts
index 2b7c2778bd..d337c7e9ad 100644
--- a/app/src/ai/editor.ts
+++ b/app/src/ai/editor.ts
@@ -558,6 +558,7 @@ const startTaskStream = (task: IAIEditorTask) => {
return;
}
task.status = "error";
+ finishTaskReasoning(task);
task.notice = error instanceof Error ? error.message : String(error);
task.stopButton.classList.add("fn__none");
task.actionsElement.classList.remove("fn__none");