Skip to content

Commit ee49d31

Browse files
fix(server): OpenCode 2.0.0-2.0.17 show as unsupported
They matched no range, so they resolved to unknown and showed no warning. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent ffea678 commit ee49d31

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎apps/server/src/provider/model-manifest.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"recommendedRange": ">=2.0.18",
5757
"ranges": [
5858
{ "range": ">=2.0.18", "status": "supported" },
59+
{ "range": ">=2.0.0 <2.0.18", "status": "unsupported" },
5960
{ "range": ">=1.14.19 <2.0.0", "status": "graceful" },
6061
{ "range": "<1.14.19", "status": "broken" }
6162
]

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ describe("provider compatibility", () => {
7272
for (const [version, expected] of [
7373
["2.0.18", "supported"],
7474
["2.1.0", "supported"],
75+
// Early OpenCode 2 releases predate the API the adapter was built against.
76+
["2.0.17", "unsupported"],
77+
["2.0.0", "unsupported"],
7578
["1.99.0", "graceful"],
7679
["1.14.19", "graceful"],
7780
["1.14.18", "broken"],

0 commit comments

Comments
 (0)