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
Trying out the GLM-4.7 Z.AI Coding Plan, leads often to stopped conversations. It looks like some form of communication problem as the ´<tool_call>..´ block is likely not meant to be displayed this way.
Plugins
No response
OpenCode version
1.1.19
Steps to reproduce
Sadly hard to reproduce. Comes from time to time with that model.
These issues appear to describe similar communication/parsing problems with the GLM-4.7 model, particularly related to tool calls and thinking blocks. Feel free to ignore if this addresses a different specific case.
GLM has problems with whitespaces/newline char every now and then. It writes the tool call directly after some text so the parser doesn't understand it. OpenCode is not the only tool this happens with GLM-4.7.
Activity
github-actions commentedon Jan 14, 2026
This issue might be a duplicate of existing issues. Please check:
These issues appear to describe similar communication/parsing problems with the GLM-4.7 model, particularly related to tool calls and thinking blocks. Feel free to ignore if this addresses a different specific case.
MartinVerges commentedon Jan 14, 2026
Stopping
opencodeand restarting the session solves it. The lastcontinueprompt was after the restart.greggh commentedon Jan 14, 2026
We've been talking about this in this issue: #6708
They are asking for session exports over there.
MartinVerges commentedon Jan 14, 2026
How to obtain the required information?
rekram1-node commentedon Jan 14, 2026
opencode export > session.jsonrun command in ur terminal, select session and send me the json file :)
SupetZYK commentedon Mar 8, 2026
I met the same problem. GLM stops after tool_call
misthema commentedon Mar 30, 2026
GLM has problems with whitespaces/newline char every now and then. It writes the tool call directly after some text so the parser doesn't understand it. OpenCode is not the only tool this happens with GLM-4.7.
Example, should be:
Instead, it does this: