From f997cc371652b54afd32118f1d83580dfc725095 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 06:05:09 +0000 Subject: [PATCH] Assert listSessions reflects bootstrap session when startup succeeds Co-authored-by: Theo Browne --- apps/t3/scripts/smoke-test.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/t3/scripts/smoke-test.mjs b/apps/t3/scripts/smoke-test.mjs index 891b91e1d5..67ff2477e9 100644 --- a/apps/t3/scripts/smoke-test.mjs +++ b/apps/t3/scripts/smoke-test.mjs @@ -1675,6 +1675,7 @@ async function main() { ) { throw new Error("Smoke test failed: app.bootstrap response payload mismatch."); } + const bootstrapSessionId = bootstrapResponse.result.session.sessionId; const listedSessionsResponse = await sendWsRequest(ws, { id: "smoke-providers-list-sessions", @@ -1688,6 +1689,14 @@ async function main() { throw new Error("Smoke test failed: providers.listSessions entry missing sessionId."); } } + const listedIncludesBootstrap = listedSessionsResponse.result.some( + (session) => session?.sessionId === bootstrapSessionId, + ); + if (!bootstrapResponse.result.bootstrapError && !listedIncludesBootstrap) { + throw new Error( + `Smoke test failed: providers.listSessions did not include bootstrap session ${bootstrapSessionId}.`, + ); + } const todoTitle = `Smoke todo ${String(backendPort)}-${String(webPort)}-${Date.now()}`; const addedTodosResponse = await sendWsRequest(ws, {