hermes-agent/ui-tui/packages/hermes-ink/src/ink
brooklyn! a7e7921dbc
fix(tui): trim markdown wrap spaces (#22062)
* fix(tui): trim markdown wrap spaces

Use trim-aware wrapping for markdown prose so word-wrapped continuation lines do not keep boundary spaces.

* fix(tui): simplify markdown wrap nodes

Keep trim-aware wrapping on the rendered markdown text node while leaving nested inline segments as plain virtual text.

* fix(tui): trim definition row wrapping

Apply trim-aware wrapping to markdown definition rows so continuation lines match other prose rows.

* fix(tui): trim list and quote wrapping

Put trim-aware wrapping on the rendered list and quote rows that own markdown inline layout.

* fix(tui): preserve markdown nesting with trim wrap

Move list and quote indentation into layout padding so trim-aware wrapping does not erase nested markdown structure.

* fix(tui): trim only soft wrap spaces

Change trim-aware wrapping to remove whitespace only at soft-wrap boundaries so original leading inline spaces stay verbatim.

* fix(tui): preserve extra boundary whitespace

Trim only one soft-wrap boundary whitespace character so wrap-trim avoids leading continuations without collapsing intentional spacing.

* fix(tui): align styled wrap-trim mapping

Update styled text remapping to skip the single whitespace removed at soft-wrap boundaries without dropping preserved indentation.

* fix(tui): clean wrap trim test helpers

Clarify boundary-trim wording and strip OSC escapes from markdown render test output.

* fix(tui): strip osc before ansi in markdown tests

Remove OSC escapes from raw render output before SGR/CSI cleanup so markdown render assertions stay plain text.
2026-05-08 20:51:34 -07:00
..
components fix(tui): normalize legacy Terminal.app colors (#17695) 2026-04-29 20:13:49 -07:00
events fix(tui): restore macOS copy behavior and theme polish (#17131) 2026-04-28 18:47:14 -05:00
hooks fix(tui): restore macOS copy behavior and theme polish (#17131) 2026-04-28 18:47:14 -05:00
layout feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
termio chore(tui): clean remaining Ink perf scaffolding 2026-04-26 21:20:54 -05:00
Ansi.tsx feat: fix types and add type checking plus lazybundle on launch andddd dev flag 2026-04-11 14:42:28 -05:00
bidi.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
cache-eviction.ts chore(tui): remove dead branch cleanup code 2026-04-26 21:54:24 -05:00
clearTerminal.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
colorize.test.ts fix(tui): normalize legacy Terminal.app colors (#17695) 2026-04-29 20:13:49 -07:00
colorize.ts fix(tui): normalize legacy Terminal.app colors (#17695) 2026-04-29 20:13:49 -07:00
constants.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
cursor.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
devtools.ts feat: fix types and add type checking plus lazybundle on launch andddd dev flag 2026-04-11 14:42:28 -05:00
dom.ts fix(tui): share overlay close controls 2026-04-25 14:17:04 -05:00
focus.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
frame.ts chore(tui): clean remaining Ink perf scaffolding 2026-04-26 21:20:54 -05:00
get-max-width.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
global.d.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
hit-test.ts feat: add scrollbar and fix selection on scroll 2026-04-14 14:34:33 -05:00
ink.tsx fix(tui): clear Apple Terminal resize artifacts 2026-05-03 12:11:24 -05:00
instances.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
line-width-cache.ts chore(tui): /clean recent perf work — KISS/DRY pass 2026-04-26 20:38:47 -05:00
log-update.test.ts fix(tui): avoid main-screen scrollback reset loops 2026-05-07 06:07:03 -07:00
log-update.ts fix(tui): avoid main-screen scrollback reset loops 2026-05-07 06:07:03 -07:00
lru.ts chore(tui): /clean recent perf work — KISS/DRY pass 2026-04-26 20:38:47 -05:00
measure-element.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
measure-text.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
node-cache.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
optimizer.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
output.ts chore(tui): /clean recent perf work — KISS/DRY pass 2026-04-26 20:38:47 -05:00
parse-keypress.test.ts fix(tui): tighten SGR fragment matching 2026-04-30 17:50:49 -05:00
parse-keypress.ts fix(tui): tighten SGR fragment matching 2026-04-30 17:50:49 -05:00
reconciler.ts feat: fix types and add type checking plus lazybundle on launch andddd dev flag 2026-04-11 14:42:28 -05:00
render-border.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
render-node-to-output.ts fix(tui): trim markdown wrap spaces (#22062) 2026-05-08 20:51:34 -07:00
render-to-screen.ts feat: fix types and add type checking plus lazybundle on launch andddd dev flag 2026-04-11 14:42:28 -05:00
renderer.ts chore: uptick 2026-04-14 19:38:04 -05:00
root.ts style(tui): apply npm run fix 2026-04-28 22:18:26 -05:00
screen.ts refactor(tui): tighten editor handoff helpers 2026-04-25 20:24:06 -05:00
searchHighlight.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
selection.test.ts fix(tui): clamp copied selection bounds 2026-04-25 15:32:45 -05:00
selection.ts chore(salvage): strip duplicated/merge-corrupted blocks from PR #17664 2026-04-29 21:56:51 -07:00
squash-text-nodes.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
stringWidth.ts chore(tui): /clean recent perf work — KISS/DRY pass 2026-04-26 20:38:47 -05:00
styles.ts fix(tui): blitz closeout — input wrap parity, shift-tab yolo, bottom statusline 2026-04-22 15:27:54 -05:00
supports-hyperlinks.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
tabstops.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
terminal-focus-state.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
terminal-querier.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
terminal.test.ts fix(tui): clear Apple Terminal resize artifacts 2026-05-03 12:11:24 -05:00
terminal.ts fix(tui): clear Apple Terminal resize artifacts 2026-05-03 12:11:24 -05:00
termio.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
useTerminalNotification.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
warn.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
widest-line.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
wrap-text.test.ts fix(tui): trim markdown wrap spaces (#22062) 2026-05-08 20:51:34 -07:00
wrap-text.ts fix(tui): trim markdown wrap spaces (#22062) 2026-05-08 20:51:34 -07:00
wrapAnsi.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00