-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Closed
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels