feat(tui): list OpenCode Console before OpenCode Go (#59107)

Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: thdxr <826656+thdxr@users.noreply.github.com>
This commit is contained in:
Luke Parker
2026-10-26 09:57:44 +10:00
committed by GitHub
Unverified
parent f8af56d28f
commit 08ac673ab8
2 changed files with 4 additions and 4 deletions
@@ -47,8 +47,8 @@ import {
} from "../util/form"
const INTEGRATION_PRIORITY: Record<string, number> = {
"opencode-go": 0,
opencode: 1,
opencode: 0,
"opencode-go": 1,
openai: 2,
"github-copilot": 3,
anthropic: 4,
@@ -24,7 +24,7 @@ describe("integrationOptions", () => {
integration({ id: "opencode", name: "OpenCode Zen" }),
integration({ id: "opencode-go", name: "OpenCode Go" }),
]).map((item) => item.id),
).toEqual(["opencode-go", "opencode", "openai", "anthropic", "mistral", "custom-z"])
).toEqual(["opencode", "opencode-go", "openai", "anthropic", "mistral", "custom-z"])
})
test("keeps MCP integrations above popular integrations without relying on their IDs", () => {
@@ -36,7 +36,7 @@ describe("integrationOptions", () => {
integration({ id: "opencode", name: "OpenCode Zen" }),
integration({ id: "opencode-go", name: "OpenCode Go" }),
]).map((item) => item.id),
).toEqual(["github", "linear", "opencode-go", "opencode", "openai"])
).toEqual(["github", "linear", "opencode", "opencode-go", "openai"])
})
})