From 4fba3280e8353592b52a15aacd07ea6c300e914e Mon Sep 17 00:00:00 2001 From: Shoubhit Dash Date: Sat, 7 Mar 2026 12:57:55 +0530 Subject: [PATCH] test: remove brittle explore model check --- .../opencode/test/provider/provider.test.ts | 76 ------------------- 1 file changed, 76 deletions(-) diff --git a/packages/opencode/test/provider/provider.test.ts b/packages/opencode/test/provider/provider.test.ts index 312c1a04c1..a8bd2331ed 100644 --- a/packages/opencode/test/provider/provider.test.ts +++ b/packages/opencode/test/provider/provider.test.ts @@ -964,82 +964,6 @@ test("getSmallModel respects config small_model override", async () => { }) }) -test("getExploreModel returns preferred explore model", async () => { - await using tmp = await tmpdir({ - config: { - provider: { - "custom-provider": { - name: "Custom Provider", - npm: "@ai-sdk/openai-compatible", - api: "https://api.custom.com/v1", - env: ["CUSTOM_API_KEY"], - models: { - "gpt-5-3-codex-spark": { - name: "GPT-5.3 Codex Spark", - tool_call: true, - limit: { - context: 128000, - output: 4096, - }, - }, - "claude-haiku-4.5": { - name: "Claude Haiku 4.5", - tool_call: true, - limit: { - context: 128000, - output: 4096, - }, - }, - "gemini-3-flash-preview": { - name: "Gemini 3 Flash", - tool_call: true, - limit: { - context: 128000, - output: 4096, - }, - }, - "MiniMax-M2-5": { - name: "MiniMax M2.5", - tool_call: true, - limit: { - context: 128000, - output: 4096, - }, - }, - "GLM-5": { - name: "GLM-5", - tool_call: true, - limit: { - context: 128000, - output: 4096, - }, - }, - "Kimi-K2-5": { - name: "Kimi K2.5", - tool_call: true, - limit: { - context: 128000, - output: 4096, - }, - }, - }, - options: { - apiKey: "custom-key", - }, - }, - }, - }, - }) - await Instance.provide({ - directory: tmp.path, - fn: async () => { - const model = await Provider.getExploreModel("custom-provider") - expect(model).toBeDefined() - expect(model?.id).toBe("gpt-5-3-codex-spark") - }, - }) -}) - test("getExploreModel matches fallback models case-insensitively", async () => { await using tmp = await tmpdir({ config: {