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
Daniel7fe00b071abd
diff --git a/app/src/layout/dock/agent/AgentChat.ts b/app/src/layout/dock/agent/AgentChat.tsindex 9d631c4d1c..875fc96a59 100644--- a/app/src/layout/dock/agent/AgentChat.ts+++ b/app/src/layout/dock/agent/AgentChat.ts@@ -2272,7 +2272,15 @@ export class AgentChat extends Model {});});});- this.insertBeforeAI(el);+ // 快照应在执行框(思考卡片)之前,需向前查找活跃的思考卡片而非追加到末尾+ const activeThinking = this.messagesContainer.querySelector(+ ".agent-chat__msg--thinking:not(.agent-chat__msg--thinking-done)"+ );+ if (activeThinking) {+ this.messagesContainer.insertBefore(el, activeThinking);+ } else {+ this.insertBeforeAI(el);+ }this.scrollToBottom(true);this.hasInterveningCard = true;}