An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: AI Agent https://github.com/siyuan-note/siyuan/issues/17797
Daniel49900580dc6d
diff --git a/app/src/layout/dock/AgentChat.ts b/app/src/layout/dock/AgentChat.tsindex ca165b1f0a..1a10927acc 100644--- a/app/src/layout/dock/AgentChat.ts+++ b/app/src/layout/dock/AgentChat.ts@@ -196,6 +196,7 @@ export class AgentChat extends Model {this.messagesContainer.innerHTML = "";this.entries.push({type: "user", content: text});this.appendUserMessage(text);+ this.tryGenerateTitle();this.setStreaming(true);const apiMessages = this.entries.filter((e) => e.type === "user" || e.type === "assistant").map((e) => ({role: e.type === "user" ? "user" as const : "assistant" as const,@@ -578,6 +579,7 @@ export class AgentChat extends Model {this.messagesContainer.innerHTML = "";}this.appendUserMessage(text);+ this.tryGenerateTitle();if (this.composer) {this.composer.pushHistory(text);}@@ -1093,7 +1095,6 @@ export class AgentChat extends Model {this.updateTokenDisplay();this.setStreaming(false);await this.saveSession();- this.tryGenerateTitle();}private flushThinkingStep() {