Skip to content

Bug: Z.AI Coding Plan models return empty responses #22042

@claudianus

Description

@claudianus

Description

When using the Z.AI Coding Plan (zhipuai-coding-plan provider) with reasoning capabilities like GLM-5.1, the agent returns empty responses. This happens because the thinking configuration is not being applied to the zhipuai-coding-plan provider ID in the transform logic, causing the stream to fail or not output correctly for reasoning models.

Plugins

None

OpenCode version

1.4.3 (or 0.0.0-dev)

Steps to reproduce

  1. Configure OpenCode to use the zhipuai-coding-plan provider.
  2. Select a reasoning model like GLM-5.1.
  3. Send a prompt to the agent.
  4. Observe that the agent appears to respond but no text is output to the terminal.

Screenshot and/or share link

N/A

Operating System

Linux

Terminal

Fish (or generic terminal)

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions