From 8dd9a5aa984c851a358d1eae96d84ea2ee5b43b6 Mon Sep 17 00:00:00 2001 From: Adrian Lumpe <26437714+alumpe@users.noreply.github.com> Date: Wed, 6 May 2026 14:19:29 +0200 Subject: [PATCH] Add OpenCode to provider autocomplete enum (#55586) The `opencode` built-in provider is registered in the language model registry but missing from the JSON schema enum in `LanguageModelProviderSetting`. image
OpenCode is one of the "first class" providers, so I was surprised it was missing from the auto-complete for the provider fields in the settings file. ## Self-Review Checklist - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable ## Release Notes - N/A --- crates/settings_content/src/agent.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/settings_content/src/agent.rs b/crates/settings_content/src/agent.rs index 431937dce30c894116785d2ab8802da35f6095d4..19bdcf85e41fb88d05cab69f0d4a0fd18147ffa8 100644 --- a/crates/settings_content/src/agent.rs +++ b/crates/settings_content/src/agent.rs @@ -429,6 +429,7 @@ impl JsonSchema for LanguageModelProviderSetting { "mistral", "ollama", "openai", + "opencode", "openrouter", "vercel_ai_gateway", "x_ai",