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
[BUG]: Bash tool execution loop with SchemaError(Missing key at ["description"]) #29518
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.
This issue might be a duplicate of existing issues. Please check:
OpenAI-compatible models can call write/edit with invalid schema arguments #29142: Same root cause — OpenAI-compatible models (Qwen, DeepSeek, etc.) send tool calls with invalid argument shapes, causing SchemaError(Missing key at [...]) and a retry loop. That issue covers write/edit tools; this one hits the bash tool's required description key, but the underlying problem is the same.
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.
Activity
github-actions commentedon May 27, 2026
This issue might be a duplicate of existing issues. Please check:
SchemaError(Missing key at [...])and a retry loop. That issue coverswrite/edittools; this one hits thebashtool's requireddescriptionkey, but the underlying problem is the same.SchemaError(Missing key at ["content"])on thewritetool with the same class of models.If your issue is specifically about the
bashtool'sdescriptionfield and not already captured in those reports, feel free to keep this open and note that distinction.github-actions commentedon Jul 27, 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.