fix: add ellipsis for truncated status indicator (#12540)

#### What

- Add ellipsis truncation of the status indicator, similar to equivalent
truncation done in the footer.
- Extract truncation helpers into separate file



https://github.com/user-attachments/assets/a2d5f22f-8adc-456e-8059-97359194c25c


#### Tests
Updated relevant snapshot tests
This commit is contained in:
sayan-oai
2026-02-23 11:45:46 -08:00
committed by GitHub
parent 7f75e74201
commit bfe622f495
10 changed files with 113 additions and 98 deletions

View File

@@ -3,7 +3,7 @@ source: tui/src/chatwidget/tests.rs
expression: terminal.backend()
---
" "
"• Working (0s • esc to interrupt) · 1 background terminal running · /ps to view "
"• Working (0s • esc to interrupt) · 1 background terminal running · /ps to view"
" "
" "
" Ask Codex to do anything "