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/4494
Vanessa4acc006b1335
diff --git a/app/src/util/newFile.ts b/app/src/util/newFile.tsindex 38b8f794a3..6020150c30 100644--- a/app/src/util/newFile.ts+++ b/app/src/util/newFile.ts@@ -89,7 +89,7 @@ export const newFile = (notebookId?: string, currentPath?: string, paths?: strin}const id = Lute.NewNodeID();const newPath = pathPosix().join(getDisplayName(currentPath, false, true), id + ".sy");- if (paths.length > 0) {+ if (paths) {paths[paths.indexOf(undefined)] = newPath;}fetchPost("/api/filetree/createDoc", {