mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 11:04:51 +00:00
test(tui): add bug regression test for isImageLine crash fix
Added comprehensive bug regression test that demonstrates: 1. The bug scenario (old implementation using startsWith() fails) 2. The fix works (new implementation using includes() passes) Test covers: - Terminal without image support scenario (bug trigger) - Both Kitty and iTerm2 image protocols - Very long lines (300KB+) matching crash scenario - Integration with tool execution scenarios - Negative cases (no false positives) All 347 tests pass including 12 new bug regression tests.
This commit is contained in:
parent
2339d7b5ac
commit
9337d1c39d
2 changed files with 281 additions and 1 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
### Fixed
|
||||
|
||||
- Fixed `isImageLine()` to check for 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.
|
||||
- Fixed `isImageLine()` to check for image escape sequences anywhere in a line, not just at the start. This prevents TUI crashes when rendering lines containing image data. ([#1091](https://github.com/badlogic/pi-mono/pull/1091) by [@zedrdave](https://github.com/zedrdave))
|
||||
|
||||
## [0.50.4] - 2026-01-30
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue