Skip to content

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

:bug: 桌面端内核在授权页自动退出 https://github.com/siyuan-note/insider/issues/1099

Liang Ding30448da5dde8
diff --git a/app/electron/init.html b/app/electron/init.html
index d9b66a0d4d..0fd6694e61 100644
--- a/app/electron/init.html
+++ b/app/electron/init.html
@@ -361,8 +361,6 @@
})
})
})
- // 防止内核长时间不用被回收
- new WebSocket(`${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/ws?app=siyuan&id=init`);
</script>
</body>
</html>
diff --git a/app/stage/auth.html b/app/stage/auth.html
index bebf640751..4d9ad1bfc9 100644
--- a/app/stage/auth.html
+++ b/app/stage/auth.html
@@ -495,7 +495,7 @@
}, 6000)
})
}
- // 防止内核长时间不用被回收
+ // 用于授权页保持连接,避免非常驻内存内核自动退出 https://github.com/siyuan-note/insider/issues/1099
new WebSocket(`${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/ws?app=siyuan&id=auth`);
</script>
</body>