fix: model dialog issue when searching for models in fav/recents list, also ensure that deprecated models dont appear in list (#7429)

This commit is contained in:
Aiden Cline
2026-01-08 21:55:37 -08:00
committed by Frank
parent 445c8631a2
commit 07dc1f8ecc
2 changed files with 69 additions and 66 deletions

View File

@@ -852,6 +852,7 @@ export namespace Provider {
if (modelID === "gpt-5-chat-latest" || (providerID === "openrouter" && modelID === "openai/gpt-5-chat"))
delete provider.models[modelID]
if (model.status === "alpha" && !Flag.OPENCODE_ENABLE_EXPERIMENTAL_MODELS) delete provider.models[modelID]
if (model.status === "deprecated") delete provider.models[modelID]
if (
(configProvider?.blacklist && configProvider.blacklist.includes(modelID)) ||
(configProvider?.whitelist && !configProvider.whitelist.includes(modelID))