From 3db534fbac608ba530a06aa244c91019404ae674 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 15:41:49 +0000 Subject: [PATCH] Tighten smoke bootstrap expectations under fake codex runtime Co-authored-by: Theo Browne --- apps/t3/scripts/smoke-test.mjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/t3/scripts/smoke-test.mjs b/apps/t3/scripts/smoke-test.mjs index f0fa3598b9..e7c092ff53 100644 --- a/apps/t3/scripts/smoke-test.mjs +++ b/apps/t3/scripts/smoke-test.mjs @@ -2303,8 +2303,11 @@ async function main() { bootstrapResponse.result?.provider !== "codex" || typeof bootstrapResponse.result?.model !== "string" || bootstrapResponse.result.model.length === 0 || + bootstrapResponse.result?.bootstrapError !== undefined || typeof bootstrapResponse.result?.session?.sessionId !== "string" || - bootstrapResponse.result.session.sessionId.length === 0 + bootstrapResponse.result.session.sessionId.length === 0 || + bootstrapResponse.result.session.status !== "ready" || + bootstrapResponse.result.session.threadId !== "thread-fake" ) { throw new Error("Smoke test failed: app.bootstrap response payload mismatch."); } @@ -2325,7 +2328,7 @@ async function main() { const listedIncludesBootstrap = listedSessionsResponse.result.some( (session) => session?.sessionId === bootstrapSessionId, ); - if (!bootstrapResponse.result.bootstrapError && !listedIncludesBootstrap) { + if (!listedIncludesBootstrap) { throw new Error( `Smoke test failed: providers.listSessions did not include bootstrap session ${bootstrapSessionId}.`, );