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: OpenCode Desktop does not execute valid OpenAI tool calls from qwen3-coder:30b (Ollama) #33959
OpenCode Desktop displays raw function call output instead of executing the tool call when using qwen3-coder:30b through Ollama.
Manual API tests show that Ollama returns valid OpenAI tool_calls, therefore the issue appears to be inside OpenCode Desktop rather than the model or Ollama.
{
"model": "qwen3-coder:30b",
"messages": [
{
"role": "user",
"content": "Check if there is a DbContext in the solution."
}
],
"tools": [
{
"type": "function",
"function": {
"name": "task",
"description": "Launch a new agent",
"parameters": {
"type": "object",
"properties": {
"description": { "type": "string" },
"prompt": { "type": "string" },
"subagent_type": { "type": "string" }
},
"required": [
"description",
"prompt",
"subagent_type"
]
}
}
}
],
"tool_choice": "auto",
"stream": false
}
returns:
{
"choices": [
{
"message": {
"content": "None of the provided functions can be used...",
"tool_calls": [
{
"type": "function",
"function": {
"name": "task",
"arguments": "{"description":"Check for DbContext in the solution","prompt":"Check if there is a DbContext in the solution.","subagent_type":"file_explorer"}"
}
}
]
},
"finish_reason": "tool_calls"
}
]
}
The returned tool call follows the OpenAI format and should be executable.
Activity
github-actions commentedon Jun 25, 2026
This issue might be a duplicate of existing issues. Please check:
@ai-sdk/openai-compatible, direct API calls return valid tool calls but OpenCode doesn't execute them.github-actions commentedon Aug 25, 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.