Description
Any syntax error in opencode.jsonc (invalid JSONC, schema validation error) produces an unhelpful error message on startup:
Error: 4 of 6 requests failed: Unexpected server error. Check server logs for details.
Affected startup requests: config.providers, provider.list, app.agents, config.get
The actual error details (line/column of JSONC syntax errors, schema validation issues) are lost because ConfigParse.jsonc() throws JsonError and ConfigParse.effectSchema() throws InvalidError as plain exceptions, which become Effect defects and bubble up as a generic HTTP 500.
Plugins
none
OpenCode version
1.15.10
Steps to reproduce
- Create
opencode.jsonc with invalid JSONC syntax (e.g., missing quote, or brace)
- Run
opencode
- Observe the generic error message instead of the actual parse/validation error location
Example bad config:
Screenshot and/or share link
N/A
Operating System
Linux
Terminal
N/A
Description
Any syntax error in
opencode.jsonc(invalid JSONC, schema validation error) produces an unhelpful error message on startup:The actual error details (line/column of JSONC syntax errors, schema validation issues) are lost because
ConfigParse.jsonc()throwsJsonErrorandConfigParse.effectSchema()throwsInvalidErroras plain exceptions, which become Effect defects and bubble up as a generic HTTP 500.Plugins
none
OpenCode version
1.15.10
Steps to reproduce
opencode.jsoncwith invalid JSONC syntax (e.g., missing quote, or brace)opencodeExample bad config:
}}{ "permission": { "webfetch": { "*": "ask"Screenshot and/or share link
N/A
Operating System
Linux
Terminal
N/A