kimi-code icon indicating copy to clipboard operation
kimi-code copied to clipboard

[ACP] session/update can arrive after the session/prompt response following a session/cancel (ACP-CANCEL-002)

Open agourakis82 opened this issue 2 months ago • 0 comments

Found by running the official acp-tck v1 suite against kimi acp (Kimi Code CLI 0.34.0).

ACP-CANCEL-002 (MANDATORY): FAIL

Every session/update for the cancelled session arrives before the session/prompt response; none arrive after it. "None arrive after it" is checked with a quiet period, not an infinite wait. (docs/protocol/v1/prompt-turn.mdx:343, Req 28)

I don't have the exact transcript bytes to paste here — the machine that ran this had an SSH/network drop before I could pull the full JSON report, and I didn't want to hold this finding until it's back up. The TCK's own requirement is precise though: after session/cancel is sent during an in-flight session/prompt and the session/prompt response comes back, no further session/update for that session should arrive afterward (checked with a quiet-period timeout, not instantaneously).

(For reference, I hit the same requirement failing against claude-agent-acp for a different reason — a setTimeout(0)-deferred available_commands_update racing the response under event-loop load: agentclientprotocol/claude-agent-acp#1200. Not assuming the same cause here, just flagging the pattern in case it's useful context — Kimi's own cause could easily be something else entirely, e.g. a background task tied to the turn that isn't cancelled along with the prompt.)

Happy to re-run and attach the full transcript + JSON report once I confirm it's reproducible — wanted to get this filed rather than sit on it. Let me know if that's useful or if you'd rather I just come back with the transcript in hand.

agourakis82 avatar Oct 01 '26 09:10 agourakis82