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: fix https://github.com/siyuan-note/siyuan/issues/7441
Vanessa71e01a1fb5f8
diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.tsindex 70436f9610..b4dff742a6 100644--- a/app/src/layout/Wnd.ts+++ b/app/src/layout/Wnd.ts@@ -784,7 +784,19 @@ export class Wnd {return true;}});- oldWnd.switchTab(oldWnd.children[oldWnd.children.length - 1].headElement);+ if (!oldWnd.headersElement.querySelector(".item--focus")) {+ let latestHeadElement: HTMLElement;+ Array.from(oldWnd.headersElement.children).forEach((headItem: HTMLElement) => {+ if (!latestHeadElement) {+ latestHeadElement = headItem;+ } else if (headItem.getAttribute("data-activetime") > latestHeadElement.getAttribute("data-activetime")) {+ latestHeadElement = headItem;+ }+ });+ if (latestHeadElement) {+ oldWnd.switchTab(latestHeadElement, true);+ }+ }}tab.parent = this;resizeTabs();