Bug report
Describe the bug
When configuring a custom model with only modalities.input, opencode crashes on startup:
ConfigInvalidError: Missing key
at ["provider"]["lmstudio"]["models"]["google/gemma-4-e4b"]["modalities"]["output"]
The modalities block is Schema.optional as a whole, but once provided, both input and output are required inside the struct. There is no documentation explaining this, and the error message gives no hint that output is required or what values it accepts.
To reproduce
Start opencode → ConfigInvalidError: Missing key at [...]["modalities"]["output"]
Expected behavior
Specifying only modalities.input (or only modalities.output) should be valid. The consuming code in provider.ts already accesses both fields via ?. with fallback defaults, so there is no runtime requirement for both to be present.
Workaround
Add "output": ["text"] to the modalities block.
Bug report
Describe the bug
When configuring a custom model with only
modalities.input, opencode crashes on startup:The
modalitiesblock isSchema.optionalas a whole, but once provided, bothinputandoutputare required inside the struct. There is no documentation explaining this, and the error message gives no hint thatoutputis required or what values it accepts.To reproduce
Start opencode →
ConfigInvalidError: Missing key at [...]["modalities"]["output"]Expected behavior
Specifying only
modalities.input(or onlymodalities.output) should be valid. The consuming code inprovider.tsalready accesses both fields via?.with fallback defaults, so there is no runtime requirement for both to be present.Workaround
Add
"output": ["text"]to themodalitiesblock.