anomalyco / anomalyco/opencode

1.18.9: All multi-parameter tools fail with SchemaError on Windows

Open
#39,600 2 comments 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Jul 30, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description
  • opencode 版本 1.18.9
  • Windows 平台
  • 所有多参数工具(bash、write、glob 等)都报 SchemaError: Missing key at ["command"] 或类似错误
  • 单参数 read 偶尔可用
  • 重启会话不解决问题
  • 升级到最新版应可修复
    标题: 1.18.9: All multi-parameter tools fail with SchemaError on Windows

opencode version: 1.18.9 Platform: Windows (win32), PowerShell 5.1

Description:

All tools requiring multiple parameters (bash, write, glob, grep, task, question) fail with SchemaError: Missing key at ["command"] (or equivalent key depending on the tool). Only single-parameter tools like read(filePath=...) work sporadically.

The issue seems to be that the parameters JSON gets wrapped in an extra arguments layer before reaching the schema validator, so the expected top-level keys (e.g. command, content, pattern) are never found.

To reproduce:

Run opencode 1.18.9 on Windows.
Invoke any multi-parameter tool, e.g. write(filePath="x", content="y") or bash(command="echo hi").
Observe SchemaError: Missing key at [...].
Expected: Tool executes with provided parameters. Actual: SchemaError on every multi-parameter call.

Workaround: Upgrade to a newer version via opencode update.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.