From 4a2efb3b9b1499de7a4d687bbfbbbae8883e0246 Mon Sep 17 00:00:00 2001 From: egg Date: Mon, 22 Dec 2025 18:57:21 +0800 Subject: [PATCH] debug: Add startup mode logging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- client/src/main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/main.js b/client/src/main.js index dc411e4..4407e05 100644 --- a/client/src/main.js +++ b/client/src/main.js @@ -481,6 +481,12 @@ app.whenReady().then(async () => { const uiConfig = appConfig?.ui || {}; const launchBrowser = uiConfig.launchBrowser === true; + console.log("=== Startup Mode Check ==="); + console.log("uiConfig:", JSON.stringify(uiConfig)); + console.log("launchBrowser:", launchBrowser); + console.log("backendConfig.embedded:", backendConfig.embedded); + console.log("Will use browser mode:", launchBrowser && backendConfig.embedded); + // Browser-only mode: start backend and open browser, no Electron UI if (launchBrowser && backendConfig.embedded) { console.log("=== Browser-Only Mode ===");