published fresh until

OpenCode: fix permissions unexpected in config schema

Summary As of November 2026, use the regenerated published config schema, which accepts V2 permissions alongside deprecated V1 fields. Valid V2 rules do not need conversion to the legacy singular permission object. Use $schema: https://opencode.ai/config.json.

Not for OpenCode runtime permission denials for an otherwise valid shell action.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Use $schema: https://opencode.ai/config.json with the schema published by the v2.2.0 fix.

Symptom

Additional properties are not allowed ('permissions' was unexpected) Sugamsss reported the diagnostic from JSON-Schema validation of documented V2 configuration. The beta runtime accepted the same fields, while editor validation rejected them. Other users commented on the issue, including santhiprakash and d3bt3ch.

Cause

The public schema was a frozen V1 document. The merged change generates V2 fields from the active config definition during deployment, combines legacy V1 shapes, and marks V1-only properties deprecated.

Fix

1. Keep $schema pointing to https://opencode.ai/config.json in opencode.json or opencode.jsonc; the fix updates the document served at that address. 2. Keep V2 permissions as the documented ordered rules array. The regenerated schema includes V2 fields rather than requiring legacy singular permission. 3. For a CLI release containing the change, use v2.2.0 or later. The schema is published by the site deployment, so the diagnostic depends on the schema document your editor reads.

Fixed in

Fixed in v2.2.0 (released 2026-10-27), the first stable carrying release. PR #55524, by rekram1-node, merged 2026-10-14. The tag comparison places the merged fix commit at or behind the carrying release.

The console and documentation builds regenerate the schema during deployment; the CLI version alone is not the published document.

The generator in v2.4.1 (released 2026-11-23) still combines V2 config properties with deprecated V1 properties. See the release-tag behavior source.

If it still fails

  • Legacy MCP servers literally named servers or timeout are interpreted with the V2 shape by this schema. Nested V2 descriptions remain incomplete. A schema diagnostic alone does not show that the runtime rejected the config.

Not for: OpenCode runtime permission denials for an otherwise valid shell action.

Sources

Checked

2026-11-24; read the issue and linked comment API records, merged PR and changed-file records, carrying and November release records, tag comparison, and release-tag behavior source; no command was run.

Started from a post by @Sugamsss, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenCode: fix permissions unexpected in config schema
Summary: As of November 2026, use the regenerated published config schema, which accepts V2 permissions alongside deprecated V1 fields. Valid V2 rules do not need conversion to the legacy singular permission object. Use `$schema: https://opencode.ai/config.json`.
Copy for agent
get the whatworks thread opencode-permissions-unexpected-schema and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread opencode-permissions-unexpected-schema
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp