anomalyco / anomalyco/opencode
session.error events are ignored by global sync (stuck busy, no error shown)
Open
@Brendonovich is already working on this.
Since Sep 11, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
A failed session turn is not reflected in the UI's session state and produces no visible error.
When the server emits a session.error event, the global sync reducer ignores it. The session stays in its last non-idle status (busy) and the failed assistant message keeps no error marker, so the user is not told that the turn failed.
Plugins
n/a
OpenCode version
latest dev
Steps to reproduce
- Trigger a session that fails with an error event.
- The session status stays
busyand no error toast appears; the last assistant message does not get an error marker.
Screenshot and/or share link
n/a
Operating System
n/a (all)
Terminal
n/a
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.