co-mono/packages
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
..
agent Add [Unreleased] section for next cycle 2026-01-30 03:27:09 +01:00
ai Add [Unreleased] section for next cycle 2026-01-30 03:27:09 +01:00
coding-agent Add [Unreleased] section for next cycle 2026-01-30 03:27:09 +01:00
mom Add [Unreleased] section for next cycle 2026-01-30 03:27:09 +01:00
pods Release v0.50.4 2026-01-30 03:26:23 +01:00
tui fix(tui): isImageLine should detect image escape sequences anywhere in line 2026-01-30 10:07:22 +00:00
web-ui Add [Unreleased] section for next cycle 2026-01-30 03:27:09 +01:00