Skip to content

Error "reasoning part reasoning-0 not found" from tool calls using GLM 4.5 Air #6486

@jhov94

Description

@jhov94

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

  1. Load GLM 4.5 Air (I'm using LMStudio locally)
  2. Have the model attempt a tool call

Screenshot and/or share link

Image

Operating System

Windows 10

Terminal

Powershell 7

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions