Repository navigation
bash description #17415
Copy link
Copy link
Closed as not planned
Description
Activity
- addedcoreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)
on Mar 13, 2026 github-actions commented
on Mar 13, 2026 on Mar 13, 2026 – with GitHub ActionsContributorMore actionsThis issue might be a duplicate of existing issues. Please check:
- The bash tool was called with invalid arguments: #10213: Same error - bash tool called with invalid arguments, expected string received undefined for description field
- Bash tool called with invalid arguments: "expected string, received undefined" for command and description fields #14519: Same error - bash tool called with invalid arguments for command and description fields, expected string received undefined
Same issue with opencode
1.3.10and Gemma 4google/gemma-4-26b-a4brunning inside LMStudio version0.4.9+1.I don't know if this issue should be raised against Gemma 4 or OpenCode.
But I guess it would be good to have a workaround at the Opencode level.$ mkdir -p src/main/java/com/vpnapi/model src/main/java/com/vpnapi/service src/main/java/com/vpnapi/resource src/main/java/com/vpnapi/security src/main/resources && echo "rootProject.name = 'wireguard-api'" > settings.gradle The bash tool was called with invalid arguments: [ { "expected": "string", "code": "invalid_type", "path": [ "description" ], "message": "Invalid input: expected string, received undefined" } ]. Please rewrite the input so it satisfies the expected schema. ~ Writing command... The bash tool was called with invalid arguments: [ { "expected": "string", "code": "invalid_type", "path": [ "command" ], "message": "Invalid input: expected string, received undefined" }, { "expected": "string", "code": "invalid_type", "path": [ "description" ], "message": "Invalid input: expected string, received undefined" } ]. Please rewrite the input so it satisfies the expected schema.I temporarily solved this problem by customizing a plugin.
// ~/.config/opencode/plugins/bash_fix.js export const DefaultDescription = async ({ project, client, $, directory, worktree }) => { return { "tool.execute.before": async (input, output) => { if (input.tool === "bash" && !output.args.description) { output.args.description='Execute a command' } } } }- removedbugSomething isn't workingSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)
on May 3, 2026 To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
Metadata
Metadata
Assignees
Labels
No labels


Description
$ echo test
Error: The bash tool was called with invalid arguments: [
{
"expected": "string",
"code": "invalid_type",
"path": [
"description"
],
"messge": "Invalid input: expected string, received undefined"
}
].
Please rewrite the input so it satisfies the expected schema.
Plugins
No response
OpenCode version
1.2.26
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
Ubuntu 22.04
Terminal
No response