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/4567
Vanessa65e7a3fa138e
diff --git a/app/electron/main.js b/app/electron/main.jsindex 91448136ce..6aa7b40666 100644--- a/app/electron/main.js+++ b/app/electron/main.js@@ -384,7 +384,7 @@ const initKernel = (workspace, lang) => {resolve(false)return}- if (isDevEnv) {+ if (isDevEnv && workspaces.length === 0) {writeLog('got kernel port [' + kernelPort + ']')} else {const getAvailablePort = () => {@@ -411,7 +411,7 @@ const initKernel = (workspace, lang) => {return}const cmds = ['--port', kernelPort, '--wd', appDir]- if (isDevEnv) {+ if (isDevEnv && workspaces.length === 0) {cmds.push('--mode', 'dev')}if (workspace) {@@ -422,7 +422,7 @@ const initKernel = (workspace, lang) => {' ')}]`writeLog(cmd)let kernelProcessPid = ''- if (!isDevEnv) {+ if (!isDevEnv || workspaces.length > 0) {const cp = require('child_process')const kernelProcess = cp.spawn(kernelPath,cmds, {