Qwen3 Coder on OpenCode Zen: Tool call metadata being printed to chat instead of actually being called #7749

Open
opened 2026-02-16 18:08:07 -05:00 by yindo · 5 comments
Owner

Originally created by @jeremyakers on GitHub (Jan 27, 2026).

Originally assigned to: @fwang on GitHub.

Description

This might be a duplicate of: https://github.com/anomalyco/opencode/issues/10673 and/or https://github.com/anomalyco/opencode/issues/9674

But the first issue wasn't very clear and the second issue looks more like an issue around prompting the user to answer a question. My issue is just basic file edits are failing:

Image

It's completely stuck here. Every time I try to re-prompt it to try again it fails in the same way.

I'm not sure if the issue is with the Qwen3 model or OpenCode Zen: Once I switching from "Qwen3 Coder on OpenCode Zen" to using "GLM 4.7 via OpenRouter" - the issue stopped occurring.

Plugins

None

OpenCode version

1.1.36

Steps to reproduce

  1. Connect to Qwen3 model on OpenCode Zen
  2. Send any prompt needing to read or edit a file.

Screenshot and/or share link

No response

Operating System

Ubuntu 22.04

Terminal

Gnome Terminal

Originally created by @jeremyakers on GitHub (Jan 27, 2026). Originally assigned to: @fwang on GitHub. ### Description This *might* be a duplicate of: https://github.com/anomalyco/opencode/issues/10673 and/or https://github.com/anomalyco/opencode/issues/9674 But the first issue wasn't very clear and the second issue looks more like an issue around prompting the user to answer a question. My issue is just basic file edits are failing: <img width="1880" height="922" alt="Image" src="https://github.com/user-attachments/assets/0f1db116-ce62-4a83-9f16-3cc7c3ec4c53" /> It's completely stuck here. Every time I try to re-prompt it to try again it fails in the same way. I'm not sure if the issue is with the Qwen3 model or OpenCode Zen: Once I switching from "Qwen3 Coder on OpenCode Zen" to using "GLM 4.7 via OpenRouter" - the issue stopped occurring. ### Plugins None ### OpenCode version 1.1.36 ### Steps to reproduce 1. Connect to Qwen3 model on OpenCode Zen 2. Send any prompt needing to read or edit a file. ### Screenshot and/or share link _No response_ ### Operating System Ubuntu 22.04 ### Terminal Gnome Terminal
yindo added the bugzen labels 2026-02-16 18:08:07 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 27, 2026):

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

  • #6918: qwen3-coder fails to call edit tool - Same model (Qwen3 Coder) failing with invalid tool call arguments
  • #7486: Only return tool_call parameters but can not run the tool with local LLM - Similar symptom where tool call metadata is shown instead of being executed
  • #10673: Tool call interruption with Qwen3 model - Related conversation interruption issues

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

@github-actions[bot] commented on GitHub (Jan 27, 2026): This issue might be a duplicate of existing issues. Please check: - #6918: qwen3-coder fails to call edit tool - Same model (Qwen3 Coder) failing with invalid tool call arguments - #7486: Only return tool_call parameters but can not run the tool with local LLM - Similar symptom where tool call metadata is shown instead of being executed - #10673: Tool call interruption with Qwen3 model - Related conversation interruption issues Feel free to ignore if none of these address your specific case.
Author
Owner

@bi-kai commented on GitHub (Jan 29, 2026):

same issue, with GLM 4.7, this issue comes up quite frequently.

@bi-kai commented on GitHub (Jan 29, 2026): same issue, with GLM 4.7, this issue comes up quite frequently.
Author
Owner

@lee-b commented on GitHub (Jan 30, 2026):

Yes, it happens with nemotron 3 nano too. I note that, if a tool call attempt is made with invalid parameters, then opencode tells the model that it made a mistake in the tool call, asks it to retry. I believe it should do the same if XML-style tool call attempts are detected.

@lee-b commented on GitHub (Jan 30, 2026): Yes, it happens with nemotron 3 nano too. I note that, if a tool call attempt is made with invalid parameters, then opencode tells the model that it made a mistake in the tool call, asks it to retry. I believe it should do the same if XML-style tool call attempts are detected.
Author
Owner

@Mattwmaster58 commented on GitHub (Jan 31, 2026):

Getting this with GLM-4.7 as well. I was on 1.1.28 previous, now on 1.1.48. What I suspect the issue was with continuing a conversation created with an old version. I haven't been able to repro the issue since creating a new conversation

@Mattwmaster58 commented on GitHub (Jan 31, 2026): Getting this with GLM-4.7 as well. I was on 1.1.28 previous, now on 1.1.48. What I suspect the issue was with continuing a conversation created with an old version. I haven't been able to repro the issue since creating a new conversation
Author
Owner

@RawthiL commented on GitHub (Feb 3, 2026):

any chance this is related to this vLLM issue? https://github.com/vllm-project/vllm/issues/22975

I facing this when running a local instance of vLLM and Qwen3-30B and qwen3_xml tool parset. The model just prints the xml of the tool call.

@RawthiL commented on GitHub (Feb 3, 2026): any chance this is related to this vLLM issue? https://github.com/vllm-project/vllm/issues/22975 I facing this when running a local instance of vLLM and Qwen3-30B and `qwen3_xml` tool parset. The model just prints the xml of the tool call.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7749