MoonshotAI / MoonshotAI/kimi-cli
Text rendering breaks at line wrap boundaries on Linux terminals (scrollbar-related)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 11.4k
- Forks
- 1.3k
- Avg merge
- 9h 47m
- Merged PRs (30d)
- 2
Description
What feature would you like to see?
Description
Hi Kimi team,
First of all, thanks for the great work on Kimi Code CLI.
I've noticed a text rendering issue on Linux terminals where words get visually cut off or display incorrectly at line wrap boundaries. The problem appears to be related to whether the terminal currently shows a scrollbar or not.
Environment
- OS: Linux
- Terminal: GNOME Terminal
- Kimi CLI version: 1.39.0
Observed behavior
When the terminal window width causes a line wrap, the text does not reflow cleanly. Characters at the wrap point appear truncated or misaligned. This seems to correlate with the presence or absence of a scrollbar in the terminal window.
Expected behavior
Text should wrap cleanly at word or character boundaries regardless of scrollbar state, similar to how Claude Code handles this on the same terminal setup.
Screenshots
- Image 1 (broken):
- Image 2 (without a scrollbar):
Steps to reproduce
- Open Kimi Code CLI in a Linux terminal.
- Resize the terminal so that output lines are close to the window width.
- Trigger output that causes wrapping (e.g., a long response or file listing).
- Observe the difference in rendering when the scrollbar is present vs. absent.
Why this matters
This is a noticeable UX regression compared to Claude Code, which already handles this correctly on Linux terminals with scrollbars. Clean text rendering is critical for readability during long coding sessions.
Let me know if you need more details about my terminal configuration or if there's a workaround I can test.
Thanks!
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing the wrapping issue in a Linux GNOME Terminal while resizing the window and toggling scrollbar presence, then trace the CLI's terminal text-rendering path. Done means long output wraps without truncated or misaligned characters in both scrollbar states.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100