What version of Kimi Code is running?
Kimi Code CLI: 0.23.1
Which open platform/subscription were you using?
Kimi Code CLI: 0.23.1
Which model were you using?
kimi for coding
What platform is your computer?
Linux
What issue are you seeing?
Environment
- Kimi Code CLI: 0.23.1 (native install, linux-x64), reproduced on 0.22.3 as well
- OS: Ubuntu 24.04 (x86_64)
- Auth: Kimi Code OAuth subscription (logged in via /login; interactive TUI works normally)
- ACP client: OpenHands Agent Canvas 1.1.0 / openhands-agent-server 1.32.0, reproduced with a minimal raw JSON-RPC client as well
Summary
When driven over ACP (kimi acp), prompts are accepted and the turn completes with stopReason: "end_turn", but no session/update notifications carrying response content are ever emitted — no agent_message_chunk, no agent_thought_chunk. Generic ACP clients therefore render an empty response ("No response from ACP server" in OpenHands Agent Canvas).
The interactive TUI (kimi) answers the same prompts normally, so the account, login, and model are fine.
Steps to reproduce (minimal raw client)
kimi acp
- Send:
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":1,"clientCapabilities":{"fs":{"readTextFile":true,"writeTextFile":true},"terminal":true},"clientInfo":{"name":"test","title":"Test","version":"1.0"}}}
- Send:
{"jsonrpc":"2.0","id":2,"method":"session/new","params":{"cwd":"/home/user","mcpServers":[]}}
→ returns a valid sessionId, plus one available_commands_update. Session config shows model kimi-code/kimi-for-coding (K2.7 Code), thinking: on.
- Send:
{"jsonrpc":"2.0","id":3,"method":"session/prompt","params":{"sessionId":"<sessionId>","prompt":[{"type":"text","text":"Answer in one sentence: what is 2+2?"}]}}
Actual behavior
Observed on stdout after step 4 (entire output):
{"jsonrpc":"2.0","id":3,"result":{"stopReason":"end_turn"}}
No session/update with agent_message_chunk or agent_thought_chunk is emitted at any point between the prompt and the result. Reproduced both with empty clientCapabilities and with fs + terminal capabilities declared.
Expected behavior
session/update notifications streaming the assistant's response (agent_message_chunk, and agent_thought_chunk when thinking is enabled) before the session/prompt result, as described in the kimi acp reference.
Additional context
- Possibly related to the thinking-enabled default (
thinking: on): the answer may be produced only as reasoning content that is never mapped to ACP updates.
- Result latency (11–14 s per prompt in Agent Canvas logs) suggests the model does generate a response server-side; it is just never surfaced over ACP.
What steps can reproduce the bug?
Steps to reproduce (minimal raw client)
kimi acp
- Send:
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":1,"clientCapabilities":{"fs":{"readTextFile":true,"writeTextFile":true},"terminal":true},"clientInfo":{"name":"test","title":"Test","version":"1.0"}}}
- Send:
{"jsonrpc":"2.0","id":2,"method":"session/new","params":{"cwd":"/home/user","mcpServers":[]}}
→ returns a valid sessionId, plus one available_commands_update. Session config shows model kimi-code/kimi-for-coding (K2.7 Code), thinking: on.
- Send:
{"jsonrpc":"2.0","id":3,"method":"session/prompt","params":{"sessionId":"<sessionId>","prompt":[{"type":"text","text":"Answer in one sentence: what is 2+2?"}]}}
What is the expected behavior?
No response
Additional information
No response
What version of Kimi Code is running?
Kimi Code CLI: 0.23.1
Which open platform/subscription were you using?
Kimi Code CLI: 0.23.1
Which model were you using?
kimi for coding
What platform is your computer?
Linux
What issue are you seeing?
Environment
Summary
When driven over ACP (
kimi acp), prompts are accepted and the turn completes withstopReason: "end_turn", but nosession/updatenotifications carrying response content are ever emitted — noagent_message_chunk, noagent_thought_chunk. Generic ACP clients therefore render an empty response ("No response from ACP server" in OpenHands Agent Canvas).The interactive TUI (
kimi) answers the same prompts normally, so the account, login, and model are fine.Steps to reproduce (minimal raw client)
kimi acp{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":1,"clientCapabilities":{"fs":{"readTextFile":true,"writeTextFile":true},"terminal":true},"clientInfo":{"name":"test","title":"Test","version":"1.0"}}}{"jsonrpc":"2.0","id":2,"method":"session/new","params":{"cwd":"/home/user","mcpServers":[]}}→ returns a valid
sessionId, plus oneavailable_commands_update. Session config shows modelkimi-code/kimi-for-coding(K2.7 Code),thinking: on.{"jsonrpc":"2.0","id":3,"method":"session/prompt","params":{"sessionId":"<sessionId>","prompt":[{"type":"text","text":"Answer in one sentence: what is 2+2?"}]}}Actual behavior
Observed on stdout after step 4 (entire output):
No
session/updatewithagent_message_chunkoragent_thought_chunkis emitted at any point between the prompt and the result. Reproduced both with emptyclientCapabilitiesand withfs+terminalcapabilities declared.Expected behavior
session/updatenotifications streaming the assistant's response (agent_message_chunk, andagent_thought_chunkwhen thinking is enabled) before thesession/promptresult, as described in the kimi acp reference.Additional context
thinking: on): the answer may be produced only as reasoning content that is never mapped to ACP updates.What steps can reproduce the bug?
Steps to reproduce (minimal raw client)
kimi acp{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":1,"clientCapabilities":{"fs":{"readTextFile":true,"writeTextFile":true},"terminal":true},"clientInfo":{"name":"test","title":"Test","version":"1.0"}}}{"jsonrpc":"2.0","id":2,"method":"session/new","params":{"cwd":"/home/user","mcpServers":[]}}→ returns a valid
sessionId, plus oneavailable_commands_update. Session config shows modelkimi-code/kimi-for-coding(K2.7 Code),thinking: on.{"jsonrpc":"2.0","id":3,"method":"session/prompt","params":{"sessionId":"<sessionId>","prompt":[{"type":"text","text":"Answer in one sentence: what is 2+2?"}]}}What is the expected behavior?
No response
Additional information
No response