You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
opencode zen models tool calls are not parsed correctly mid conversation #3561
this is just the model failing to call tools, it isnt calling them correctly, this can happen for many providers and models just happens more frequently with some than others
@DamianPereira yeah this is an upstream bug for us, our kimi k2 thinking provider (for zen) has a bug on their end, once they fix it this should resolve.
Basically if I enable proper interleaved thinking for kimi k2 thinking on their inference rn, it would loop infinitely (bug on their end), so rn I can't use interleaved thinking for it yet which is why sometimes it does dumb stuff like what you are seeing there.
Activity
github-actions commentedon Oct 30, 2025
This issue might be a duplicate of existing issues. Please check:
<|tool_calls_section_end|>) Parsing Failures #1021: Tool Calls Section End Token parsing failures with various modelsFeel free to ignore if none of these address your specific case.
tsah commentedon Oct 30, 2025
Yeah looks like a duplicate of 1021
tsah commentedon Oct 30, 2025
Addition: when switching back to anthropic the problem disappears
rekram1-node commentedon Oct 30, 2025
this is just the model failing to call tools, it isnt calling them correctly, this can happen for many providers and models just happens more frequently with some than others
Adictya commentedon Dec 5, 2025
This happens consistently with kimi k2 thinking. Is there any recommended way to work around it? @rekram1-node
rekram1-node commentedon Dec 9, 2025
This should be fixed in next release:
df64612
DamianPereira commentedon Dec 12, 2025
I tried 1.0.150 and it's still happening. Not sure if it's happening less or not.
rekram1-node commentedon Dec 12, 2025
@DamianPereira yeah this is an upstream bug for us, our kimi k2 thinking provider (for zen) has a bug on their end, once they fix it this should resolve.
Basically if I enable proper interleaved thinking for kimi k2 thinking on their inference rn, it would loop infinitely (bug on their end), so rn I can't use interleaved thinking for it yet which is why sometimes it does dumb stuff like what you are seeing there.
rekram1-node commentedon Dec 12, 2025
I'll update once it has been addressed!
DamianPereira commentedon Dec 12, 2025
Thanks a lot for the fix and quick answer.
Adictya commentedon Dec 13, 2025
can confirm the fix is working beautifully, thanks 👍🏻