MoonshotAI / MoonshotAI/kimi-code
When `kimi code` is executed within a terminal, the script may freeze and then terminate unexpectedly.
Nobody has claimed this yet.
- 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.37.2
Which open platform/subscription were you using?
DeepSeek Official
Which model were you using?
deepseek-v4pro
What platform is your computer?
Windows
What issue are you seeing?
My code includes a Git HUSKY validation check that executes a Shell script before pushing the code. However, when I tried to push my code through the Kimi Code interface, the script froze and terminated immediately—without even completing its execution—forcing me to manually handle the situation.
What steps can reproduce the bug?
By using Kimi on the terminal and asking it to submit the code after completing the task – where the code submission is subject to additional Husky checks (processed using lint-staged + ESLint + Prettier) – this step proceeded without issues. However, when I asked Kimi to push the code, I configured a custom shell script; this step would execute the shell script, but an error occurred – Kimi suddenly froze and terminated, and my shell script was only partially executed.The primary purpose of this script is to execute git stash followed by npm run build:pre; if this fails, pushing is prohibited. Regardless of whether the operation succeeds or fails, git stash apply is always executed upon exiting the script. This script has been in use for over six months, and numerous other agents have used it to push code to me without any issues ever occurring – so it's unlikely to be a problem with the script itself.
What is the expected behavior?
No response
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
Start by reproducing the terminal push flow on Windows with the reported Husky shell script, including git stash, npm run build:pre, lint-staged, ESLint, and Prettier. Trace where Kimi freezes or terminates and verify that the script completes or fails predictably, with git stash apply still run on exit.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- eslint, git, shell, typescript
- Domain
- build-system, cli, developer-experience
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100