An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/15641
Vanessae35b2032014b
diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.tsindex e67a0a3247..afbd99870d 100644--- a/app/src/plugin/API.ts+++ b/app/src/plugin/API.ts@@ -234,11 +234,11 @@ const getActiveEditor = (wndActive = true) => {}if (!editor && !wndActive) {let activeTime = 0;- editor = allEditor.find(item => {+ allEditor.forEach(item => {const headerElement = item.protyle?.model.parent.headElement;if (headerElement && headerElement.classList.contains("item--focus") && parseInt(headerElement.dataset.activetime) > activeTime) {activeTime = parseInt(headerElement.dataset.activetime);- return true;+ editor = item;}});}