anomalyco / anomalyco/opencode

session.error events are ignored by global sync (stuck busy, no error shown)

Open
#48,530 2 comments 0 reactions 1 assignee View on GitHub

@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
  1. Trigger a session that fails with an error event.
  2. The session status stays busy and 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.