Skip to content

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

@greggh

Description

@greggh

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions