fix(opencode): isolate Copilot model decode failures

This commit is contained in:
Aiden Cline
2026-06-01 01:37:27 -05:00
parent a78b3217a5
commit a19b167fbb
2 changed files with 68 additions and 57 deletions
@@ -161,6 +161,10 @@ test("converts Copilot AIC token prices to USD per million tokens", async () =>
supports: {},
},
},
{
model_picker_enabled: false,
id: "ignored-non-chat-record",
},
],
}),
{ status: 200 },
@@ -179,6 +183,7 @@ test("converts Copilot AIC token prices to USD per million tokens", async () =>
},
})
expect(models["incomplete-internal-model"]).toBeUndefined()
expect(models["ignored-non-chat-record"]).toBeUndefined()
})
test("clears existing variants so refreshed models calculate provider-specific variants", async () => {