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
Description
SchemaError: Missing key at ["command"]或类似错误标题: 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