fix(bash): make description optional for tool calls#13288
fix(bash): make description optional for tool calls#13288ymylive wants to merge 1 commit intoanomalyco:devfrom
Conversation
|
The following comment was made by an LLM, it may be inaccurate: No duplicate PRs found |
|
We're seeing this issue in production with NVIDIA Nemotron-3-Nano (30B-A3B, AWQ variant) served via vLLM on DGX Spark hardware. The model was trained without the Validation evidence from our testing:
Our workaround: Custom tool override via This fix would significantly improve opencode's compatibility with open-weight models. The approach in this PR (optional schema + fallback) is exactly right. |
Fixes #13146
Summary
descriptionoptional inBashToolinput schemaRun shell command) when callers omit itbash.execute({ command })works withoutdescriptionWhy
Some clients/tool-call paths invoke bash with only
command. Requiringdescriptioncauses schema validation errors and makes bash effectively unusable in those flows.Scope
packages/opencode/src/tool/bash.tspackages/opencode/test/tool/bash.test.ts