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

Closed
opened 2026-02-16 17:29:49 -05:00 by yindo · 2 comments
Owner

Originally created by @joakim-roos on GitHub (Aug 7, 2025).

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" } ]

Originally created by @joakim-roos on GitHub (Aug 7, 2025). 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" } ]`
yindo closed this issue 2026-02-16 17:29:49 -05:00
Author
Owner

@joakim-roos commented on GitHub (Aug 7, 2025):

nvm, updating version to latest fixed it!

@joakim-roos commented on GitHub (Aug 7, 2025): nvm, updating version to latest fixed it!
Author
Owner

@rekram1-node commented on GitHub (Aug 7, 2025):

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

@rekram1-node commented on GitHub (Aug 7, 2025): 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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1160