From f778835ae2c558b5dcfbeb7dc98df7796603d8bb Mon Sep 17 00:00:00 2001 From: Fahad Iftikhar Date: Mon, 10 Aug 2026 10:13:23 +0500 Subject: [PATCH] fix(vscode): drop managementCommand from model providers to restore native BYOK flow (#121) VS Code's configureLanguageModelsProviderGroup() short-circuits when a provider contribution declares a managementCommand: it just re-resolves models and returns, so the native '+ Add Models' prompt never runs and no BYOK group can be created. Every built-in Language Models context-menu action (Rename Group, Delete, Update API Key, Open in Language Models (JSON)) then fails with 'group not found' and appears unresponsive. Remove managementCommand from the opencodego/opencodezen/agent vendor contributions so the native BYOK group flow works end-to-end. The extension's own commands (Manage Provider, Set API Key, ...) remain registered for legacy secret-storage use. --- CHANGELOG.md | 4 ++++ package.json | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3147b3..fec7ca3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to the **OpenCode Go BYOK Provider** extension are documente ## [Unreleased] +### Fixed + +- **`[VS Code]` Provider context menu unresponsive; "+ Add Models" dead; leftover groups undeletable (#121).** The `languageModelChatProviders` contributions declared both `managementCommand` and a `configuration` schema. VS Code's native BYOK flow (`configureLanguageModelsProviderGroup`) short-circuits on `managementCommand` — it re-resolves models and returns without prompting for a group name or API key — so a BYOK group could never be created through "+ Add Models", and every built-in context-menu action (Rename Group, Update API Key, Delete, Open in Language Models (JSON)) throws "group not found", failing silently. Dropped `managementCommand` from the `opencodego`, `opencodezen`, and agent-variant contributions; "+ Add Models" now runs the native prompt flow, the context-menu actions work against the created group, and leftover groups (e.g. created by per-model configuration) can finally be deleted. The extension's own commands (`OpenCode Go: Manage Provider`, `Set API Key`, etc.) remain available in the Command Palette and keep working as a legacy fallback. + ## [0.5.1] — 2026-08-08 ### Added diff --git a/package.json b/package.json index 0d90d0b..45dbb15 100644 --- a/package.json +++ b/package.json @@ -280,7 +280,6 @@ { "vendor": "opencodego", "displayName": "OpenCode Go", - "managementCommand": "opencodego.manage", "configuration": { "type": "object", "required": [ @@ -299,7 +298,6 @@ { "vendor": "opencodezen", "displayName": "OpenCode Zen", - "managementCommand": "opencodezen.manage", "configuration": { "type": "object", "required": [ @@ -318,13 +316,11 @@ { "vendor": "opencodego-agent", "displayName": "OpenCode Go (Agents)", - "managementCommand": "opencodego.manage", "when": "config.opencodego.showAgentModelsInManagePanel" }, { "vendor": "opencodezen-agent", "displayName": "OpenCode Zen (Agents)", - "managementCommand": "opencodezen.manage", "when": "config.opencodego.showAgentModelsInManagePanel" } ]