kimi-code/apps
caiji 58e2915c0f
fix(tui): clamp session picker lines to terminal width to fix narrow-terminal crash (#247)
* fix(tui): clamp session picker lines to terminal width

The /sessions picker drew long session ids, the inline time/(current)
badge, and long prompts past the terminal edge on narrow terminals. The
pi-tui renderer enforces that no line exceeds the terminal width and
threw 'Rendered line exceeds terminal width', crashing the app.

Clamp every line the picker emits to the terminal width via
truncateToWidth so it degrades gracefully instead of crashing.

Fixes #240

* fix(tui): simplify changeset and de-CJK session picker test

Address review feedback on #247:
- shorten the changeset to a single sentence
- replace the Chinese test title with an English one

---------

Co-authored-by: liruifengv <liruifeng1024@gmail.com>
2026-06-02 14:53:47 +08:00
..
kimi-code fix(tui): clamp session picker lines to terminal width to fix narrow-terminal crash (#247) 2026-06-02 14:53:47 +08:00
vis refactor: background task manager persistence (#285) 2026-06-02 12:48:31 +08:00