Skip to content

bash description #17415

Description

@igorek-zxz

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

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 13, 2026
  2. github-actions commented on Mar 13, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  3. gustavodiasdev commented on Mar 13, 2026

    @gustavodiasdev
    Image

    same in macOS

  4. kwijybo commented on Mar 31, 2026

    @kwijybo

    I'm having the same problem.

    Ubuntu 25.10, OpenCode 1.3.10, glm-4.7-flash Ollama

    Image
  5. nfonrose commented on Apr 3, 2026

    @nfonrose

    Same issue with opencode 1.3.10 and Gemma 4 google/gemma-4-26b-a4b running inside LMStudio version 0.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.                                                                                                                                                                                     
    
  6. zenoda commented on Apr 5, 2026

    @zenoda

    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'
          }
        }
      }
    }
    
  7. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  8. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions