Skip to content

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

:art: Prevent the white background from flashing when closing error windows in macOS dark mode (#16792)

Jeffrey Chen5f2abf9d9ed6
diff --git a/app/electron/main.js b/app/electron/main.js
index 640bbf3ad1..49daf94c70 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -218,6 +218,7 @@ const showErrorWindow = (titleZh, titleEn, content, emoji = "⚠️") => {
titleBarStyle: "hidden",
fullscreenable: false,
icon: path.join(appDir, "stage", "icon-large.png"),
+ transparent: "darwin" === process.platform, // 避免深色模式关闭窗口时闪现白色背景
webPreferences: {
nodeIntegration: true, webviewTag: true, webSecurity: false, contextIsolation: false,
},