MoonshotAI / MoonshotAI/kimi-cli

Too many open files in system error constantly crashes the agent

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

Nobody has claimed this yet.

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

Description

What version of Kimi Code CLI is running?

1.40.0

Which open platform/subscription were you using?

kimi code

Which model were you using?

2.6

What platform is your computer?

macos

What issue are you seeing?

cli crashes after saying too many files open while no other agent is facing this ever, only kimi. also no other agent is working on the same dir but eve if it was, this seems to be a logic problem.

What steps can reproduce the bug?

mostly happens when im using various agents codex and claude and kimi at the same time not even necessarily on the same projects, so maybe it is an mcp issues or things they launch in the background colliding but anyhow it is getting very very annoying.

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 crash on macOS with Kimi running alongside Codex or Claude, including cases with and without shared projects. Then trace how the CLI and any MCP or background processes open and close files. Done means identifying the file-descriptor conflict or leak, preventing the agent from crashing, and adding a regression test for the reported condition.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.