opencode
opencode copied to clipboard
[BUG] Schema.ref 'QuestionInfo' was set alongside unsupported fields in v1.1.x
Description
Body:
Description
When using opencode v1.1.12 or v1.1.13, running any command with a custom provider configuration fails with a schema validation error related to QuestionInfo.
Reproduction Steps
- Install opencode v1.1.13
- Configure any custom provider in
opencode.json - Run
opencode run "hello" - Error occurs immediately
Error Message
Error: Schema.ref 'QuestionInfo' was set alongside unsupported fields.
If a schema node has Schema.ref set, then only description and default
can be set alongside it; other fields they would be replaced by the
expanded reference.
Environment
- OS: Windows 11
- opencode version: v1.1.13 (also affects v1.1.12)
- oh-my-opencode version: v2.14.0
Root Cause
In opencode v1.1.x, the JSON schema definition has issues. The QuestionInfo schema node sets $ref along with other unsupported fields simultaneously, causing schema validation to fail.
Workaround
Downgrade to v1.0.150:
# Download v1.0.150 binary
curl -sL -o opencode.zip "https://github.com/anomalyco/opencode/releases/download/v1.0.150/opencode-windows-x64.zip"
unzip opencode.zip -d ~/.local/bin/
Expected Behavior
The custom provider should initialize correctly without schema validation errors in v1.1.x.
Additional Notes
This bug makes v1.1.x versions completely unusable for anyone using custom providers. Users need to downgrade to v1.0.150 as a workaround.
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response