You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OpenCode plus Zen Gemini 3 Pro model causes errors #4665
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
Install the BMAD tools into an empty folder,
Run OpenCode, choosing Zen Gemini 3 Pro as the model,
Try a custom command like /bmad-workflow-bmm-workflow-status and the errors occur,
Change the model to Zen Claude Sonnet 4.5,
Run the same custom command and the command completes as expected.
Activity
rekram1-node commentedon Nov 23, 2025
There is an mcp server causing this issue looks like?
rekram1-node commentedon Nov 23, 2025
Will fix tho
rheckart commentedon Nov 23, 2025
Could be? I only have two:
{ "$schema": "https://opencode.ai/config.json", // Theme configuration "theme": "aura", "model": "anthropic/claude-sonnet-4-5", "autoupdate": true, "mcp": { "rider": { "type": "remote", "url": "http://localhost:64342/sse", "headers": { "IJ_MCP_SERVER_PROJECT_PATH": "" } }, "context7": { "type": "remote", "url": "https://mcp.context7.com/mcp", "headers": { "CONTEXT7_API_KEY": "ctx7sk-..." } } } }rekram1-node commentedon Nov 23, 2025
the rider mcp has invalid tools, someone has a pr addressing at least part of this that ill merge in to fix tho
for now u can disable the mcp server
basically we have to edit the tools to translate them depending on what provider u are using
rekram1-node commentedon Nov 23, 2025
because by default it has tools that gemini cant use