anomalyco / anomalyco/opencode

Session defect errors are not surfaced or rendered concisely

Open
#42,515 1 comment 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Aug 14, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

Unexpected session defects have two user-visible failure modes: before propagation, the session goes idle without an error; after propagation is fixed, the UI can show the entire stack trace in the error card. The complete fix must propagate the error before idle, persist it on the assistant message, and show a concise message while retaining full details in logs.

This is the follow-up acceptance issue for the end-to-end behavior addressed by PR #42516, which includes the propagation work from #42253.

Plugins

None required.

OpenCode version

1.18.18

Steps to reproduce

  1. Open a project in the web UI.
  2. Create a session.
  3. Trigger a session defect, such as sending a prompt after the workspace path disappears.
  4. Observe the session timeline.

Expected behavior

The defect reaches the UI before the session becomes idle, is persisted on the assistant message, and appears as a concise error card. The full cause remains available in server logs.

Operating System

Linux

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.