OpenCode: requests "low" reasoning variant for models that do not support it (hy4-flash-free), causing rpc_error turns

Aperta
#35 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
59/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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: variants low, medium, high, xhigh, default (supports low)
  • opencode/hy4-flash-free: variants none, high, default (does not support low)

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)
Lingua principale
TypeScript
Stelle
277
Fork
27
Merge medio
2h 47m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DuskBotAI/duskbot

Tutte le issue di DuskBotAI/duskbot

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.