From a1338a54fcdc6f40cabc515beaa71884ba50bf22 Mon Sep 17 00:00:00 2001 From: Diego Rodrigues de Sa e Souza Date: Sat, 11 Jul 2026 19:21:21 -0300 Subject: [PATCH] fix(ci): register new mutation-covering test + realign stale codex-cli version fixture - stryker.conf.json: add tests/unit/cliproxyapi-model-mapping-dispatch.test.ts to tap.testFiles so it counts toward mutation coverage for the newly-added comboContextCache.ts coverage (check:mutation-test-coverage --strict was failing). - tests/unit/provider-models-route-codex.test.ts: DEFAULT_CODEX_CLIENT_VERSION was bumped to 0.144.0 on release/v3.8.47 after this test's fixtures were written; realign the hardcoded 0.142.0 expectations to the current constant. --- stryker.conf.json | 1 + tests/unit/provider-models-route-codex.test.ts | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/stryker.conf.json b/stryker.conf.json index d443617d97..318edd3f5e 100644 --- a/stryker.conf.json +++ b/stryker.conf.json @@ -106,6 +106,7 @@ "tests/unit/claude-passthrough-stream-boolean.test.ts", "tests/unit/claude-passthrough-thinking-2454.test.ts", "tests/unit/cli-simulate.test.ts", + "tests/unit/cliproxyapi-model-mapping-dispatch.test.ts", "tests/unit/cline-response-envelope.test.ts", "tests/unit/clinepass-provider.test.ts", "tests/unit/codex-failover.test.ts", diff --git a/tests/unit/provider-models-route-codex.test.ts b/tests/unit/provider-models-route-codex.test.ts index 42f14e78bb..b03b1ee38b 100644 --- a/tests/unit/provider-models-route-codex.test.ts +++ b/tests/unit/provider-models-route-codex.test.ts @@ -109,7 +109,7 @@ test("provider models route discovers live Codex models and preserves static ali display_name: "GPT 5.6 GitHub", visibility: "list", supported_in_api: true, - minimal_client_version: "0.142.0", + minimal_client_version: "0.144.0", context_window: 372000, input_modalities: ["text", "image"], supported_reasoning_levels: [{ effort: "low" }, { effort: "high" }], @@ -145,11 +145,11 @@ test("provider models route discovers live Codex models and preserves static ali assert.equal(body.source, "api"); assert.deepEqual(seenRequests, [ { - url: "https://chatgpt.com/backend-api/codex/models?client_version=0.142.0", + url: "https://chatgpt.com/backend-api/codex/models?client_version=0.144.0", authorization: "Bearer codex-access-token", workspaceId: "account-123", originator: "codex_cli_rs", - userAgent: "codex-cli/0.142.0 (Windows 10.0.26200; x64)", + userAgent: "codex-cli/0.144.0 (Windows 10.0.26200; x64)", }, { url: "https://raw.githubusercontent.com/openai/codex/refs/heads/main/codex-rs/models-manager/models.json", @@ -190,7 +190,7 @@ test("provider models route uses the GitHub Codex catalog when live discovery fa display_name: "GPT-5.6-Sol", visibility: "list", supported_in_api: true, - minimal_client_version: "0.142.0", + minimal_client_version: "0.144.0", context_window: 372000, }, ],