Tool calls not working #8819

Open
opened 2026-02-16 18:10:55 -05:00 by yindo · 3 comments
Owner

Originally created by @TabishAnwarShaikh on GitHub (Feb 8, 2026).

Originally assigned to: @rekram1-node on GitHub.

Question

I have been using opencode for nearly a month and the experience has been good so far. Recently, tool calls to read and write files were working perfectly fine for the models that I have been using for the past 2-3 weeks, but they have stopped as of the last few days and its quite frustrating. I have to mention that the same tool call works with other models. The model that i was using earlier is Xiaomi MiMo via OpenRouter and it was working perfectly fine until a few days back. If I use the same prompt using DeepSeek 3.2 via OpenRouter it works. Can someone help me here.

I have used the same Xiaomi MiMo via OpenRouter in another AI Agent TUI and it works perfectly fine.

Originally created by @TabishAnwarShaikh on GitHub (Feb 8, 2026). Originally assigned to: @rekram1-node on GitHub. ### Question I have been using opencode for nearly a month and the experience has been good so far. Recently, tool calls to read and write files were working perfectly fine for the models that I have been using for the past 2-3 weeks, but they have stopped as of the last few days and its quite frustrating. I have to mention that the same tool call works with other models. The model that i was using earlier is Xiaomi MiMo via OpenRouter and it was working perfectly fine until a few days back. If I use the same prompt using DeepSeek 3.2 via OpenRouter it works. Can someone help me here. I have used the same Xiaomi MiMo via OpenRouter in another AI Agent TUI and it works perfectly fine.
yindo added the zen label 2026-02-16 18:10:55 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 8, 2026):

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

  • #7030: Ollama (qwen2.5-coder) - tool calls show as executed but no files are created/modified
  • #11171: bug: Qwen2.5 tool calling broken in oa-compat provider — tools not properly formatted in toOaCompatibleRequest
  • #11417: Bug: session ends after MCP tool calls when using Anthropic-compatible gateways
  • #10367: DeepSeek model stuck when writing code files
  • #9532: Why does opencode frequently encounter tool calling errors when using claude
  • #10630: hang when ask questions to opencode with the newest version and local LLM by vllm

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Feb 8, 2026): This issue might be a duplicate of existing issues. Please check: - #7030: Ollama (qwen2.5-coder) - tool calls show as executed but no files are created/modified - #11171: bug: Qwen2.5 tool calling broken in oa-compat provider — tools not properly formatted in toOaCompatibleRequest - #11417: Bug: session ends after MCP tool calls when using Anthropic-compatible gateways - #10367: DeepSeek model stuck when writing code files - #9532: Why does opencode frequently encounter tool calling errors when using claude - #10630: hang when ask questions to opencode with the newest version and local LLM by vllm Feel free to ignore if none of these address your specific case.
Author
Owner

@shaneodd commented on GitHub (Feb 10, 2026):

How are you calling opencode? I found calling opencode . would cause it to not write files, even though it said it did write said files. Some times it would just fail with some json(ish) looking response. Starting it with just opencode, everything works about as expected. I have been trying to see how folks call it but no one ever shows that and I am wondering if the "path" part might be the cause of the issue.

@shaneodd commented on GitHub (Feb 10, 2026): How are you calling opencode? I found calling `opencode .` would cause it to not write files, even though it said it did write said files. Some times it would just fail with some json(ish) looking response. Starting it with just `opencode`, everything works about as expected. I have been trying to see how folks call it but no one ever shows that and I am wondering if the "path" part might be the cause of the issue.
Author
Owner

@TabishAnwarShaikh commented on GitHub (Feb 15, 2026):

i normally use "opencode proj_folder"

@TabishAnwarShaikh commented on GitHub (Feb 15, 2026): i normally use "opencode proj_folder"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8819