tui: lower default visible chat window 200->60 (faster long-session resume)
The cold cost is dominated by the one-shot mount of the whole visible
window at load/switch time. 200 _ChatItemView widgets each parse Markdown,
build Content, compute height and run layout in one pass. 60 cuts that
peak ~3.3x with no loss for streaming (signature cache + throttle + render
cache keep per-token cost O(1) once mounted). Model cap (max_visible_items
* 3) follows automatically: 600 -> 180. Older items collapse into the
existing "... N earlier messages not shown" hint.
1 parent e01d8fe commit 0e6aa0dae1bd59b67542d8b1ddbffb889f593af9
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 14 Jul
Showing 2 changed files
View
clients/terminal/tui/settings.py
View
tests/clients/test_tui_settings.py