Skip to content

[BUG]: Bash tool execution loop with SchemaError(Missing key at ["description"]) #29518

Closed as not planned

Description

@cityzenA

Description

When using OpenCode alongside models with strict JSON function-calling validation (such as Qwen, DeepSeek, and Llama series via custom endpoints like Groq/OpenRouter), attempting to run tasks that utilize the bash system tool throws a continuous validation exception.

The tool call fails internally, sending the model into an infinite loop of repeated attempts without ever successfully executing the underlying shell command on the machine.

Error Message / Stack Trace

The bash tool was called with invalid arguments:
SchemaError(Missing key at ["description"])

Please rewrite the input so it satisfies the expected schema.

Activity

  1. github-actions commented on May 27, 2026

    @github-actions
    Contributor

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

    If your issue is specifically about the bash tool's description field and not already captured in those reports, feel free to keep this open and note that distinction.

  2. github-actions commented on Jul 27, 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