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
[BUG] Schema.ref 'QuestionInfo' was set alongside unsupported fields in v1.1.x #7791
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.
This issue appears to be related to other configuration schema validation problems reported in v1.1.x. Please check these related issues to see if they might address your case or if they share a common root cause:
Activity
github-actions commentedon Jan 11, 2026
This issue appears to be related to other configuration schema validation problems reported in v1.1.x. Please check these related issues to see if they might address your case or if they share a common root cause:
opencode.jsonwill causeopencodestartup to hang indefinitely #7789: Syntax error in opencode.json will cause startup to hang indefinitely (v1.1.13)These issues all point to a potential broader schema validation/configuration parsing regression introduced in v1.1.x that may be interconnected.
oyange commentedon Jan 16, 2026
I also encountered the same problem, even updating to 1.23 didn't solve it, have you solved this problem?
Ano-u commentedon Jan 22, 2026
I have already updated to 1.1.31, but this problem still exists.
fanenr commentedon Jan 23, 2026
opencode v1.1.34, The same issue occurs.
LikeYui375 commentedon Jan 23, 2026
I solved the problem by changing .opencode.json to below:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"your-provider-id": {
"npm": "@ai-sdk/openai",
"name": "Provider Display Name",
"options": {
"baseURL": "your-api-base-url/v1",
"setCacheKey": true
},
"models": {
"model-id": {
"name": "Model Display Name",
"limit": {
"context": 154840,
"output": 16384
}
}
}
}
},
"model": "your-provider-id/model-id"
}
github-actions commentedon Mar 26, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.