Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:recycle: 桌面端内核进程端口号写入文件 `port.json` https://github.com/siyuan-note/siyuan/issues/6337

Liang Ding1c03d11f2bb1
diff --git a/app/electron/main.js b/app/electron/main.js
index 4d95f61a24..d431f27069 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -602,6 +602,10 @@ const initKernel = (initData) => {
}
const getKernelPort = async () => {
+ if (isDevEnv) {
+ return kernelPort
+ }
+
await sleep(200)
let gotPort = false
let count = 0