MoonshotAI / MoonshotAI/kimi-cli

[Performance] UI lags minutes behind actual file writes for ~800 line files

Open
#1,786 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
11.4k
Forks
1.3k
Avg merge
9h 47m
Merged PRs (30d)
2

Description

Describe the bug

When writing long files in Kimi CLI v1.30, the UI refresh progressively slows down during write operations, lagging minutes to tens of minutes behind actual disk completion. The file content is already fully written to disk (verified by opening in external editors), but the CLI UI continues to slowly refresh, creating severe workflow disruption.

To Reproduce

Steps to reproduce the behavior:

  1. Run Kimi CLI v1.30 on Ubuntu 24.04
  2. Request generation of a file ~800 lines (code or documentation)
  3. Observe the UI write progress indicator
  4. During the "slow refresh" phase, open the target file in an external editor (e.g., VS Code, vim, cat)
  5. Observe: File is complete on disk while CLI UI continues to lag for minutes to tens of minutes
Expected behavior

UI should reflect write progress in near real-time, with seconds of delay at most—not minutes.

Actual behavior
Metric Value
File size tested ~800 lines
UI lag duration Several minutes to tens of minutes
Disk write status Complete (verified externally)
Occurrence frequency High / consistent
Affected modes Both ACP and Web mode
Affected file types Code and documentation
Environment

Kimi CLI: 1.30
OS: Ubuntu 24.04
Modes affected: ACP, Web

Severity

High — This makes long file operations practically unusable, as users cannot reliably determine when the operation is actually complete.

Additional context
  • This is clearly a UI rendering/buffering bottleneck, not a disk I/O issue
  • The delay scales with file length (shorter files less affected)
  • No visible error messages or crashes—just extreme UI slowness

https://github.com/user-attachments/assets/bf09d864-dd88-4b1c-b99c-4b5beae7abe8

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

Reproduce the lag with Kimi CLI v1.30 on Ubuntu 24.04 by generating an approximately 800-line file, testing both ACP and Web modes. Compare the UI progress with the file observed externally in VS Code, vim, or cat. Done means long writes complete with UI delay of seconds rather than minutes, without regressions for code or documentation files.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.