OPEN_SOURCE ↗
REDDIT · REDDIT// 13h agoINFRASTRUCTURE
OpenCode stumbles on MiniMax think tags
A Reddit user is trying to run OpenCode against self-hosted MiniMax M2.7 through SGLang, but OpenCode misparses the model’s `<think>...</think>` blocks. The core tension is that MiniMax wants those reasoning tags preserved for future turns, while OpenCode needs a cleaner separation between visible output and hidden reasoning.
// ANALYSIS
This is a small but very real interoperability bug in the agent stack: model vendors are pushing reasoning formats that help performance, while client tools still assume plain assistant text.
- –MiniMax M2.7 explicitly expects its full thinking trace to be round-tripped, so stripping tags for UI cleanliness can hurt model quality.
- –OpenCode already has UI controls for showing thinking blocks, but the harder problem is preserving reasoning in message history without confusing the parser.
- –SGLang’s `minimax-append-think` parser appears to address transport formatting, not the higher-level chat-memory contract OpenCode needs.
- –The likely fix is provider-aware message handling, not just a frontend parse tweak: keep reasoning intact in stored history, but expose sanitized content to the agent loop.
- –This is exactly the kind of edge case that shows up when “open-weight + self-hosted + agentic coding” starts replacing closed APIs.
// TAGS
opencodeminimax-m2.7sglangself-hostedcliagentai-codingreasoning
DISCOVERED
13h ago
2026-04-17
PUBLISHED
17h ago
2026-04-17
RELEVANCE
8/ 10
AUTHOR
JC1DA