diff --git a/apps/desktop/src/app/chat/composer/hooks/use-slash-completions.test.tsx b/apps/desktop/src/app/chat/composer/hooks/use-slash-completions.test.tsx index 2e56281a1d..518090d96c 100644 --- a/apps/desktop/src/app/chat/composer/hooks/use-slash-completions.test.tsx +++ b/apps/desktop/src/app/chat/composer/hooks/use-slash-completions.test.tsx @@ -174,6 +174,7 @@ describe('useSlashCompletions', () => { const api = harness({ request } as unknown as HermesGateway) const items = await completions(api, 're') + const groupOf = (command: string) => (items.find(item => (item.metadata as { command?: string })?.command === command)?.metadata as { group?: string }) ?.group diff --git a/apps/desktop/src/app/chat/composer/hooks/use-slash-completions.ts b/apps/desktop/src/app/chat/composer/hooks/use-slash-completions.ts index cde76d9874..a22dbe6813 100644 --- a/apps/desktop/src/app/chat/composer/hooks/use-slash-completions.ts +++ b/apps/desktop/src/app/chat/composer/hooks/use-slash-completions.ts @@ -15,11 +15,7 @@ import { rankSkillCommands, slashCompletionGroup } from '@/lib/desktop-slash-commands' -import { - $slashCompletionsEpoch, - cachedSlashCompletion, - hasCachedSlashCompletion -} from '@/lib/slash-completion-cache' +import { $slashCompletionsEpoch, cachedSlashCompletion, hasCachedSlashCompletion } from '@/lib/slash-completion-cache' import { normalize } from '@/lib/text' import { $sessions } from '@/store/session' diff --git a/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.test.ts b/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.test.ts index a81224bbb3..01594e840e 100644 --- a/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.test.ts +++ b/apps/desktop/src/app/contrib/hooks/use-session-tile-delegate.test.ts @@ -200,6 +200,7 @@ describe('useSessionTileDelegate resumeTile', () => { messages: [{ id: 'm1', parts: [{ type: 'text', text: 'old' }], role: 'user' }], storedSessionId: 'stored-a' } + const runtimeIdByStoredSessionIdRef = { current: new Map([['stored-a', 'runtime-a']]) } const sessionStateByRuntimeIdRef = { current: new Map([['runtime-a', stateA]]) } const updateSessionState = vi.fn((_id, updater) => updater(stateA)) @@ -221,7 +222,9 @@ describe('useSessionTileDelegate resumeTile', () => { expect(getLatestSessionMessages).toHaveBeenCalled() expect(updateSessionState).toHaveBeenCalled() - const updater = updateSessionState.mock.calls[0][1] as (state: typeof stateA) => { messages: Array<{ parts?: Array<{ text?: string }> }> } + const updater = updateSessionState.mock.calls[0][1] as (state: typeof stateA) => { + messages: Array<{ parts?: Array<{ text?: string }> }> + } const next = updater(stateA) const texts = next.messages.flatMap(message => (message.parts ?? []).map(part => part.text ?? '')) diff --git a/apps/desktop/src/components/pane-shell/tree/renderer/collapse-restore-affordance.test.tsx b/apps/desktop/src/components/pane-shell/tree/renderer/collapse-restore-affordance.test.tsx index b07f751292..0209ae8728 100644 --- a/apps/desktop/src/components/pane-shell/tree/renderer/collapse-restore-affordance.test.tsx +++ b/apps/desktop/src/components/pane-shell/tree/renderer/collapse-restore-affordance.test.tsx @@ -182,9 +182,7 @@ describe('docked tool tile — collapsing keeps the restore chip', () => { it('chevron-collapse of a row-docked tile keeps the tab as a restore handle', () => { render() - fireEvent.click( - globalThis.document.querySelector('[data-tree-group="g-routines"] button[aria-label="Minimize"]')! - ) + fireEvent.click(globalThis.document.querySelector('[data-tree-group="g-routines"] button[aria-label="Minimize"]')!) expect(zoneAt(1).minimized).toBe(true) expect(tabEl('hermes-bots:routines')).toBeTruthy()