test(release): harden live validation wording

This commit is contained in:
Peter Steinberger
2026-04-28 19:35:01 +01:00
parent 3a3859b484
commit 462abf326a
2 changed files with 4 additions and 2 deletions

View File

@@ -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,

View File

@@ -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:") &&