mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-14 03:56:55 +03:00
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:
committed by
GitHub
Unverified
parent
f8af56d28f
commit
08ac673ab8
@@ -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"])
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user