MoonshotAI / MoonshotAI/kimi-cli

IDEA 2026.1 KIMI CLI, ACP, Failed to initialize ACP session. Error: Internal error: "list.index(x): x not in list"

Open
#1,737 1 comment 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.28.0

Which open platform/subscription were you using?

/login

Which model were you using?

kimi-for-codin

What platform is your computer?

win11 jdk21

What issue are you seeing?

Failed to initialize ACP session. Error: Internal error: "list.index(x): x not in list"

Image
What steps can reproduce the bug?

IDEA 2026.1 使用Jetbrains AI Assistant, 通过ACP链接KIMI CLI。
发送第一个内容时就报错。
Failed to initialize ACP session. Error: Internal error: "list.index(x): x not in list"。Jetbrains反馈说没有问题。不是jetbrains的bug。https://youtrack.jetbrains.com/issue/LLM-25867/AI-Agent-Kimi-Cli-Failed-to-initialize-ACP-session.-Error-Internal-error-list.indexx-x-not-in-list

What is the expected behavior?

可以正常使用

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 ACP session initialization failure from JetBrains AI Assistant on Windows 11 with Kimi Code CLI 1.28.0, using /login and the kimi-for-codin model. Trace the ACP initialization entry point around the reported "list.index(x): x not in list" error and compare the behavior with the linked YouTrack report. Done means the first message establishes an ACP session and can be used normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.