Describe the enhancement you want to request
When the opencode config file (opencode.json / opencode.jsonc) contains a root-level field that is not defined in the Config schema (e.g., "files": {}), opencode throws ConfigInvalidError and refuses to load all sessions.
The Config JSON Schema uses "additionalProperties": false at the root level, so any unrecognized property causes a fatal validation error. This is overly fragile: a single misplaced key should produce a warning, not crash the entire application.
Suggested approach:
- Unknown properties should be logged as warnings and skipped (
warn-and-skip) - Either relax
additionalProperties at the root level, or explicitly ignore unrecognized fields during config parsing - If a config section is invalid, skip that section and continue with defaults for the rest
- Show a non-blocking notification ("Unknown config field 'files' – ignoring") instead of crashing session loading
Describe the enhancement you want to request
When the opencode config file (
opencode.json/opencode.jsonc) contains a root-level field that is not defined in the Config schema (e.g.,"files": {}), opencode throwsConfigInvalidErrorand refuses to load all sessions.The Config JSON Schema uses
"additionalProperties": falseat the root level, so any unrecognized property causes a fatal validation error. This is overly fragile: a single misplaced key should produce a warning, not crash the entire application.Suggested approach:
warn-and-skip)additionalPropertiesat the root level, or explicitly ignore unrecognized fields during config parsing