opencode
opencode copied to clipboard
Error "reasoning part reasoning-0 not found" from tool calls using GLM 4.5 Air
Description
I just updated OpenCode from v1.0.163 to v1.0.218 and now tool calls using GLM 4.5 Air result in an error "reasoning part reasoning-0 not found". Prior to updating OpenCode the model had no issues calling tools. It appears that the tool calls finish and the model is able to see the results of the tool call, but is not able to respond. If prompted to continue, it was able to respond as if no error occurred for a while until eventually every prompt to continue resulted in the error.
OpenCode version
1.0.218
Steps to reproduce
- Load GLM 4.5 Air (I'm using LMStudio locally)
- Have the model attempt a tool call
Screenshot and/or share link
Operating System
Windows 10
Terminal
Powershell 7