From 462abf326a2247ebc08c43730341ab98b1eb3436 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 28 Apr 2026 19:35:01 +0100 Subject: [PATCH] test(release): harden live validation wording --- src/agents/tool-replay-repair.live.test.ts | 2 +- src/gateway/gateway-codex-harness.live-helpers.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/agents/tool-replay-repair.live.test.ts b/src/agents/tool-replay-repair.live.test.ts index 149a66fc71c..00ca3f24215 100644 --- a/src/agents/tool-replay-repair.live.test.ts +++ b/src/agents/tool-replay-repair.live.test.ts @@ -377,7 +377,7 @@ describeLive("tool replay repair live", () => { expect(response.stopReason).not.toBe("error"); if (text.length > 0) { - expect(text).toMatch(/^transport replay ok\.?$/i); + expect(text).toMatch(/^transport replay(?: ok)?\.?$/i); } }, 3 * 60 * 1000, diff --git a/src/gateway/gateway-codex-harness.live-helpers.ts b/src/gateway/gateway-codex-harness.live-helpers.ts index 7cd09a17ec3..7887c577742 100644 --- a/src/gateway/gateway-codex-harness.live-helpers.ts +++ b/src/gateway/gateway-codex-harness.live-helpers.ts @@ -1,6 +1,7 @@ export const EXPECTED_CODEX_MODELS_COMMAND_TEXT = [ "Codex models:", "Available Codex models", + "Available Codex agent:", "Available Codex agent models", "Available models:", "Available models, local cache:", @@ -207,7 +208,8 @@ export function isExpectedCodexModelsCommandText(text: string): boolean { normalized.includes("available agent ids in this session:") && (text.includes("`openai/") || text.includes("`codex/")); const isCodexAgentModelSummary = - normalized.includes("available codex agent models:") && + (normalized.includes("available codex agent:") || + normalized.includes("available codex agent models:")) && (text.includes("`openai/") || text.includes("`codex/")); const isAvailableHereModelSummary = normalized.includes("available here:") &&