MoonshotAI / MoonshotAI/kimi-cli

Web UI启动时的afk选项和--no-restrict-sensitive-apis互斥 || The afk option when starting the Web UI and --no-restrict-sensitive-apis are mutually exclusive

Open
#2,201 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.41.0

Which open platform/subscription were you using?

kimi code

Which model were you using?

kimi-for-coding

What platform is your computer?

Linux 6.8.0-107-generic x86_64 x86_64

What issue are you seeing?

Web UI启动时的afk选项和--no-restrict-sensitive-apis互斥。
情况1:如果两个选项同时开启,kimi配置default_yolo = true,在网页会话中退出plan模式时会报错:

ExitPlanMode
[...
Client unsupported
error:
The connected client does not support plan mode. Do NOT call this tool again.
message:
The connected client does not support plan mode. Do NOT call this tool again.

情况2:如果两个选项同时开启,kimi配置default_yolo = fasle,所有命令都会要求approve

What steps can reproduce the bug?

kimi --afk web --no-restrict-sensitive-apis --public

What is the expected behavior?

No response

Additional information

No response


What version of Kimi Code CLI is running?

1.41.0

Which open platform/subscription were you using?

kimi code

Which model were you using?

kimi-for-coding

What platform is your computer?

Linux 6.8.0-107-generic x86_64 x86_64

What issue are you seeing?

The afk option when starting the Web UI and --no-restrict-sensitive-apis are mutually exclusive.
Case 1: If both options are enabled at the same time and kimi configures default_yolo = true, an error will be reported when exiting plan mode in a web session:

ExitPlanMode
[…
Client unsupported
error:
The connected client does not support plan mode. Do NOT call this tool again.
message:
The connected client does not support plan mode. Do NOT call this tool again.

Case 2: If both options are enabled at the same time, kimi configures default_yolo = fasle, and all commands will require approve

What steps can reproduce the bug?

kimi --afk web --no-restrict-sensitive-apis --public

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

Reproduce the issue with kimi --afk web --no-restrict-sensitive-apis --public, testing both default_yolo = true and default_yolo = false. Trace the handling of the afk Web UI option and sensitive-API restriction to determine why plan-mode exit fails or every command requires approval; done means both configurations behave consistently without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.