mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-29 01:31:41 +00:00
chore(tui): fix eslint/prettier nits from npm run fix
- drop inline `import()` type annotation in useSessionLifecycle (import `PanelSection` at the top like everything else) - include `panel` and `session.resumeById` in the useMainApp useMemo deps now that the event handler depends on them - wrap the derived `selected` range in a useMemo so it has stable identity and stops invalidating the TextInput `rendered` memo every render - prettier re-sorting of a couple of export/import lines
This commit is contained in:
parent
a82097e7a2
commit
8f553a55b2
4 changed files with 12 additions and 7 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { useApp, useHasSelection, useSelection, useStdout, type ScrollBoxHandle } from '@hermes/ink'
|
||||
import { type ScrollBoxHandle, useApp, useHasSelection, useSelection, useStdout } from '@hermes/ink'
|
||||
import { useStore } from '@nanostores/react'
|
||||
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
||||
|
||||
|
|
@ -426,9 +426,11 @@ export function useMainApp(gw: GatewayClient) {
|
|||
composerActions,
|
||||
composerRefs,
|
||||
gateway,
|
||||
panel,
|
||||
sendQueued,
|
||||
session.newSession,
|
||||
session.resetSession,
|
||||
session.resumeById,
|
||||
stdout,
|
||||
sys
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue