opencode icon indicating copy to clipboard operation
opencode copied to clipboard

GLM 4.7 on Zai coding plan puts tool calls inside the thinking/reasoning tag.

Open greggh opened this issue 1 week ago • 16 comments

Description

This happens to me about 15 times a day, and it forces me to start a new session because the session with that call in the thinking tag keeps happening and more errors and failures to call the right tools starts to happen.

Restarting in a new session it will go an hour or so before doing it again and needing a restart.

OpenCode version

1.0.223

Steps to reproduce

  1. Choose Zai coding plan and give it your API Key.
  2. Use GLM 4.7 for awhile.
  3. It usually happens after context goes above 100k.

Screenshot and/or share link

Image

Operating System

macOS 26.1

Terminal

Kitty

p.s. OpenCode is awesome.

greggh avatar Jan 02 '26 22:01 greggh