OpenCode: requests "low" reasoning variant for models that do not support it (hy4-flash-free), causing rpc_error turns
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 59/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- backend
Línea de trabajo
Start by tracing how DuskBot selects and sends reasoning variants to OpenCode, then find where the selected model's advertised variants are available to that path. Compare the chosen variant with the model's supported variants and identify where the failure is reported. Done means a model without low receives a supported fallback and its turn can complete; the issue names no files or tests.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
DuskBot requests the low reasoning variant when calling OpenCode for models that do not advertise it. The most visible case is opencode/hy4-flash-free, whose own model entry in DuskBot lists only none, high, and default variants. The request fails with OpenCode did not apply variant low and the bot turn ends with stop: rpc_error.
Evidence
From ~/.duskbot/providers/engine-models/opencodeGo.json (build 0.2.15):
opencode/beam-free: variantslow, medium, high, xhigh, default(supportslow)opencode/hy4-flash-free: variantsnone, high, default(does not supportlow)
From ~/.config/duskbot/logs/trail-server.jsonl, repeated entries:
{"ev":"error","code":"bot.runtime","msg":"OpenCode did not apply variant low","bot":"...","thread":"...","turn":"..."}
{"ev":"bot.turn.end",...,"ok":false,"stop":"rpc_error",...}
Five rpc_error turns were recorded in a single session, and the free model (opencode-go/hy4-flash-free) times out repeatedly before falling back.
Impact
Bots that DuskBot routes to hy4-flash-free cannot complete turns. From the user side this looks like the main agent (Kiwi) cannot get answers from the other bots, because every downstream call fails before producing a reply.
Expected behavior
DuskBot should only send a reasoning variant that the selected model advertises. When the model has no low variant, it should fall back to none or default instead of sending low and failing the whole turn.
Environment
- DuskBot 0.2.15 (Linux, amd64)
- OpenCode backend, free model
opencode-go/hy4-flash-free - Reported by Dario Cositore (https://dariocositore.com)
- Lenguaje dominante
- TypeScript
- Estrellas
- 277
- Forks
- 27
- Merge medio
- 2 h 47 min
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 DuskBotAI/duskbot
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
Los mantenedores suelen responder en 1 día
-
After uninstalling an own server, the desktop app stays on it and shows Cloudflare's Error 1033 pageAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
install.sh --tailscale replaces whatever the host already serves on tailnet port 443Posiblemente ocupada @viniciusbregoli la tomó hoy. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
Todos los issues de DuskBotAI/duskbot
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
vercel-labs/ui#865 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
outline/outline#14638 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
wayfinder:grilling
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
patricktree/cup#484 ·
-
bot:ai-assisted component:platform-js status:untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
midnightntwrk/platform-js#69 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día