From 1a5ca62233e5cc5db56de813be8a8c4e00de7bfc Mon Sep 17 00:00:00 2001 From: "hermes-seaeye[bot]" <307254004+hermes-seaeye[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 23:31:59 +0000 Subject: [PATCH] fmt(js): `npm run fix` on merge (#95114) Co-authored-by: github-actions[bot] --- apps/desktop/electron/browser-windows.test.ts | 10 ++++++++-- apps/desktop/electron/main.ts | 16 +++++++++------- .../src/app/chat/browser-popout-shell.tsx | 14 +++----------- .../chat/right-rail/preview-browser-bar.test.tsx | 5 ++--- apps/desktop/src/app/contrib/wiring.tsx | 4 +++- .../src/components/pane-shell/tree/store.ts | 4 +--- 6 files changed, 26 insertions(+), 27 deletions(-) diff --git a/apps/desktop/electron/browser-windows.test.ts b/apps/desktop/electron/browser-windows.test.ts index 8b055bb540..00403d7314 100644 --- a/apps/desktop/electron/browser-windows.test.ts +++ b/apps/desktop/electron/browser-windows.test.ts @@ -24,8 +24,14 @@ test('buildBrowserWindowUrl avoids a double slash when the dev server has a trai }) test('buildBrowserWindowUrl omits a blank tab', () => { - assert.equal(buildBrowserWindowUrl(' ', { devServer: 'http://localhost:5173' }), 'http://localhost:5173/?win=browser#/') - assert.equal(buildBrowserWindowUrl(null, { devServer: 'http://localhost:5173' }), 'http://localhost:5173/?win=browser#/') + assert.equal( + buildBrowserWindowUrl(' ', { devServer: 'http://localhost:5173' }), + 'http://localhost:5173/?win=browser#/' + ) + assert.equal( + buildBrowserWindowUrl(null, { devServer: 'http://localhost:5173' }), + 'http://localhost:5173/?win=browser#/' + ) }) test('buildBrowserWindowUrl builds a packaged file URL with the flag before the hash', () => { diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.ts index 86f2ff2194..0846a0b6ce 100644 --- a/apps/desktop/electron/main.ts +++ b/apps/desktop/electron/main.ts @@ -8484,13 +8484,15 @@ function applySecretStorageEncryption(on: boolean) { const needsEncrypt = (secret: any) => secret?.encoding === 'plain' && Boolean(secret.value) // Probe FIRST so an unusable keychain fails before any store is touched. - if (!(() => { - try { - return Boolean(safeStorage.isEncryptionAvailable()) - } catch { - return false - } - })()) { + if ( + !(() => { + try { + return Boolean(safeStorage.isEncryptionAvailable()) + } catch { + return false + } + })() + ) { throw new Error( 'OS keychain encryption is unavailable on this machine, so stored gateway secrets cannot be encrypted.' ) diff --git a/apps/desktop/src/app/chat/browser-popout-shell.tsx b/apps/desktop/src/app/chat/browser-popout-shell.tsx index e14ed3290d..32a0f95781 100644 --- a/apps/desktop/src/app/chat/browser-popout-shell.tsx +++ b/apps/desktop/src/app/chat/browser-popout-shell.tsx @@ -22,19 +22,11 @@ export function BrowserPopoutShell() { data-contrib-shell="" style={{ '--titlebar-height': `${TITLEBAR_HEIGHT}px` } as CSSProperties} > -