Skip to content

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

:art: Hide Electron dev security warnings (#18134)

Jeffrey Chen2f86461bc952
diff --git a/app/electron/main.js b/app/electron/main.js
index 607b9dac8e..cab593ef38 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -14,6 +14,9 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
+// 开发环境下隐藏 Electron 安全清单控制台提示 https://www.electronjs.org/docs/latest/tutorial/security
+process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = "true";
+
const {
net,
app,