hermes-agent/ui-tui/src/components
Brooklyn Nicholson d30f6ac44e fix(tui): up-arrow inside a multi-line buffer moves cursor, not history
Reported during TUI v2 blitz retest: typing a multi-line message with
shift-Enter and then pressing Up to edit an earlier line swapped the
whole buffer for the previous history entry instead of moving the
cursor up a line.  Down then restored the draft → the buffer appeared
to "flip" between the draft and a prior prompt.

`useInputHandlers` cycles history on Up/Down, but textInput only
checked `inputBuf.length` — that only counts lines committed with a
trailing backslash, not shift-Enter newlines inside `input` itself.

Fix: detect logical lines inside the input string and move the cursor
one line up/down preserving column offset (clamp to line end when the
destination is shorter, standard editor behavior).  Only fall through
to history cycling when the cursor is already on the first line (Up)
or last line (Down).

Adds unit coverage for the new `lineNav` helper.
2026-04-21 18:31:35 -05:00
..
appChrome.tsx fix(tui): pager supports scrolling (up/down/page/top/bottom) 2026-04-21 14:48:26 -05:00
appLayout.tsx refactor(tui): turn elapsed lives in FaceTicker; emit done-in sys line 2026-04-20 11:38:11 -05:00
appOverlays.tsx Merge pull request #13591 from NousResearch/bb/tui-pager-scroll 2026-04-21 15:54:45 -05:00
branding.tsx fix(tui): route update-behind banner through theme + auto-detect light terminals (#11300) 2026-04-20 11:12:13 -05:00
markdown.tsx refactor(tui): clean markdown.tsx per KISS/DRY 2026-04-21 18:11:12 -05:00
maskedPrompt.tsx fix(tui): fix Linux Ctrl+C regression, remove double clipboard write 2026-04-20 07:14:33 -07:00
messageLine.tsx chore: uptick 2026-04-18 15:17:42 -05:00
modelPicker.tsx fix(tui): truncate long picker rows so the height stays stable 2026-04-21 14:43:18 -05:00
prompts.tsx fix(tui): pager supports scrolling (up/down/page/top/bottom) 2026-04-21 14:48:26 -05:00
queuedMessages.tsx refactor(tui): /clean pass across ui-tui — 49 files, −217 LOC 2026-04-16 22:32:53 -05:00
sessionPicker.tsx fix(tui): truncate long picker rows so the height stays stable 2026-04-21 14:43:18 -05:00
skillsHub.tsx fix(tui): truncate long picker rows so the height stays stable 2026-04-21 14:43:18 -05:00
textInput.tsx fix(tui): up-arrow inside a multi-line buffer moves cursor, not history 2026-04-21 18:31:35 -05:00
themed.tsx refactor(tui): /clean pass across ui-tui — 49 files, −217 LOC 2026-04-16 22:32:53 -05:00
thinking.tsx fix(tui): auto-expand Activity on error 2026-04-20 15:25:29 -05:00