Repository navigation
fix(sandbox): remove invalid providers/agents keys from opencode config - #82
Merged
Merged
Conversation
… keys Closes #80 Root cause: OpenCode rejects 'providers' and 'agents' as top-level keys. API keys are read from env vars (ANTHROPIC_API_KEY etc) — no config needed. Config now contains only: model, small_model, server, mcp (optional). Validated against https://opencode.ai/config.json schema.
gHashTag
added a commit
that referenced
this pull request
Jun 1, 2026
fix(sandbox): remove invalid providers/agents keys from opencode config
gHashTag
added a commit
that referenced
this pull request
Oct 3, 2026
… get wrong (#5666) Review 3 of #5667 moved the original article into a ~~~ block and put a changed copy under a heading the byte-exact count missed (double space, tab, R, U+FE0F, lone CR, "> ## "). Instead of another trick list: - no code fence above or inside the article, at any indent or container; - the heading line exactly once at column 0; - no other heading-like line (any indent, quote, list, fence, or setext) that reads as CREDIT, look-alike letters included; - no raw HTML, character references, invisible or format characters, front matter or lone CR anywhere in the charter. Setext headings, lists before ---, autolinks and non-ASCII letters in unrelated headings now pass. Seal updated with the article wording. Refs #5666 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #80
Previous fix (PR #81) still used
providersandagentsas top-level keys, which OpenCode rejects.Root cause from deployment logs:
Fix: Minimal config with only valid keys:
model,small_model— model selectionserver— hostname/port for web modemcp— Railway MCP (only if RAILWAY_API_TOKEN set)Validated against
https://opencode.ai/config.jsonschema.