From 512d0b97fdb7e4821f9c3bbad604ecf618cd5bc5 Mon Sep 17 00:00:00 2001 From: "burrito.space" Date: Thu, 21 May 2026 21:37:03 +0200 Subject: [PATCH] fix(chrome-extensions): gate openChromeExtensionPage show on headless chrome-extensions.ts:629 had show: true hardcoded on the BrowserWindow created by openChromeExtensionPage. In headless test runs (PEEK_HEADLESS=1) this window would flash on the user's physical macOS desktop whenever an options-page command was executed. Changed to show: !isHeadless() to match the pattern used everywhere else in the codebase (ipc.ts:830, ipc.ts:1496, etc.). --- apps/desktop/main/chrome-extensions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/desktop/main/chrome-extensions.ts b/apps/desktop/main/chrome-extensions.ts index 6d335b0f..787eff95 100644 --- a/apps/desktop/main/chrome-extensions.ts +++ b/apps/desktop/main/chrome-extensions.ts @@ -20,7 +20,7 @@ import { getProfileSession } from './session-partition.js'; import { registerAll } from './chrome-api-polyfills/index.js'; import { buildOptionsCommandName, computeUiEntries } from './chrome-extensions-helpers.js'; import { invokeWindowOpen } from './ipc.js'; -import { DEBUG } from './config.js'; +import { DEBUG, isHeadless } from './config.js'; /** * Chrome extension manifest.json structure (MV3) @@ -626,7 +626,7 @@ export function openChromeExtensionPage( width: entry.width, height: entry.height, title: entry.title, - show: true, + show: !isHeadless(), backgroundColor, titleBarStyle: 'hiddenInset', webPreferences: { -- 2.51.2