Skip to content
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
This repository was archived by the owner on Sep 23, 2026. It is now read-only.

Bug: Breaking ACP terminal usage #1517

Open

Description

@try-works

What version of Kimi Code CLI is running?

1.22.0

Which open platform/subscription were you using?

Unclear question. Kimi Coding Plan. Kimi CLI and acpx

Which model were you using?

Kimi K2.5 from the coding plan

What platform is your computer?

Windows 11

What issue are you seeing?

I built workflow that lets Codex spawn Kimi sub-agents via ACP. However, due to terminal execution being broken, it does not fully work.

Windows Execution Policy

rlm-workflow-acp supports ACP delegation on Windows with this policy:

  • ACP (acpx) is the control plane only (session + prompt delivery).
  • Kimi writes code and RLM artifacts directly in the assigned worktree/run folder.
  • Delegated verification (Phase 4) is executed inside the delegated ACP session via the MCP argv-runner (rlm-command-runner / rlm_run_command) and must produce an evidence JSON file under the run folder.
  • Direct kimi acp Shell/Terminal execution via ACP terminal/create is treated as unreliable/unsupported on Windows for now.

What Moonshot needs to fix in Kimi Code CLI for full ACP-on-Windows support:

  • In ACP mode, the Shell tool is replaced with an ACP terminal-backed tool. Today it calls terminal/create with a single combined command string. On Windows this fails because the ACP client tries to spawn an executable literally named like "py -3 -m unittest ...".
  • The fix is to pass argv correctly to ACP: call terminal/create(command=<executable>, args=[...]) (or wrap via powershell.exe -command <string> like the non-ACP Shell tool does), and include cwd so execution happens in the assigned worktree.

My issue is related to this currently open issue: #1380

What steps can reproduce the bug?

Call Kimi over ACP and let it run terminal commands.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bug
    on Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions