MoonshotAI / MoonshotAI/kimi-code

[Feature Request] ACP: support _cognition.ai/session/rename so session renames in Devin Desktop persist

Open
#2,773 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
7.5k
Forks
1.2k
Avg merge
11h 53m
Merged PRs (30d)
350

Description

Summary

kimi-code's ACP server does not implement the _cognition.ai/session/rename extension method, so renaming a kimi session in Devin Desktop's sidebar never persists — the UI rename is silently lost, and the session keeps showing its auto-derived title (the raw first user message, e.g. a long <resource uri="..."> blob).

Reproduction

  1. Run kimi-code as an ACP agent in Devin Desktop (v3.6.27, Linux; both Local and Remote-SSH setups).
  2. Create a kimi session, then rename it in the sidebar.
  3. The rename never reaches the kimi session store: state.json keeps "isCustomTitle": false and the old auto title.

Protocol-level evidence

Sending the extension method directly to kimi acp:

>>> {"jsonrpc":"2.0","id":2,"method":"_cognition.ai/session/rename",
     "params":{"sessionId":"session_58fe…","title":"probe"}}
<<< {"jsonrpc":"2.0","id":2,"error":{"code":-32601,
     "message":"\"Method not found\": _cognition.ai/session/rename", ...}}

availableCommands in the session/new response is also empty, so /title (the TUI rename command) is not reachable via ACP either.

Why this should be a small change

The rename machinery already exists:

  • /title (alias /rename) slash command persists custom_title into state.json (see #1536, PR #1543, PR #1685)
  • renameSession in the web/harness API
  • state.json already carries title + isCustomTitle fields

The ACP layer just needs to route _cognition.ai/session/rename ({sessionId, title}) to that existing path (set custom title + isCustomTitle=true so auto-title never overwrites it).

If a standardized ACP rename method is adopted later, supporting that instead would equally resolve this.

Environment

  • kimi-code 0.34.0 (linux x64, native binary)
  • Devin Desktop 3.6.27 (Linux), ACP protocolVersion 1

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 at the kimi acp entry point and inspect how ACP methods are routed, then compare it with the existing /title or /rename command and the renameSession web/harness API. Verify the request using _cognition.ai/session/rename and confirm that state.json persists the requested title with isCustomTitle set to true.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.