Skip to content

GPT-5: AI_InvalidToolInputError: Invalid input for tool bash #1693

Closed

Description

@joakim-roos

https://opencode.ai/s/0U8jpKp3

AI_InvalidToolInputError: Invalid input for tool bash: Type validation failed: Value: {"command":"bunx tsc --noEmit","description":"Runs TypeScript compiler with no emit to type- check"}. Error message: [ { "code": "invalid_type", "expected": "number", "received": "undefined", "path": [ "timeout" ], "message": "Required" } ]

Activity

  1. joakim-roos commented on Aug 7, 2025

    @joakim-roos
    Author

    nvm, updating version to latest fixed it!

  2. rekram1-node commented on Aug 8, 2025

    @rekram1-node
    Contributor

    AI_InvalidToolInputError just means the llm called the tool incorrectly, this can happen even if opencode does a ton of things to prevent it

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

Metadata

Metadata

Assignees

No one assigned

    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