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/7225
Vanessab8370abd1fcf
diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.tsindex 32d30676d7..81bf832ff4 100644--- a/app/src/protyle/breadcrumb/index.ts+++ b/app/src/protyle/breadcrumb/index.ts@@ -54,7 +54,10 @@ export class Breadcrumb {if (id) {if (protyle.options.render.breadcrumbDocName && window.siyuan.ctrlIsPressed) {/// #if !MOBILE- openFileById({id, action: [Constants.CB_GET_FOCUS]});+ openFileById({+ id,+ action: id === protyle.block.rootID ? [Constants.CB_GET_FOCUS] : [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL]+ });/// #endif} else {zoomOut(protyle, id);@@ -173,7 +176,9 @@ export class Breadcrumb {icon: "iconDownload",label: `${window.siyuan.languages.insertAsset}${uploadHTML}`,}).element;- uploadMenu.querySelector("input").addEventListener("change", (event: InputEvent & { target: HTMLInputElement }) => {+ uploadMenu.querySelector("input").addEventListener("change", (event: InputEvent & {+ target: HTMLInputElement+ }) => {if (event.target.files.length === 0) {return;}diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex cfd9aef14d..8644abded9 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -1436,7 +1436,10 @@ export class WYSIWYG {const breadcrumbId = backlinkBreadcrumbItemElement.getAttribute("data-id");if (breadcrumbId) {if (window.siyuan.ctrlIsPressed) {- openFileById({id: breadcrumbId, action: [Constants.CB_GET_FOCUS]});+ openFileById({+ id: breadcrumbId,+ action: breadcrumbId === protyle.block.rootID ? [Constants.CB_GET_FOCUS] : [Constants.CB_GET_FOCUS, Constants.CB_GET_ALL]+ });} else {loadBreadcrumb(protyle, backlinkBreadcrumbItemElement);}