From 7e7fc6445be9baa5a18b678643169bef68898d77 Mon Sep 17 00:00:00 2001 From: "hermes-seaeye[bot]" <307254004+hermes-seaeye[bot]@users.noreply.github.com> Date: Fri, 28 Aug 2026 03:10:27 +0000 Subject: [PATCH] fmt(js): `npm run fix` on merge (#96833) Co-authored-by: github-actions[bot] --- .../app/chat/composer/hooks/use-slash-completions.test.tsx | 1 + .../src/app/chat/composer/hooks/use-slash-completions.ts | 6 +----- .../src/app/contrib/hooks/use-session-tile-delegate.test.ts | 5 ++++- .../tree/renderer/collapse-restore-affordance.test.tsx | 4 +--- 4 files changed, 7 insertions(+), 9 deletions(-) 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()