MoonshotAI / MoonshotAI/kimi-code

Kimi web rendering spaces as new lines

Open
#3,309 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
7.5k
Forks
1.2k
Avg merge
11h 53m
Merged PRs (30d)
350

Description

What version of Kimi Code is running?

0.39.0

Which open platform/subscription were you using?

third party

Which model were you using?

glm-5.3-flash (not relevant)

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What issue are you seeing?

In Kimi Web, some spaces of the model's response are wrongly interpreted as new lines? Also seems like there are some duplicated lines. Below some screenshot of the same session in CLI and web.

Image Image Image

correct rendering:

Image
What steps can reproduce the bug?

run kimi web --host, send any prompt

What is the expected behavior?

show model response like in CLI without duplicated lines and without new lines

Additional information

this started happening immediately after updating to 0.39.0. Never happened in 0.38.0

Contribution
  • I am willing to submit a PR for this bug fix myself (please wait for maintainer approval in this issue first)

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

Start by running kimi web --host on version 0.39.0 and compare the web output with the CLI response, using the screenshots and the 0.38.0 behavior as references. Trace the web response-rendering entry point to identify where spaces become line breaks or duplicated lines. Done means the web view matches the CLI without duplicated lines or unintended new lines.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.