OpenCode silently sends wrong top-p for Qwen models, hurting output quality

JadedSession · reddit · 2026-08-18

A Reddit user found that coding agent OpenCode always sends top-p=1.0, while Qwen models expect 0.95 (thinking) or 0.80 (no-thinking). The bug is invisible in llama.cpp and derivatives, but ninfer logs sampler settings per request and auto-configures correct ones.

The commit that introduced the change was nominally for another fix with no explanation. There's no per-model/provider override; the workaround is setting "build": {"topp": 0.95} in the agent config, which affects all models.

Original post →

More from coding & agent

coding & agent channel →