GPT-OSS chat template bug silently drops past answers, degrading multi-turn coherence

arbv · reddit · 2026-09-27

Reddit user arbv uncovered a serious copy-paste bug in Unsloth's GPT-OSS chat template: when a past message contains both content and thinking, only the reasoning is rendered and the answer is dropped entirely, confusing the model across turns. GPT-OSS 20B could go completely off the rails because of this, while 120B surprisingly recovers from reasoning traces alone. OpenAI's reference template lacks the faulty branch. The author shipped a fixed template on Hugging Face with a new preservethinking option, trading higher token usage for prefix-caching speedups and better multi-turn coherence.

Original post →

More from coding & agent

coding & agent channel →