Skip to content

fix(opencode): ignore unknown config fields - #41312

Merged
kitlangton merged 1 commit into
devfrom
forgiving-config
Aug 8, 2026
Merged

fix(opencode): ignore unknown config fields#41312
kitlangton merged 1 commit into
devfrom
forgiving-config

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • let V1 ignore config fields it does not recognize instead of refusing to start
  • preserve schema validation for recognized fields and values
  • cover the V2 plugins field in the V1 parser regression test

This allows V1 and V2 to share an opencode.json while their config schemas differ. Unknown values are discarded rather than passed into V1.

Testing

  • bun test test/config/config.test.ts (96 passed)
  • bun x prettier --check src/config/parse.ts test/config/config.test.ts
  • bun typecheck attempted but did not complete within the 5-minute local timeout

Requested by: @kitlangton (Kit via Slack)

@kitlangton
kitlangton merged commit 38e10eb into dev Aug 8, 2026
11 checks passed
@kitlangton
kitlangton deleted the forgiving-config branch August 8, 2026 18:53
HQ123-BOOP pushed a commit to HQ123-BOOP/LibreCode that referenced this pull request Aug 9, 2026
charlesverge pushed a commit to charlesverge/opencode that referenced this pull request Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant