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 =