Fix OpenCode compatibility cap
Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
8927c26748
commit
f446519d78
2 files changed
+13
-2
No files matched your search
@@ -203,6 +203,17 @@ describe("provider compatibility", () => {
|
||||
expect(classify(cursorDriver, "2026.05.08")).toBe("unknown");
|
||||
});
|
||||
|
||||
it("marks OpenCode versions above the recommended compatibility cap as broken", () => {
|
||||
const classify = (currentVersion: string) =>
|
||||
ProviderCompatibility.createProviderCompatibilityAdvisory({
|
||||
driver: opencodeDriver,
|
||||
currentVersion,
|
||||
})?.status;
|
||||
|
||||
expect(classify("1.14.40")).toBe("supported");
|
||||
expect(classify("1.14.41")).toBe("broken");
|
||||
});
|
||||
|
||||
it("matches T3 Code nightly versions against their base release policy", () => {
|
||||
const document: ProviderCompatibility.ProviderCompatibilityDocument = {
|
||||
version: 1,
|
||||
|
||||
@@ -39,13 +39,13 @@
|
||||
"recommendedVersion": "1.14.40",
|
||||
"ranges": [
|
||||
{
|
||||
"status": "supported",
|
||||
"status": "broken",
|
||||
"range": ">1.14.40",
|
||||
"label": "Known incompatible OpenCode harness"
|
||||
},
|
||||
{
|
||||
"status": "supported",
|
||||
"range": ">=1.14.19",
|
||||
"range": ">=1.14.19 <=1.14.40",
|
||||
"label": "Known working OpenCode harness"
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user