Skip to content

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

:bug: fix https://github.com/siyuan-note/insider/issues/1099

Vanessacca4eeb2073b
diff --git a/app/electron/init.html b/app/electron/init.html
index 01f55b8a4a..d9b66a0d4d 100644
--- a/app/electron/init.html
+++ b/app/electron/init.html
@@ -362,7 +362,7 @@
})
})
// 防止内核长时间不用被回收
- new WebSocket(`${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/ws`);
+ 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 5e9c42900a..bebf640751 100644
--- a/app/stage/auth.html
+++ b/app/stage/auth.html
@@ -496,7 +496,7 @@
})
}
// 防止内核长时间不用被回收
- new WebSocket(`${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/ws`);
+ new WebSocket(`${window.location.protocol === "https:" ? "wss" : "ws"}://${window.location.host}/ws?app=siyuan&id=auth`);
</script>
</body>
</html>