Commit 637bb01
fix(opencode): drop $comment key — opencode schema rejects unknown root fields (#109)
The $comment field I added in commit 47018e5 to explain why the
repo-level MCP entry defaults to enabled=false isn't part of
opencode's config schema. Opencode's bootstrap validator throws
ConfigInvalidError and refuses to start the TUI entirely:
Error: 4 of 5 requests failed: Unexpected server error.
Affected startup requests: config.providers, provider.list,
app.agents, config.get
JSON parses fine, but opencode rejects unknown top-level keys.
Move the explanation to a code comment if needed; for now just
remove the field so opencode starts.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 47018e5 commit 637bb01
1 file changed
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
0 commit comments