Skip to content

Bash tool calling fails with GLM5.1 on prem #21898

@rememberSoftwares

Description

@rememberSoftwares

Description

Getting

$ 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.

Plugins

No response

OpenCode version

1.4.3

Steps to reproduce

Connect to GLM5.1 onprem

Screenshot and/or share link

No response

Operating System

Linux/Mac

Terminal

Terminator / Mac default shell

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions