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/17212
Vanessab6f439888086
diff --git a/app/electron/main.js b/app/electron/main.jsindex 8f91464ce5..a50e5125c8 100644--- a/app/electron/main.js+++ b/app/electron/main.js@@ -441,9 +441,22 @@ const initMainWindow = () => {net.fetch(getServer() + "/api/system/getNetwork", {method: "POST"}).then((response) => {return response.json();}).then((response) => {- setProxy(`${response.data.proxy.scheme}://${response.data.proxy.host}:${response.data.proxy.port}`, currentWindow.webContents).then(() => {+ setProxy(`${response.data.proxy.scheme}://${response.data.proxy.host}:${response.data.proxy.port}`, currentWindow.webContents).then(async () => {// 加载主界面- currentWindow.loadURL(getServer() + "/stage/build/app/?v=" + new Date().getTime());+ await currentWindow.loadURL(getServer() + "/stage/build/app/?v=" + new Date().getTime());+ if (isOpenAsHidden()) {+ currentWindow.minimize();+ } else {+ currentWindow.show();+ if (windowState.isMaximized) {+ currentWindow.maximize();+ } else {+ currentWindow.unmaximize();+ }+ }+ if (bootWindow && !bootWindow.isDestroyed()) {+ bootWindow.destroy();+ }});});@@ -500,23 +513,6 @@ const initMainWindow = () => {currentWindow.webContents.openDevTools({mode: "bottom"});}- // 主界面事件监听- currentWindow.once("ready-to-show", () => {- if (isOpenAsHidden()) {- currentWindow.minimize();- } else {- currentWindow.show();- if (windowState.isMaximized) {- currentWindow.maximize();- } else {- currentWindow.unmaximize();- }- }- if (bootWindow && !bootWindow.isDestroyed()) {- bootWindow.destroy();- }- });-// 菜单const productName = "SiYuan";const template = [{