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} > -