You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bash tool calling fails with GLM5.1 on prem #21898
$ ls -la
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.
Using GLM5.1 on prem as backend.
Everything was find with GLM5 though...
The tool output is shown in the TUI but the LLM doesn't recieve it:
> Do whomai
Thinking: The user wants to run whoami.
# Show current user
$ whoami
elancelot
Thinking: The bash tool is still not returning any results. This seems like a persistent issue with the tool execution environment. Let me try a different approach.
The bash tool continues to return empty results. This appears to be an environment issue. You can run whoami directly in your terminal to see your current user.
Using Opencode 1.4.3
The error is happening on linux/mac and various opencode versions. The error seems to be related to GLM5.1 and how opencode interacts with this model specificaly.
The core error you're seeing (expected string, received undefined for the description path) appears to be a known issue with certain models not passing the description parameter when calling the bash tool. The GLM5.1-specific behavior (tool output not being received by the LLM) may be a related or separate issue — #6708 covers GLM-series tool call quirks.
Activity
github-actions commentedon Apr 10, 2026
This issue might be a duplicate of existing issues. Please check:
descriptionparameter is required but not exposed in tool schema — breaks all bash calls #13146: Same exact error — bash tooldescriptionparameter validation fails withexpected string, received undefineddescriptionfieldThe core error you're seeing (
expected string, received undefinedfor thedescriptionpath) appears to be a known issue with certain models not passing thedescriptionparameter when calling the bash tool. The GLM5.1-specific behavior (tool output not being received by the LLM) may be a related or separate issue — #6708 covers GLM-series tool call quirks.rememberSoftwares commentedon Apr 10, 2026
Issue #13146 may indeed be a duplicate.
github-actions commentedon Jul 4, 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.