From de590cc3cb668020d873cd2d38fee120e66ff6f5 Mon Sep 17 00:00:00 2001 From: "hermes-seaeye[bot]" <307254004+hermes-seaeye[bot]@users.noreply.github.com> Date: Tue, 1 Sep 2026 02:09:50 +0000 Subject: [PATCH] fmt(js): `npm run fix` on merge (#99917) Co-authored-by: github-actions[bot] --- apps/desktop/src/app/chat/composer/focus.ts | 6 +----- .../src/app/chat/session-tile-actions.test.ts | 2 ++ apps/desktop/src/app/chat/session-tile.tsx | 1 + apps/desktop/src/app/chat/sidebar/chrome.test.tsx | 5 +---- apps/desktop/src/app/chat/sidebar/chrome.tsx | 1 + apps/desktop/src/app/chat/sidebar/filter-menu.tsx | 2 ++ .../src/app/chat/sidebar/sessions-section.tsx | 10 +++------- apps/desktop/src/app/model-picker-overlay.tsx | 11 ++--------- .../app/session/hooks/use-model-controls.test.tsx | 6 +++--- .../src/app/session/hooks/use-model-controls.ts | 11 ++--------- .../hooks/use-prompt-actions/index.test.tsx | 1 + .../src/components/assistant-ui/thread/list.tsx | 15 +++------------ apps/desktop/src/i18n/ja.ts | 6 ++++-- apps/desktop/src/lib/model-options.test.ts | 8 +------- apps/desktop/src/lib/model-picker-owner.test.ts | 2 +- apps/desktop/src/lib/model-picker-owner.ts | 2 +- apps/desktop/src/lib/session-date-groups.test.ts | 7 +------ apps/desktop/src/lib/session-date-groups.ts | 1 + apps/desktop/src/store/session.ts | 6 +++++- apps/desktop/src/store/thread-scroll.test.ts | 4 ++-- 20 files changed, 38 insertions(+), 69 deletions(-) diff --git a/apps/desktop/src/app/chat/composer/focus.ts b/apps/desktop/src/app/chat/composer/focus.ts index 008ce4e128..dc72c10e59 100644 --- a/apps/desktop/src/app/chat/composer/focus.ts +++ b/apps/desktop/src/app/chat/composer/focus.ts @@ -406,11 +406,7 @@ export const focusComposerInput = (el: HTMLElement | null) => { const active = document.activeElement - if ( - active instanceof HTMLElement && - active.dataset.slot === RICH_INPUT_SLOT && - !isElementInHiddenPane(active) - ) { + if (active instanceof HTMLElement && active.dataset.slot === RICH_INPUT_SLOT && !isElementInHiddenPane(active)) { return } diff --git a/apps/desktop/src/app/chat/session-tile-actions.test.ts b/apps/desktop/src/app/chat/session-tile-actions.test.ts index b15bfa08af..4f8f862b9b 100644 --- a/apps/desktop/src/app/chat/session-tile-actions.test.ts +++ b/apps/desktop/src/app/chat/session-tile-actions.test.ts @@ -10,8 +10,10 @@ import { MAIN_COMPOSER_SCOPE } from './composer/scope' const requestGatewayMock = vi.hoisted(() => vi.fn()) const { $activeSessionId, $sessions, setSessions } = await import('@/store/session') + const { $sessionStates, $sessionTiles, clearAllSessionStates, publishSessionState, setSessionTileDelegate } = await import('@/store/session-states') + const { listTileSessionRow, useSessionTileActions } = await import('./session-tile-actions') const RUNTIME_SESSION_ID = 'rt-tile-current' diff --git a/apps/desktop/src/app/chat/session-tile.tsx b/apps/desktop/src/app/chat/session-tile.tsx index 37d6ded272..773263e3ff 100644 --- a/apps/desktop/src/app/chat/session-tile.tsx +++ b/apps/desktop/src/app/chat/session-tile.tsx @@ -171,6 +171,7 @@ function TileChat({ queryClient, requestGateway: requestTileGateway }) + const activeGatewayProfile = useStore($activeGatewayProfile) const cwd = useStore(view.$cwd) const gatewayOpen = useStore($gatewayState) === 'open' diff --git a/apps/desktop/src/app/chat/sidebar/chrome.test.tsx b/apps/desktop/src/app/chat/sidebar/chrome.test.tsx index caaef1e8dc..500211c27f 100644 --- a/apps/desktop/src/app/chat/sidebar/chrome.test.tsx +++ b/apps/desktop/src/app/chat/sidebar/chrome.test.tsx @@ -10,10 +10,7 @@ describe('SidebarDateDivider', () => { const onToggle = vi.fn() render( - + ) fireEvent.click(screen.getByRole('button', { name: 'Hide Yesterday sessions' })) diff --git a/apps/desktop/src/app/chat/sidebar/chrome.tsx b/apps/desktop/src/app/chat/sidebar/chrome.tsx index e1e21b6712..62f0271428 100644 --- a/apps/desktop/src/app/chat/sidebar/chrome.tsx +++ b/apps/desktop/src/app/chat/sidebar/chrome.tsx @@ -64,6 +64,7 @@ export function SidebarDateDivider({ {label} ) + const rule =