Skip to content

OpenCode plus Zen Gemini 3 Pro model causes errors #4665

@rheckart

Description

@rheckart

Description

I was using the BMAD Method templates with an older version of OpenCode, Zen Gemini 3 model and it was working fine. Upgrading to version 106 is now causing these issues with Gemini specifically:

* GenerateContentRequest.tools[0].function_declarations[11].parameters.properties[truncateMode].enum: only allowed for STRING type
* GenerateContentRequest.tools[0].function_declarations[23].parameters.properties[truncateMode].enum: only allowed for STRING type
* GenerateContentRequest.tools[0].function_declarations[29].parameters.properties[truncateMode].enum: only allowed for STRING type
* GenerateContentRequest.tools[0].function_declarations[31].parameters.properties[severityFilter].items.enum: only allowed for STRING type

Switching to another Zen model like Claude Sonnet 4.5 resolves the issue.

OpenCode version

1.0.106

Steps to reproduce

  1. Install the BMAD tools into an empty folder,
  2. Run OpenCode, choosing Zen Gemini 3 Pro as the model,
  3. Try a custom command like /bmad-workflow-bmm-workflow-status and the errors occur,
  4. Change the model to Zen Claude Sonnet 4.5,
  5. Run the same custom command and the command completes as expected.

Screenshot and/or share link

No response

Operating System

Omarchy Arch Linux

Terminal

Ghostty

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions