MoonshotAI / MoonshotAI/kimi-cli

Approve for this session doesn't work

Open
#2,480 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?

0.20.1

Which open platform/subscription were you using?

Kimi Code (OAuth)

Which model were you using?

K2.7 Code

What platform is your computer?

Darwin 27.0.0 arm64 arm

What issue are you seeing?

Kimi-CLI doesn't respect "Approve for this session" option when working. Even though I give it permission for the session, it keeps asking for the same exact permission every single time and it is extremely frustrating to work with. For example when you want it to read a code base, it keeps asking for read permissions for every single file.

What steps can reproduce the bug?
  • Give kimi-cli and instruction
  • kimi-cli asks for permission
  • Repeat
What is the expected behavior?

If I give permission for the session, it shouldn't ask me for it over and over again.

Additional information

This problem is not something new, it existed well before version 0.15. Also it is system or terminal independent. I have the same problem both on my MacOS machine and Windows machine. There is a similar issue #2448 , but since that is related to YOLO mode, I have created a separate bug report.

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 issue with Kimi Code CLI 0.20.1 using the listed steps, then trace how the session approval choice is stored and checked. Done means granting approval once allows subsequent matching file-read requests without repeated prompts, on the reported platforms or in an equivalent test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authorization, 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.