diff --git a/apps/desktop/electron/renderer-bundle.test.ts b/apps/desktop/electron/renderer-bundle.test.ts index 2eff89af3e..1e12389f16 100644 --- a/apps/desktop/electron/renderer-bundle.test.ts +++ b/apps/desktop/electron/renderer-bundle.test.ts @@ -21,10 +21,7 @@ const INDEX_HTML = [ ].join('\n') test('parseModuleAssetRefs collects module scripts and modulepreload hrefs', () => { - assert.deepEqual(parseModuleAssetRefs(INDEX_HTML), [ - '/assets/index-a1b2c3.js', - '/assets/shiki-block-COiz1pEN.js' - ]) + assert.deepEqual(parseModuleAssetRefs(INDEX_HTML), ['/assets/index-a1b2c3.js', '/assets/shiki-block-COiz1pEN.js']) }) test('parseModuleAssetRefs ignores non-module tags (plain stylesheet, non-module script)', () => { @@ -80,10 +77,7 @@ const INDEX_PATH = path.join('/app', 'dist', 'index.html') const INDEX_DIR = path.dirname(INDEX_PATH) test('missingRendererAssets: intact generation reports nothing missing', () => { - const deps = depsFor(INDEX_DIR, INDEX_HTML, [ - 'assets/index-a1b2c3.js', - 'assets/shiki-block-COiz1pEN.js' - ]) + const deps = depsFor(INDEX_DIR, INDEX_HTML, ['assets/index-a1b2c3.js', 'assets/shiki-block-COiz1pEN.js']) assert.deepEqual(missingRendererAssets(INDEX_PATH, deps), []) }) @@ -113,10 +107,7 @@ test('missingRendererAssets: existence is checked relative to the index dir, per const unpackedIndex = path.join('/app', 'app.asar.unpacked', 'dist', 'index.html') const unpackedDir = path.dirname(unpackedIndex) - const intact = depsFor(unpackedDir, INDEX_HTML, [ - 'assets/index-a1b2c3.js', - 'assets/shiki-block-COiz1pEN.js' - ]) + const intact = depsFor(unpackedDir, INDEX_HTML, ['assets/index-a1b2c3.js', 'assets/shiki-block-COiz1pEN.js']) const torn = depsFor(INDEX_DIR, INDEX_HTML, ['assets/index-a1b2c3.js']) diff --git a/apps/desktop/electron/zoom.ts b/apps/desktop/electron/zoom.ts index e0e392be1b..4ba948c362 100644 --- a/apps/desktop/electron/zoom.ts +++ b/apps/desktop/electron/zoom.ts @@ -66,7 +66,9 @@ export function applyZoomLevel(webContents, level) { export const ZOOM_RESIZE_REASSERT_DELAY_MS = 100 export function zoomReassertWindowEvents(platform = process.platform) { - return platform === 'linux' ? ['show', 'restore', 'focus', 'resize', 'move'] : ['show', 'restore', 'focus', 'resized', 'moved'] + return platform === 'linux' + ? ['show', 'restore', 'focus', 'resize', 'move'] + : ['show', 'restore', 'focus', 'resized', 'moved'] } export function installZoomReassertOnWindowEvents(win, reassert, platform = process.platform) { diff --git a/apps/desktop/src/app/chat/sidebar/session-actions-menu.tsx b/apps/desktop/src/app/chat/sidebar/session-actions-menu.tsx index f1334929c5..9a0e406f41 100644 --- a/apps/desktop/src/app/chat/sidebar/session-actions-menu.tsx +++ b/apps/desktop/src/app/chat/sidebar/session-actions-menu.tsx @@ -251,6 +251,7 @@ function useSessionActions({ label: r.openInTerminal, onSelect: () => { triggerHaptic('selection') + // Read the row lazily: subscribing every row's menu to $sessions // would re-render the whole sidebar on each session update. const cwd = diff --git a/ui-tui/src/app/createGatewayEventHandler.ts b/ui-tui/src/app/createGatewayEventHandler.ts index ce584c20fe..9507cb0854 100644 --- a/ui-tui/src/app/createGatewayEventHandler.ts +++ b/ui-tui/src/app/createGatewayEventHandler.ts @@ -70,7 +70,6 @@ export const mergeUsageStable = (prev: Usage, patch: Partial | undefined) return usageChanged(prev, merged) ? merged : prev } - const statusFromBusy = () => (getUiState().busy ? 'running…' : 'ready') // The last gateway skin, kept so the theme can be re-derived when the OSC-11