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: https://github.com/siyuan-note/siyuan/issues/15954
Vanessa3880e6c34697
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.tsindex 72108a37b2..f85474e951 100644--- a/app/src/protyle/gutter/index.ts+++ b/app/src/protyle/gutter/index.ts@@ -827,14 +827,13 @@ export class Gutter {});}}).element);- const range = getSelection().rangeCount > 0 ? getSelection().getRangeAt(0) : undefined;window.siyuan.menus.menu.append(new MenuItem({id: "addToDatabase",label: window.siyuan.languages.addToDatabase,accelerator: window.siyuan.config.keymap.general.addToDatabase.custom,icon: "iconDatabase",click: () => {- addEditorToDatabase(protyle, range);+ addEditorToDatabase(protyle, getEditorRange(selectsElement[0]));}}).element);window.siyuan.menus.menu.append(new MenuItem({@@ -1354,14 +1353,13 @@ export class Gutter {});}}).element);- const range = getSelection().rangeCount > 0 ? getSelection().getRangeAt(0) : undefined;window.siyuan.menus.menu.append(new MenuItem({id: "addToDatabase",icon: "iconDatabase",label: window.siyuan.languages.addToDatabase,accelerator: window.siyuan.config.keymap.general.addToDatabase.custom,click: () => {- addEditorToDatabase(protyle, range);+ addEditorToDatabase(protyle, getEditorRange(nodeElement));}}).element);window.siyuan.menus.menu.append(new MenuItem({