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:
Brooklyn Nicholson 2026-04-17 11:00:15 -05:00
parent a82097e7a2
commit 8f553a55b2
4 changed files with 12 additions and 7 deletions

View file

@ -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
]