feature/IO-3725-RPS-Changes - Add AI context files, fix auto start dev tools in local

This commit is contained in:
Dave
2026-05-28 16:22:54 -04:00
parent 5f860d26e3
commit c7ad369a76
15 changed files with 1236 additions and 3 deletions

View File

@@ -8,7 +8,8 @@ const Sentry = require("@sentry/electron/main");
const isDev = !app.isPackaged;
const enableDevTools = isDev || process.env.ELECTRON_ENABLE_DEVTOOLS === "1";
const openDevToolsOnStart = enableDevTools && process.env.ELECTRON_OPEN_DEVTOOLS === "1";
const openDevToolsOnStart =
enableDevTools && (isDev ? process.env.ELECTRON_OPEN_DEVTOOLS !== "0" : process.env.ELECTRON_OPEN_DEVTOOLS === "1");
const installReactDevTools = process.env.ELECTRON_INSTALL_REACT_DEVTOOLS === "1";
//const Nucleus = require("nucleus-nodejs");
@@ -209,8 +210,8 @@ function createWindow() {
app.quit();
});
// Open DevTools only when explicitly requested. DevTools itself emits
// Chromium protocol noise such as Autofill.* messages in Electron.
// Auto-open DevTools in dev. DevTools itself can emit Chromium protocol
// noise such as Autofill.* messages in Electron.
if (openDevToolsOnStart) {
mainWindow.webContents.openDevTools({
// mode: "detach"