From 4b25e84c2ebd4b5c93dace2f8b9422fa15e50010 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 10:47:13 +0000 Subject: [PATCH] Assert null RPC results for void agent methods in smoke tests Co-authored-by: Theo Browne --- apps/t3/scripts/smoke-test.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/t3/scripts/smoke-test.mjs b/apps/t3/scripts/smoke-test.mjs index 9d0294233f..e453021be7 100644 --- a/apps/t3/scripts/smoke-test.mjs +++ b/apps/t3/scripts/smoke-test.mjs @@ -2200,7 +2200,7 @@ async function main() { method: "agent.kill", params: killableAgentSessionId, }); - if (killResponse.ok !== true) { + if (killResponse.ok !== true || killResponse.result !== null) { throw new Error("Smoke test failed: expected successful agent.kill response."); } const killableExitEvent = await killableExitPromise; @@ -2259,7 +2259,7 @@ async function main() { data: "ping\n", }, }); - if (writeResponse.ok !== true) { + if (writeResponse.ok !== true || writeResponse.result !== null) { throw new Error("Smoke test failed: expected successful agent.write response."); } const writableOutputEvent = await writableOutputPromise; @@ -2303,7 +2303,7 @@ async function main() { method: "agent.kill", params: "missing-agent-session", }); - if (unknownAgentKillResponse.ok !== true) { + if (unknownAgentKillResponse.ok !== true || unknownAgentKillResponse.result !== null) { throw new Error( `Smoke test failed: expected successful unknown-session agent.kill no-op, got ${JSON.stringify( unknownAgentKillResponse,