small_model is silently ignored once its model is marked deprecated in the catalog
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 82/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
Línea de trabajo
Empieza en packages/opencode/src/provider/provider.ts alrededor de la eliminación de deprecated-model en la línea 1694 y del catch de getSmallModel en las líneas 1942-1946. Sigue cómo getModel produce sus sugerencias “Did you mean” y, después, verifica el fallback de title-agent en packages/opencode/src/session/prompt.ts en las líneas 218-221. Se considera terminado cuando un deprecated small_model sigue recurriendo al session model, pero emite un WARN que identifica la configuración ignorada y detalles útiles para la búsqueda.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
If the model set as small_model is later marked deprecated in the catalog, OpenCode drops it from the provider and Provider.getSmallModel turns the lookup error into undefined without logging anything. The title agent then quietly falls back to the session's main model.
The config never changes, so from the user's side this is a silent behavior change on the day the catalog updates. For me it was deepseek/deepseek-v4-flash, marked deprecated in anomalyco/models.dev#7727. The DeepSeek API still accepts that alias (it is served by V4.1 Flash), so the configured model itself kept working; only OpenCode stopped using it. From then on every session title ran on my main model, Claude Opus 5.5 through a subscription proxy, instead of DeepSeek. That spent subscription quota and triggered a title/first-turn race in the proxy (rynfar/meridian#1024), which took a while to trace back to this one config line.
The same id used as the main model fails loudly, with a useful hint (from the log):
ProviderModelNotFoundError: Model not found: deepseek/deepseek-v4-flash. Did you mean: deepseek-flash, deepseek-v4-pro?
As small_model it produces nothing, not even with --log-level DEBUG.
Relevant code on dev (0f54984):
- deprecated models are deleted from the provider: provider.ts#L1694
getSmallModelcatchesProviderModelNotFoundErrorand returnsundefined: provider.ts#L1942-L1946- the title agent then uses the session model: prompt.ts#L218-L221
I understand the fallback itself is intentional, so I'm not asking to remove it, only to make it visible: a WARN in that catchTag, ideally reusing the "Did you mean" suggestions that getModel already computes. #31092 proposed the warning part for #31042, but both were closed automatically by the cleanup bots before anyone reviewed them.
Plugins
[email protected], context-mode (loaded globally; the repro below does not go through them)
OpenCode version
1.18.32
Steps to reproduce
- In an empty project, add
.opencode/opencode.jsonwith DeepSeek credentials configured (opencode models deepseekno longer lists this id):{ "small_model": "deepseek/deepseek-v4-flash" } - Run
opencode run --print-logs -m deepseek/deepseek-v4-pro "Reply with exactly: MODEL_OK". - The title request streams with the main model, and no log line mentions
small_model:level=INFO message=stream providerID=deepseek modelID=deepseek-v4-pro small=true agent=title mode=primary level=INFO message=stream providerID=deepseek modelID=deepseek-v4-pro small=false agent=build mode=primary
Operating System
Windows 11 Pro (10.0.26200)
Terminal
WezTerm with Git Bash (not terminal-specific)
- Lenguaje dominante
- TypeScript
- Estrellas
- 210k
- Forks
- 27.8k
- Merge medio
- 8 h 7 min
- PR fusionados (30 d)
- 356
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de anomalyco/opencode
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
Todos los issues de anomalyco/opencode
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
openedx/frontend-app-authoring#3274 ·
Los mantenedores suelen responder en 1 día
-
🎙️ task - fix(deployer): deploy --env prep runs deploy:dev where the repo declares deploy:prepAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
area/documentation status/need-triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
google-gemini/gemini-cli#29548 ·
Los mantenedores suelen responder en 1 día
-
sdk-typescript vector-store
Dificultad 2/5 Medio día Aptitud para principiantes 82/100
mem0ai/mem0#7495 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día