co-mono/packages/tui/src
Dave dV 2339d7b5ac fix(tui): isImageLine should detect image escape sequences anywhere in line
Changed isImageLine() from using startsWith() to includes() to detect
Kitty and iTerm2 image escape sequences anywhere in a line, not just
at the start. This prevents TUI width checks from failing on lines
containing image data, which could cause crashes when rendering tool
results with images (e.g., when reading image files).

Also added comprehensive test coverage for isImageLine() including:
- Both iTerm2 and Kitty protocols
- Regression tests for long lines and terminals without image support
- Negative cases to ensure no false positives

Fixes crash: 'Rendered line exceeds terminal width' when image
escape sequences appear in output.
2026-01-30 10:07:22 +00:00
..
components fix(tui): blockquote multiline rendering and wrapping (#1073) 2026-01-30 03:02:38 +01:00
autocomplete.ts fix(tui): avoid duplicating quotes during autocomplete 2026-01-30 00:26:24 +01:00
editor-component.ts feat: add autocompleteMaxVisible setting for configurable dropdown height 2026-01-29 03:16:52 +01:00
fuzzy.ts More fuzzy finder (#860) 2026-01-19 22:22:51 +01:00
index.ts fix(tui): proper Kitty image ID management and cleanup 2026-01-22 04:39:58 +01:00
keybindings.ts feat(tui,coding-agent): add ctrl+b/ctrl+f cursor navigation keybindings (#1053) 2026-01-30 01:43:54 +01:00
keys.ts feat(tui): add legacy terminal support for Ctrl+symbol keys 2026-01-19 00:18:47 +01:00
stdin-buffer.ts fix(tui): handle batched input over SSH with StdinBuffer 2026-01-07 17:50:06 +01:00
terminal-image.ts fix(tui): isImageLine should detect image escape sequences anywhere in line 2026-01-30 10:07:22 +00:00
terminal.ts fix(tui): fix scrollback overwrite when appending lines past viewport 2026-01-26 16:51:28 +01:00
tui.ts perf(tui): optimize image line detection and box cache (#1084) 2026-01-30 02:25:19 +01:00
utils.ts feat(tui): hardware cursor positioning for IME support 2026-01-16 04:30:07 +01:00