mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
25f17a104d
A single very long line (e.g. minified JSON, base64 blob) could wrap into hundreds of visual rows in the TUI even when within the line-count and byte-count limits. Core layer (truncate.go): - Add defaultMaxLineLen (2000 chars) per-line cap - Apply truncateLongLines() in both TruncateTail and truncateHead before line/byte truncation - Append '[N chars truncated]' marker to capped lines UI layer: - Cap lines in renderBashBody() to width*3 chars before rendering - Cap lines in shell display handler (model.go) similarly Add comprehensive tests in truncate_test.go.