diff --git a/ui-tui/src/__tests__/createSlashHandler.test.ts b/ui-tui/src/__tests__/createSlashHandler.test.ts index 4bd3503103..5d63d0adbf 100644 --- a/ui-tui/src/__tests__/createSlashHandler.test.ts +++ b/ui-tui/src/__tests__/createSlashHandler.test.ts @@ -311,9 +311,7 @@ describe('createSlashHandler', () => { expect(rpc).toHaveBeenCalledWith('session.save', { session_id: 'sid-abc' }) await vi.waitFor(() => { - expect(ctx.transcript.sys).toHaveBeenCalledWith( - 'conversation saved to: /tmp/hermes_conversation_test.json' - ) + expect(ctx.transcript.sys).toHaveBeenCalledWith('conversation saved to: /tmp/hermes_conversation_test.json') }) }) diff --git a/ui-tui/src/__tests__/viewportStore.test.ts b/ui-tui/src/__tests__/viewportStore.test.ts index 671ef9cfed..1b3a67a990 100644 --- a/ui-tui/src/__tests__/viewportStore.test.ts +++ b/ui-tui/src/__tests__/viewportStore.test.ts @@ -25,7 +25,14 @@ describe('viewportStore', () => { const snap = getViewportSnapshot(handle as any) - expect(snap).toMatchObject({ atBottom: false, bottom: 18, pending: 3, scrollHeight: 40, top: 13, viewportHeight: 5 }) + expect(snap).toMatchObject({ + atBottom: false, + bottom: 18, + pending: 3, + scrollHeight: 40, + top: 13, + viewportHeight: 5 + }) expect(viewportSnapshotKey(snap)).toBe('0:13:5:40:3') }) }) diff --git a/ui-tui/src/components/appChrome.tsx b/ui-tui/src/components/appChrome.tsx index 6085df8a10..f03e0f5ae6 100644 --- a/ui-tui/src/components/appChrome.tsx +++ b/ui-tui/src/components/appChrome.tsx @@ -9,8 +9,8 @@ import { VERBS } from '../content/verbs.js' import { fmtDuration } from '../domain/messages.js' import { stickyPromptFromViewport } from '../domain/viewport.js' import { buildSubagentTree, treeTotals, widthByDepth } from '../lib/subagentTree.js' -import { useViewportSnapshot } from '../lib/viewportStore.js' import { fmtK } from '../lib/text.js' +import { useViewportSnapshot } from '../lib/viewportStore.js' import type { Theme } from '../theme.js' import type { Msg, Usage } from '../types.js' diff --git a/ui-tui/src/lib/viewportStore.ts b/ui-tui/src/lib/viewportStore.ts index 30028454c4..298d094bfb 100644 --- a/ui-tui/src/lib/viewportStore.ts +++ b/ui-tui/src/lib/viewportStore.ts @@ -1,8 +1,7 @@ +import type { ScrollBoxHandle } from '@hermes/ink' import type { RefObject } from 'react' import { useCallback, useSyncExternalStore } from 'react' -import type { ScrollBoxHandle } from '@hermes/ink' - export interface ViewportSnapshot { atBottom: boolean bottom: number