MoonshotAI / MoonshotAI/kimi-cli

Text rendering breaks at line wrap boundaries on Linux terminals (scrollbar-related)

Open
#2,081 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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
  • Image 2 (without a scrollbar):
Image
Steps to reproduce
  1. Open Kimi Code CLI in a Linux terminal.
  2. Resize the terminal so that output lines are close to the window width.
  3. Trigger output that causes wrapping (e.g., a long response or file listing).
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.