Skip to content

[BUG]: Empty content error when switching from Cerebras GLM to Claude Opus #11991

@srs-adamr

Description

@srs-adamr

Problem

When switching from Cerebras GLM 4.7 to Claude Opus 4.5 in the same session, I get this error:

messages.1: all messages must have non-empty content except for the optional final assistant message

This makes it impossible to switch between models during development sessions.

Steps to Reproduce

  1. Start a session with build agent (Cerebras GLM 4.7)
  2. Send a few messages
  3. Switch to plan agent (Claude Opus 4.5 with extended thinking)
  4. Try to send a message
  5. Error occurs

Environment

  • OpenCode version: 1.1.49
  • Provider: Cerebras (GLM 4.7) → Anthropic (Opus 4.5)
  • OS: macOS

Related Issues

Notes

Metadata

Metadata

Assignees

Labels

No labels
No labels

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