fix(coding-agent): make footer truncation width-aware

Use visibleWidth/truncateToWidth for footer path and stats truncation so wide Unicode text cannot overflow terminal width.

Add regression tests for wide session/model/provider names and document the fix in changelog.

closes #1833
This commit is contained in:
Mario Zechner 2026-03-05 20:44:16 +01:00
parent dabcda0db3
commit 3de8c48692
3 changed files with 123 additions and 23 deletions

View file

@ -5,6 +5,7 @@
### Fixed
- Fixed editor/footer visibility drift during terminal resize by forcing full redraws when terminal width or height changes ([#1844](https://github.com/badlogic/pi-mono/pull/1844) by [@ghoulr](https://github.com/ghoulr)).
- Fixed footer width truncation for wide Unicode text (session name, model, provider) to prevent TUI crashes from rendered lines exceeding terminal width ([#1833](https://github.com/badlogic/pi-mono/issues/1833)).
## [0.56.1] - 2026-03-05