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
Tool calls result in JSON parsing error - parameters duplicated #17315
version 1.2.25
I use self-model (ZhipuAI/GLM-5-FP8) tool calls fail with a JSON parsing error. The parameters appear to be duplicated in the JSON payload.
Error Example:
Invalid input for tool bash: JSON parsing failed:
Text: {"command":"pwd","description":"Check current directory"{"command": "pwd", "description": "Check current directory"}.
Error message: JSON Parse error: Expected '}'
Expected JSON:
{"command":"pwd","description":"Check current directory"}
Actual JSON (what I'm seeing):
{"command":"pwd","description":"Check current directory"{"command": "pwd", "description": "Check current directory"}
Observations:
The read tool worked successfully at the beginning of the conversation
After several tool calls, tools like bash, edit, glob, w
rite started failing
3. The JSON parameters are being duplicated/concatenated incorrectly
4. Other models (e.g., Claude, GPT) do not have this issue with the same opencode version
Environment:
Model: vllm-local/yhglm5
Platform: darwin
Opencode version: (latest)
Steps to Reproduce:
Start a conversation with yhglm5 model
Make several tool calls (read, bash, edit, etc.)
After some point, tool calls will fail with the duplicated JSON error
If your issue is distinct (e.g., parameters being specifically duplicated/concatenated rather than truncated), please add clarifying details to differentiate it from the above.
Activity
github-actions commentedon Mar 13, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is distinct (e.g., parameters being specifically duplicated/concatenated rather than truncated), please add clarifying details to differentiate it from the above.
github-actions commentedon Jul 3, 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.