Skip to content

fix: opencode config (ANTHROPIC_BASE_URL, MCP format, policy)#72

Merged
robbycochran merged 7 commits into
mainfrom
rc-fixrecent
Jun 17, 2026
Merged

fix: opencode config (ANTHROPIC_BASE_URL, MCP format, policy)#72
robbycochran merged 7 commits into
mainfrom
rc-fixrecent

Conversation

@robbycochran

@robbycochran robbycochran commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Fixes OpenCode in sandboxes. Three bugs found and fixed:

  1. OpenCode env vars: needs ANTHROPIC_BASE_URL=https://inference.local/v1 (with /v1 suffix). Without it, OpenCode sends POST /messages instead of POST /v1/messages.

  2. opencode.json format: command must be an array, key is environment not env, added $schema.

  3. Policy revert: allow_encoded_slash and custom policy sections crash OpenShell 0.0.59's sandbox supervisor. Reverted to working main branch policy.

Verified: opencode run "respond with ok" returns ok via claude-sonnet-4-6 through inference.local/v1.

CI: all green (CI + Images + Integration).

@robbycochran robbycochran changed the title fix: opencode uses direct Vertex AI, not inference.local fix: opencode uses ANTHROPIC_BASE_URL with inference.local/v1 Jun 17, 2026
@robbycochran robbycochran changed the title fix: opencode uses ANTHROPIC_BASE_URL with inference.local/v1 fix: opencode config (ANTHROPIC_BASE_URL, MCP format, policy) Jun 17, 2026
@robbycochran robbycochran merged commit a81252d into main Jun 17, 2026
6 checks passed
@robbycochran robbycochran deleted the rc-fixrecent branch June 17, 2026 23:22
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.

1 participant