An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/5534
Vanessa2d44593996b5
diff --git a/app/src/editor/util.ts b/app/src/editor/util.tsindex 3c12cfe918..ca18929549 100644--- a/app/src/editor/util.ts+++ b/app/src/editor/util.ts@@ -151,9 +151,13 @@ const openFile = (options: IOpenFileOptions) => {} else if (window.siyuan.config.fileTree.openFilesUseCurrentTab) {let unUpdateTab: Tab;// 不能 reverse, 找到也不能提前退出循环,否则 https://github.com/siyuan-note/siyuan/issues/3271- wnd.children.forEach((item) => {+ wnd.children.find((item) => {if (item.headElement && item.headElement.classList.contains("item--unupdate") && !item.headElement.classList.contains("item--pin")) {unUpdateTab = item;+ if (item.headElement.classList.contains("item--focus")) {+ // https://ld246.com/article/1658979494658+ return true;+ }}});wnd.addTab(newTab(options));