From e24a57b546c30803995d88ee7d3fc63c7a02393e Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 13 May 2026 21:33:39 +0000 Subject: [PATCH] Fix test: use unmapped driver so no bundled policy matches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The test 'leaves compatibility unset when no bundled policy matches this T3 Code version' was using driver 'codex', which has a matching policy in the bundled provider-compatibility.v1.json (t3CodeRange >=0.0.0, range <0.129.0 → broken). This caused buildServerProvider to set status to 'error' with a non-undefined compatibilityAdvisory, contradicting the test assertions. Switch to a driver not present in the bundled compatibility map so the test correctly exercises the no-matching-policy path. --- apps/server/src/provider/providerSnapshot.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/server/src/provider/providerSnapshot.test.ts b/apps/server/src/provider/providerSnapshot.test.ts index 7b3268d270..c72ea454e7 100644 --- a/apps/server/src/provider/providerSnapshot.test.ts +++ b/apps/server/src/provider/providerSnapshot.test.ts @@ -46,8 +46,8 @@ describe("providerModelsFromSettings", () => { describe("buildServerProvider", () => { it("leaves compatibility unset when no bundled policy matches this T3 Code version", () => { const provider = buildServerProvider({ - driver: ProviderDriverKind.make("codex"), - presentation: { displayName: "Codex" }, + driver: ProviderDriverKind.make("unmapped-test-driver"), + presentation: { displayName: "Test" }, enabled: true, checkedAt: "2026-04-10T00:00:00.000Z", models: [],