MoonshotAI / MoonshotAI/kimi-cli

Error: [provider.api_error] 400 an assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: Agent:0

Open
#2,405 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.6.0

Which open platform/subscription were you using?

/login

Which model were you using?

K2.6

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Error: [provider.api_error] 400 an assistant message with 'tool_calls' must be followed by tool messages responding
to each 'tool_call_id'. The following tool_call_ids did not have response messages: Agent:0

What steps can reproduce the bug?

Error: [provider.api_error] 400 an assistant message with 'tool_calls' must be followed by tool messages responding
to each 'tool_call_id'. The following tool_call_ids did not have response messages: Agent:0

session_d98e47fc-1713-4480-9f7e-ea279336d17d.zip

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 error with Kimi Code CLI 0.6.0 on the reported Windows environment, then inspect session_d98e47fc-1713-4480-9f7e-ea279336d17d.zip for the assistant tool call and missing response. Done means the reported session no longer produces the provider 400 error and each tool call receives its corresponding response.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.