You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Session defect errors are not surfaced or rendered concisely #42515
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
Open a project in the web UI.
Create a session.
Trigger a session defect, such as sending a prompt after the workspace path disappears.
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.
PR #39200 overlaps the assistant-message finalization and concise-error portion of this issue. It does not cover the propagation-before-idle or tool-warning work from #42253. PR #42516 contains #42253 plus the follow-up persistence and formatting changes; keeping this issue open while maintainers choose whether to port #39200 or merge the current-architecture implementation.
changed the title [-]Session defect errors render full stack traces in the UI[/-][+]Session defect errors are not surfaced or rendered concisely[/+]on Aug 14, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.
Activity
DatScreamer commentedon Aug 14, 2026
PR #39200 overlaps the assistant-message finalization and concise-error portion of this issue. It does not cover the propagation-before-idle or tool-warning work from #42253. PR #42516 contains #42253 plus the follow-up persistence and formatting changes; keeping this issue open while maintainers choose whether to port #39200 or merge the current-architecture implementation.
[-]Session defect errors render full stack traces in the UI[/-][+]Session defect errors are not surfaced or rendered concisely[/+]thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊