mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 09:01:14 +00:00
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. |
||
|---|---|---|
| .. | ||
| autocomplete.test.ts | ||
| chat-simple.ts | ||
| editor.test.ts | ||
| fuzzy.test.ts | ||
| image-test.ts | ||
| input.test.ts | ||
| key-tester.ts | ||
| keys.test.ts | ||
| markdown.test.ts | ||
| overlay-options.test.ts | ||
| overlay-short-content.test.ts | ||
| select-list.test.ts | ||
| stdin-buffer.test.ts | ||
| terminal-image.test.ts | ||
| test-themes.ts | ||
| truncated-text.test.ts | ||
| tui-overlay-style-leak.test.ts | ||
| tui-render.test.ts | ||
| viewport-overwrite-repro.ts | ||
| virtual-terminal.ts | ||
| wrap-ansi.test.ts | ||