style(tui): apply formatter
This commit is contained in:
parent
db4e4acca0
commit
14fcff60c9
4 changed files with 11 additions and 7 deletions
|
|
@ -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')
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue