You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
ACP terminal tool fails with 'module acp has no attribute TerminalHandle' in v1.17 & v1.18 #1380
When using kimi-cli (v1.17.0 or v1.18.0) as an ACP agent in Zed IDE, the terminal/shell tool fails with: Error running tool: module acp has no attribute TerminalHandle.
The root cause is that kimi-cli v1.17+ depends on agent-client-protocol==0.8.0, where TerminalHandle was removed from the public API (per ACP SDK migration guide / changelog).
However, the code in src/kimi_cli/acp/tools.py still uses it:
The root cause is that acp.TerminalHandle was removed in agent-client-protocol >= 0.8.0 (per the migration guide), but tools.py and kaos.py still reference it for type annotations and runtime assertions.
Fix in #1524: adds a lightweight local TerminalHandle adapter in acp/terminal.py that wraps the raw Client.wait_for_terminal_exit(), Client.terminal_output(), Client.kill_terminal(), and Client.release_terminal() methods behind the same interface. All 21 ACP tests pass.
Activity
mozhewen commentedon Mar 11, 2026
Still not work in 1.19.0
fix: replace removed acp.TerminalHandle with Client terminal methods
try-works commentedon Mar 19, 2026
I want to bump this issue because the failing terminal tool is causing Kimi to fail on tasks when called as a sub-agent
Br1an67 commentedon Mar 20, 2026
The root cause is that
acp.TerminalHandlewas removed inagent-client-protocol >= 0.8.0(per the migration guide), buttools.pyandkaos.pystill reference it for type annotations and runtime assertions.Fix in #1524: adds a lightweight local
TerminalHandleadapter inacp/terminal.pythat wraps the rawClient.wait_for_terminal_exit(),Client.terminal_output(),Client.kill_terminal(), andClient.release_terminal()methods behind the same interface. All 21 ACP tests pass.gp3t1 commentedon Mar 20, 2026
I tested PR #1400 locally and it resolves the problem on my setup.
@RealKai42 Could you share your thoughts on this approach?
Is this aligned with the expected ACP usage going forward?
Happy to help test, if needed.