fix(provider): mark OpenCode v2 incompatible (#14198)

This commit is contained in:
Julius Marminge authored and GitHub committed 2026-09-28 19:00:28 -07:00
1 parent 5da55957d4
commit 76fa23df2e
6 files changed
+92 -32

No files matched your search

+5 -3
View File
@@ -1,6 +1,6 @@
{
"version": 1,
"updatedAt": "2026-09-28T20:00:00Z",
"updatedAt": "2026-09-29T01:03:44Z",
"compatibility": [
{
"driver": "codex",
@@ -43,9 +43,11 @@
{
"driver": "opencode",
"t3CodeRange": ">=0.0.42",
"recommendedRange": ">=1.14.19",
"recommendedRange": ">=1.14.19 <2.0.0",
"recommendedVersion": "1.14.19",
"ranges": [
{ "range": ">=1.14.19", "status": "supported" },
{ "range": ">=2.0.0", "status": "broken" },
{ "range": ">=1.14.19 <2.0.0", "status": "supported" },
{ "range": "<1.14.19", "status": "broken" }
]
},
@@ -65,24 +65,6 @@ describe("provider compatibility", () => {
}
});
it("supports Codex 0.156 and marks Codex without Thread.projectId broken", () => {
const bundled = ModelManifest.BUNDLED_MODEL_MANIFEST.compatibility;
for (const [t3CodeVersion, codexVersion, expected] of [
["0.0.42", "0.148.0", "broken"],
["0.0.42", "0.149.0", "unsupported"],
["0.0.42", "0.155.0", "unsupported"],
["0.0.42", "0.156.0", "supported"],
["0.0.43-nightly.20260924.2200", "0.153.3", "unsupported"],
["0.0.43-nightly.20260924.2200", "0.156.1", "supported"],
] as const) {
assert.strictEqual(
resolveProviderCompatibility(bundled, driver, codexVersion, t3CodeVersion)?.status,
expected,
`T3 Code ${t3CodeVersion} with Codex ${codexVersion}`,
);
}
});
it("compares Cursor build dates without treating semver prereleases as stable", () => {
const cursor = ProviderDriverKind.make("cursor");
const cursorPolicy: ProviderCompatibilityPolicy = {
@@ -216,7 +216,11 @@ const makeTestRunner = (
manifest: ModelManifest.ModelManifestData = {
version: 1,
currentModels: {},
compatibility: [{ driver: CODEX_DRIVER, t3CodeRange: ">=0.0.42", ranges: [] }],
compatibility: [CODEX_DRIVER, CURSOR_DRIVER, OPENCODE_DRIVER].map((driver) => ({
driver,
t3CodeRange: ">=0.0.42",
ranges: [],
})),
},
) =>
Effect.service(ProviderMaintenanceRunner.ProviderMaintenanceRunner).pipe(