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
Vanessa128b9d1f137e
diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.tsindex 630bf5950c..e67a0a3247 100644--- a/app/src/plugin/API.ts+++ b/app/src/plugin/API.ts@@ -233,8 +233,11 @@ const getActiveEditor = (wndActive = true) => {});}if (!editor && !wndActive) {+ let activeTime = 0;editor = allEditor.find(item => {- if (item.protyle?.model.parent.headElement?.classList.contains("item--focus")) {+ 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;}});