From 964e6ed52cc6183215fd2e4bf820cfaf9cab8f5c Mon Sep 17 00:00:00 2001 From: OrcaWin Date: Fri, 16 Oct 2026 09:06:11 -0700 Subject: [PATCH] test: answer setup probes in real ACP process fixtures (#29742) Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com> --- src/main/acp/acp-structured-broken-stream.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/acp/acp-structured-broken-stream.test.ts b/src/main/acp/acp-structured-broken-stream.test.ts index 96ab98eda2f..b47ffbc34ea 100644 --- a/src/main/acp/acp-structured-broken-stream.test.ts +++ b/src/main/acp/acp-structured-broken-stream.test.ts @@ -40,6 +40,14 @@ const agentScript = (onPrompt: string): string => String.raw` send({ id: frame.id, result: { protocolVersion: 1, agentCapabilities: {} } }) } else if (frame.method === 'session/new') { send({ id: frame.id, result: JSON.parse(process.env.ORCA_TEST_SESSION) }) + } else if (frame.method === '_x.ai/subagent/cancel') { + send({ id: frame.id, error: { + code: -32602, message: 'Invalid params', data: 'invalid params: missing field \`subagentId\`' + } }) + } else if (frame.method === '_x.ai/task/kill') { + send({ id: frame.id, error: { + code: -32602, message: 'Invalid params', data: 'invalid params: missing field \`sessionId\`' + } }) } else if (frame.method === 'session/prompt') { const update = { sessionUpdate: 'agent_message_chunk', content: { type: 'text', text: 'partial' } } send({