Skip to content

JetBrains/PyCharm 集成 Kimi Code CLI(ACP)握手失败:AcpExpectedError: Invalid params,导致会话无法建立、历史不可用,/sessions 提示 Unknown slash command || JetBrains/PyCharm integrated Kimi Code CLI (ACP) handshake failed: AcpExpectedError: Invalid params, causing the session to be unable to be established, the history to be unavailable, and /sessions prompting Unknown slash command #764

Description

@2212998208

What feature would you like to see?

关于Pycharm等IDEA,asp功能实现不全面,我希望能完全接入Pycharm的asp功能。

问题描述

在 PyCharm(JetBrains AI Chat + ACP)中接入 Kimi Code CLI 作为 ACP agent server 时,ACP 会话初始化失败,导致无法建立/持久化聊天会话;同时在 IDE 里输入 /sessions 会提示 Unknown slash command,历史(时钟)按钮为灰色不可用。

环境

  • OS:Linux
  • IDE:PyCharm(JetBrains)
  • Kimi Code CLI:kimi version 1.3
  • 启动方式:kimi acp

复现步骤

  1. 配置 ~/.jetbrains/acp.json(见下方)
  2. 在 PyCharm AI Chat 选择 Kimi Code CLI
  3. 发送任意消息或输入 /sessions
  4. 观察:历史按钮灰;/sessions 返回 Unknown slash command "/sessions";ACP 日志中握手失败并终止进程

预期行为

  • ACP initialize/handshake 成功,不报错
  • IDE 历史可用,或 ACP 模式下提供等价的会话回顾/恢复能力

实际行为

  • ACP session 初始化报错:AcpExpectedError: Invalid params
  • Kimi 进程随后被终止(SIGTERM / exit code 143)
  • /sessions 在 IDE 内返回 unknown slash command

配置(acp.json)

{
  "agent_servers": {
    "Kimi Code CLI": {
      "command": "/home/ninico/.local/bin/kimi",
      "args": ["acp"],
      "env": {}
    }
  }
}


### Additional information

_No response_
<!--This is a translation content dividing line, the content below is generated by machine, please do not modify the content below-->
---
### What feature would you like to see?

Regarding IDEA such as Pycharm, the asp function is not fully implemented. I hope to be able to fully access Pycharm's asp function.

## Problem description
When connecting Kimi Code CLI as the ACP agent server in PyCharm (JetBrains AI Chat + ACP), the ACP session initialization fails, resulting in the inability to establish/persist the chat session; at the same time, entering `/sessions` in the IDE will prompt an Unknown slash command, and the history (clock) button is gray and unavailable.

## Environment
- OS: Linux
- IDE: PyCharm (JetBrains)
- Kimi Code CLI: kimi version 1.3
- Start mode: `kimi acp`

## Reproduction steps
1. Configure `~/.jetbrains/acp.json` (see below)
2. Select Kimi Code CLI in PyCharm AI Chat
3. Send any message or enter `/sessions`
4. Observation: The history button is gray; `/sessions` returns `Unknown slash command "/sessions"`; the handshake fails in the ACP log and the process is terminated

## expected behavior
- ACP initialize/handshake is successful and no error is reported
- IDE history available, or equivalent session review/recovery capabilities in ACP mode

## Actual behavior
- ACP session initialization error: `AcpExpectedError: Invalid params`
- The Kimi process is subsequently terminated (SIGTERM/exit code 143)
- `/sessions` returns unknown slash command in IDE

## Configuration (acp.json)
```json
{
  "agent_servers": {
    "Kimi Code CLI": {
      "command": "/home/ninico/.local/bin/kimi",
      "args": ["acp"],
      "env": {}
    }
  }
}


### Additional information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions