test: answer setup probes in real ACP process fixtures (#29742)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
OrcaWin
2026-10-16 09:06:11 -07:00
committed by GitHub
co-authored by OrcaWin
parent 3d478da344
commit 964e6ed52c
@@ -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({