Repository navigation
Description
Summary
session/new returns the model catalog through configOptions, and every model option's name is built as `${providerID}/${model.name}`. This leaks the raw provider ID into the human-readable label, so ACP clients display opencode-go/DeepSeek V4.1 Flash 1017 instead of OpenCode Go / DeepSeek V4.1 Flash 1017. The TUI does not do this: it renders the provider display name (OpenCode Go) as the group/category and the plain model name as the title.
As a result, ACP clients that render options[].name directly show slug-case, machine-oriented labels that no other OpenCode surface shows.
Environment
- OpenCode 2.3.2 (
opencode acp) - macOS 15 (arm64)
Reproduction
- Start
opencode acp. - Send
initialize, thensession/newwith{ "cwd": "...", "mcpServers": [] }. - Inspect
result.configOptionswhereid == "model".
Actual response excerpt:
{
"id": "model",
"name": "Model",
"category": "model",
"type": "select",
"currentValue": "opencode/tidepool-alpha-free",
"options": [
{ "value": "opencode-go/deepseek-v4.1-flash", "name": "opencode-go/DeepSeek V4.1 Flash 1017" },
{ "value": "opencode/beam-free", "name": "opencode/Beam Free" },
{ "value": "opencode-go/beam-free", "name": "opencode-go/Beam Free" }
]
}Expected (display names, matching the TUI):
{ "value": "opencode-go/deepseek-v4.1-flash", "name": "OpenCode Go / DeepSeek V4.1 Flash 1017" }Root cause
packages/cli/src/acp/config-option.ts interpolates the raw provider ID into the label:
options: catalog.models
.toSorted((a, b) => Order.String(a.providerID, b.providerID) || a.name.localeCompare(b.name))
.map((item) => ({ value: advertisedModel(item), name: `${item.providerID}/${item.name}` })),The TUI, by contrast, uses the provider display name:
// packages/tui/src/component/dialog-model.tsx
providerName: provider?.name ?? model.providerID,
category: connected() ? (freeGroup(model) ? "Free" : (provider?.name ?? model.providerID)) : undefined,Provider display names are available from the same catalog source the TUI consumes (opencode-go → OpenCode Go, opencode → OpenCode).
Suggested fix
Resolve the provider display name when building the model config option and use it in name, e.g. `${provider.name} / ${model.name}`, while keeping value as the stable providerID/modelID identifier. If resolving names in the ACP catalog is undesirable, at minimum drop the provider prefix from name when it adds no information, since value is already unique.
Activity
opencodejr commentedon Nov 19, 2026
Thanks for the detailed write-up and the suggested fix!
You're asking for the ACP model options returned by
session/newto use the provider's display name (e.g.OpenCode Go / DeepSeek V4.1 Flash 1017) and keepvalueas the stableproviderID/modelIDref. That would match the TUI model picker.Right now the ACP adapter builds each label as
${item.providerID}/${item.name}on purpose. The TUI dialog usesprovider?.name ?? model.providerID. So this is behaving as currently designed, and making the two consistent is an improvement, so I'm marking it as a feature request. Maintainers will consider it.I didn't find any existing issue asking for this.