MoonshotAI / MoonshotAI/kimi-code

__kimi_cli_line_pre_redraw when using the ZSH shell integration causes issues after migration from kimi-cli

Open
#176 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.5.0

Which open platform/subscription were you using?

Kimi Code

Which model were you using?

kimi-for-coding

What platform is your computer?

Darwin 25.5.0 arm64 arm

What issue are you seeing?

To resume this session: kimi -r ses_fbe574f3-572d-487f-9fa0-d09694f599d4
Development/cesiumdb  ↱ mainline ±  g
__kimi_cli_line_pre_redraw:18: job table full or recursion limit exceeded
Development/cesiumdb  ↱ mainline ±  gi
__kimi_cli_line_pre_redraw:18: job table full or recursion limit exceeded
Development/cesiumdb  ↱ mainline ±  git
__kimi_cli_line_pre_redraw:18: job table full or recursion limit exceeded
Development/cesiumdb  ↱ mainline ±  git
__kimi_cli_line_pre_redraw:18: job table full or recursion limit exceeded
Development/cesiumdb  ↱ mainline ±  git p
__kimi_cli_line_pre_redraw:18: job table full or recursion limit exceeded
Development/cesiumdb  ↱ mainline ±  git pu
__kimi_cli_line_pre_redraw:18: job table full or recursion limit exceeded
Development/cesiumdb  ↱ mainline ±  git pus
__kimi_cli_line_pre_redraw:18: job table full or recursion limit exceeded
Development/cesiumdb  ↱ mainline ±  git push
__kimi_cli_line_pre_redraw:18: job table full or recursion limit exceeded
Development/cesiumdb  ↱ mainline ±  git push
__kimi_cli_line_pre_redraw:18: job table full or recursion limit exceeded

What steps can reproduce the bug?

Ensure that kimi-cli is integrated into oh my zsh, then migrate from kimi-cli to kimi-code, reload your shell.

What is the expected behavior?

No response

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

Start by reproducing the issue with kimi-cli integrated into Oh My Zsh, then migrate to Kimi Code and reload the shell. Inspect the __kimi_cli_line_pre_redraw function at the reported line 18 and trace the Zsh integration involved. Done means typing commands after migration no longer produces the job-table or recursion-limit error.

Written by the indexing model from the issue text.

Assessment

Tech stack
zsh
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.