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
Session becomes unusable after UnknownError: Failed to parse #2135
At irregular intervals, I encounter the error shown below. When this happens:
opencode still runs, but the affected session becomes unusable.
Any further prompts sent to this session just repeat the same error.
Attempting to reopen the session after starting a new one also fails.
Error Log
failed to send message: POST
"http://127.0.0.1:55413/session/ses_73XXXX2aXffeDTHiXXTUpWNVvX/message": 400 Bad Request
{"name":"UnknownError","data":{"message":"SyntaxError: Failed to parse JSON"}}
Environment
Using: GitHub Copilot with Claude Sonnet 4
opencode version: v0.5.7
OS: Windows with git Bash
Steps to Reproduce
The issue appears sporadically and I haven’t found a deterministic reproduction path, but:
Start a session.
Interact with opencode for some time.
At some point, the session fails with the above error.
Expected Behavior
The session should continue working without requiring a restart.
Actual Behavior
The session becomes permanently stuck, repeating the error until a new session is created. Old sessions cannot be reopened.
Additional Context
The error only occurs intermittently, but once triggered, it breaks the session workflow entirely.
Curious if there is a way to fix this to resume the session? It is happening to us today multiple times leaving a corrupted session that can't continue.
Activity
github-actions commentedon Aug 21, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Aug 21, 2025
Is there anything special with this session? is it super long or anything
maddeye commentedon Aug 26, 2025
It's not consistent.
Sometimes it only takes one or two prompts, and sometimes it took 10+.
Deleting the cache have some effect on it. But nothing consistent to report.
rekram1-node commentedon Sep 24, 2025
Are you still encountering this on latest @maddeye
maddeye commentedon Sep 24, 2025
Cannot test ot right now. I will chrck on monday.
maddeye commentedon Sep 29, 2025
The problem seems to be fixed. Thanks a lot!
rekram1-node commentedon Sep 29, 2025
awesome!
vanboom commentedon Dec 4, 2025
Curious if there is a way to fix this to resume the session? It is happening to us today multiple times leaving a corrupted session that can't continue.
rekram1-node commentedon Dec 4, 2025
@vanboom whats the error, provider, etc? Can you share the session