[PR #12654] fix(app): Toast when session is missing on prompt-submit #14315

Closed
opened 2026-02-16 18:19:07 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12654

State: closed
Merged: Yes


What does this PR do?

When you submit a message and the session fails to retrieve, the UX fails silently (no toast, console error, or failed request).

Fixes this silent failure with a toast so that the user is more informed on why their message did not send (also helps maintainers debug & triage).

Why is the session missing? In my case the session was archived (in repros below). This happened when I archived all of the sessions in a project.

There are several reports of similar "failure to send prompt" bugs in discord, perhaps they are the same issue or some variant of it. We will have a better idea if screenshots of this new toast pop up.

Before:

https://github.com/user-attachments/assets/9c5e7ce4-f957-4434-96f3-77666ddc3169

After:

https://github.com/user-attachments/assets/755c9c9d-acf5-47e9-8ffc-9b5979f302d5

Screenshot 2026-02-07 at 9 43 33 PM

Fixes: https://github.com/anomalyco/opencode/issues/12652

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12654 **State:** closed **Merged:** Yes --- ### What does this PR do? > When you submit a message and the session fails to retrieve, the UX fails silently (no toast, console error, or failed request). Fixes this silent failure with a toast so that the user is more informed on why their message did not send (also helps maintainers debug & triage). Why is the session missing? In my case the session was archived (in repros below). This happened when I archived all of the sessions in a project. There are several reports of similar "failure to send prompt" bugs in discord, perhaps they are the same issue or some variant of it. We will have a better idea if screenshots of this new toast pop up. ### Before: https://github.com/user-attachments/assets/9c5e7ce4-f957-4434-96f3-77666ddc3169 ### After: https://github.com/user-attachments/assets/755c9c9d-acf5-47e9-8ffc-9b5979f302d5 <img width="436" height="115" alt="Screenshot 2026-02-07 at 9 43 33 PM" src="https://github.com/user-attachments/assets/76122233-40a1-476c-a476-bc48de3af29b" /> Fixes: https://github.com/anomalyco/opencode/issues/12652
yindo added the pull-request label 2026-02-16 18:19:07 -05:00
yindo closed this issue 2026-02-16 18:19:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14315