Skip to content

Session defect errors are not surfaced or rendered concisely #42515

Description

@DatScreamer

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions