Skip to content

fix(sandbox): remove invalid providers/agents keys from opencode config - #82

Merged
gHashTag merged 1 commit into
masterfrom
fix/opencode-schema-v2
Apr 4, 2026
Merged

gHashTag merged 1 commit into
masterfrom
fix/opencode-schema-v2

Conversation

@gHashTag

@gHashTag gHashTag commented Apr 4, 2026

Copy link
Copy Markdown
Owner

Closes #80

Previous fix (PR #81) still used providers and agents as top-level keys, which OpenCode rejects.

Root cause from deployment logs:

Error: Configuration is invalid at /root/.config/opencode/opencode.json
↳ Unrecognized keys: "providers", "agents"

Fix: Minimal config with only valid keys:

  • model, small_model — model selection
  • server — hostname/port for web mode
  • mcp — Railway MCP (only if RAILWAY_API_TOKEN set)
  • API keys read from env vars automatically (no config needed)

Validated against https://opencode.ai/config.json schema.

… 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
gHashTag merged commit dff477a into master Apr 4, 2026
3 checks passed
gHashTag added a commit that referenced this pull request Jun 1, 2026
fix(sandbox): remove invalid providers/agents keys from opencode config
@gHashTag
gHashTag deleted the fix/opencode-schema-v2 branch June 16, 2026 13:27
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SANDBOX-006] Fix opencode.json schema — crash on startup

1 participant