Skip to content

Commit f446519

Browse files
juliusmarmingecodex
andcommitted
Fix OpenCode compatibility cap
Co-authored-by: codex <[email protected]>
1 parent 8927c26 commit f446519

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

‎apps/server/src/provider/ProviderCompatibility.test.ts‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,17 @@ describe("provider compatibility", () => {
203203
expect(classify(cursorDriver, "2026.05.08")).toBe("unknown");
204204
});
205205

206+
it("marks OpenCode versions above the recommended compatibility cap as broken", () => {
207+
const classify = (currentVersion: string) =>
208+
ProviderCompatibility.createProviderCompatibilityAdvisory({
209+
driver: opencodeDriver,
210+
currentVersion,
211+
})?.status;
212+
213+
expect(classify("1.14.40")).toBe("supported");
214+
expect(classify("1.14.41")).toBe("broken");
215+
});
216+
206217
it("matches T3 Code nightly versions against their base release policy", () => {
207218
const document: ProviderCompatibility.ProviderCompatibilityDocument = {
208219
version: 1,

‎provider-compatibility.v1.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@
3939
"recommendedVersion": "1.14.40",
4040
"ranges": [
4141
{
42-
"status": "supported",
42+
"status": "broken",
4343
"range": ">1.14.40",
4444
"label": "Known incompatible OpenCode harness"
4545
},
4646
{
4747
"status": "supported",
48-
"range": ">=1.14.19",
48+
"range": ">=1.14.19 <=1.14.40",
4949
"label": "Known working OpenCode harness"
5050
},
5151
{

0 commit comments

Comments
 (0)