Description
When using the qwen/qwen3.6-plus-preview:free model via OpenRouter, every single bash tool call in the API response is duplicated. The same tool call with identical arguments appears twice, causing OpenCode to execute every command twice.
Session log analysis confirms 100% duplication rate — every bash command evaluated twice at the exact same timestamp:
- date: 2x
- echo ---: 2x
- cal: 2x
- which chrome-devtools: 2x
- chrome-devtools click: 2x
The same model family via OpenCode's direct endpoint (qwen3.6-plus-free) does NOT duplicate — only the OpenRouter-hosted preview variant exhibits this.
Impact: Toggle elements (clicks, checkboxes) fire twice — first click opens, second immediately closes. Every bash command runs twice, doubling side effects.
openrouter-session-duplicate-tool-calls.log
Plugins
chrome-devtools-mcp
OpenCode version
1.3.13
Steps to reproduce
- Configure OpenCode to use qwen/qwen3.6-plus-preview:free via OpenRouter
- Start a session and ask the model to run any bash command (e.g., date)
- Check session logs at ~/.local/share/opencode/log/
- Observe every bash command evaluated twice at the same timestamp
Screenshot and/or share link
No response
Operating System
Linux
Terminal
bash
Description
When using the qwen/qwen3.6-plus-preview:free model via OpenRouter, every single bash tool call in the API response is duplicated. The same tool call with identical arguments appears twice, causing OpenCode to execute every command twice.
Session log analysis confirms 100% duplication rate — every bash command evaluated twice at the exact same timestamp:
The same model family via OpenCode's direct endpoint (qwen3.6-plus-free) does NOT duplicate — only the OpenRouter-hosted preview variant exhibits this.
Impact: Toggle elements (clicks, checkboxes) fire twice — first click opens, second immediately closes. Every bash command runs twice, doubling side effects.
openrouter-session-duplicate-tool-calls.log
Plugins
chrome-devtools-mcp
OpenCode version
1.3.13
Steps to reproduce
Screenshot and/or share link
No response
Operating System
Linux
Terminal
bash