feat(opencode): open OpenCode 2 in the chat view and list 2.x models before the first message (#28424)

This commit is contained in:
Kelvin Amoaba
2026-10-18 18:42:23 +00:00
committed by GitHub
parent b6325ef951
commit e43f3e7e04
80 changed files with 2307 additions and 471 deletions
@@ -1,5 +1,6 @@
// OpenCode's session-free model listing: `opencode models --verbose` prints each `provider/model` id
// on its own line, followed by that model's metadata as indented JSON closed by a bare `}` line.
// OpenCode 1.x's session-free model listing: `opencode models --verbose` prints each
// `provider/model` id on its own line, followed by that model's metadata as indented JSON closed by
// a bare `}` line.
import { z } from 'zod'
import type { AgentSessionModelOption } from '../../shared/agent-session-wire'